Commit 108f60c1 authored by Patrick Dohmen's avatar Patrick Dohmen

Fix spacecraft identification

The ```fox_id``` consists of three bits.
To mask these three bits a value of 0x7 is neccessary.

Added additional spacecraft identifiers.
Signed-off-by: Patrick Dohmen's avatarPatrick Dohmen <dl4pd@darc.de>
parent 9ccd4cf4
...@@ -33,7 +33,11 @@ namespace gr { ...@@ -33,7 +33,11 @@ namespace gr {
/** /**
* AMSAT FOX spacecraft IDs * AMSAT FOX spacecraft IDs
*/ */
const uint8_t fox_telem_mm_impl::fox_id[] = {0x1, 0x2, 0x3}; const uint8_t fox_telem_mm_impl::fox_id[] = {0x1 /* FOX-1A */,
0x2 /* FOX-1B */,
0x3 /* FOX-1C */,
0x4 /* FOX-1D */,
0x5 /* FOX-1E */};
fox_telem_mm::sptr fox_telem_mm::sptr
fox_telem_mm::make() fox_telem_mm::make()
...@@ -83,7 +87,7 @@ namespace gr { ...@@ -83,7 +87,7 @@ namespace gr {
} }
/* Check the spacecraft ID */ /* Check the spacecraft ID */
fox_id = data[0] & 0x3; fox_id = data[0] & 0x7;
if(!is_spacecraft_valid(fox_id)) { if(!is_spacecraft_valid(fox_id)) {
return; return;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment