mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-06-01 21:22:15 -04:00
Correct squawk id in ADSB TX
This commit is contained in:
parent
c8774e82d9
commit
988404df9c
5 changed files with 107 additions and 39 deletions
|
@ -33,7 +33,8 @@ namespace adsb {
|
|||
|
||||
enum downlink_format {
|
||||
DF_ADSB = 17,
|
||||
DF_EHS_SQUAWK = 21
|
||||
DF_EHS_SQUAWK = 21, // DF 21: Comm-B with identity reply . Mode S enhanced surveillance of squawk + (MB_field = Track and turn report (BDS 5,0)).
|
||||
// Confirmed that it is Detected correctly by dump1090. and sdrangel.
|
||||
};
|
||||
|
||||
enum type_code {
|
||||
|
@ -104,7 +105,7 @@ adsb_vel decode_frame_velo(ADSBFrame& frame);
|
|||
|
||||
//void encode_frame_emergency(ADSBFrame& frame, const uint32_t ICAO_address, const uint8_t code);
|
||||
|
||||
void encode_frame_squawk(ADSBFrame& frame, const uint32_t squawk);
|
||||
void encode_frame_squawk(ADSBFrame& frame, const uint16_t squawk);
|
||||
|
||||
} /* namespace adsb */
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue