Added sil value ASDB (#2078)

* Added sil value. resolves #2005

* readibility
This commit is contained in:
Totoo 2024-04-03 09:57:39 +02:00 committed by GitHub
parent 804b7c87b7
commit 3665b3c607
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 16 additions and 4 deletions

View file

@ -46,6 +46,10 @@ class ADSBFrame {
return (raw_data[4] & 7);
}
uint8_t get_sil_value() {
return ((raw_data[10] >> 6) & 0b11); // 83-84 bits
}
uint32_t get_ICAO_address() {
return (raw_data[1] << 16) + (raw_data[2] << 8) + raw_data[3];
}