Scale new integerised power to a better range

This commit is contained in:
heurist1 2021-11-06 12:35:37 +00:00
parent a0a1954138
commit 3bbad90949
2 changed files with 2 additions and 2 deletions

View File

@ -70,7 +70,7 @@ void RecentEntriesTable<AircraftRecentEntries>::draw(
(entry.callsign[0]!=' ' ? entry.callsign + " " : to_string_hex(entry.ICAO_address, 6) + " ") +
to_string_dec_uint((unsigned int)((entry.pos.altitude+50)/100),4) +
to_string_dec_uint((unsigned int)entry.velo.speed,4) +
to_string_dec_uint((unsigned int)(entry.amp>>7),4) + " " +
to_string_dec_uint((unsigned int)(entry.amp>>9),4) + " " +
(entry.hits <= 999 ? to_string_dec_uint(entry.hits, 3) + " " : "1k+ ") +
to_string_dec_uint(entry.age, 3);
#endif

View File

@ -76,7 +76,7 @@ struct AircraftRecentEntry {
uint16_t age_state { 1 };
uint32_t age { 0 };
float amp {0.0f};
uint32_t amp { 0 };
adsb_pos pos { false, 0, 0, 0 };
adsb_vel velo { false, 0, 999, 0 };
ADSBFrame frame_pos_even { };