mirror of
https://github.com/eried/portapack-mayhem.git
synced 2024-10-01 01:26:06 -04:00
Sort scaling in GUI
This commit is contained in:
parent
a571e40c59
commit
94ec0c9087
@ -69,8 +69,8 @@ void RecentEntriesTable<AircraftRecentEntries>::draw(
|
|||||||
entry_string +=
|
entry_string +=
|
||||||
(entry.callsign[0]!=' ' ? entry.callsign + " " : to_string_hex(entry.ICAO_address, 6) + " ") +
|
(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.pos.altitude+50)/100),4) +
|
||||||
to_string_dec_uint((unsigned int)entry.velo.speed,4) + " " +
|
to_string_dec_uint((unsigned int)entry.velo.speed,4) +
|
||||||
to_string_dec_uint((unsigned int)(entry.amp*100),3) + " " +
|
to_string_dec_uint((unsigned int)(entry.amp),4) + " " +
|
||||||
(entry.hits <= 999 ? to_string_dec_uint(entry.hits, 3) + " " : "1k+ ") +
|
(entry.hits <= 999 ? to_string_dec_uint(entry.hits, 3) + " " : "1k+ ") +
|
||||||
to_string_dec_uint(entry.age, 3);
|
to_string_dec_uint(entry.age, 3);
|
||||||
#endif
|
#endif
|
||||||
@ -259,7 +259,7 @@ void ADSBRxView::on_frame(const ADSBFrameMessage * message) {
|
|||||||
{
|
{
|
||||||
entry.amp = message->amp;
|
entry.amp = message->amp;
|
||||||
} else {
|
} else {
|
||||||
entry.amp = ((entry.amp*9.0f)+message->amp)/10.0f;
|
entry.amp = ((entry.amp*15)+message->amp)>>4;
|
||||||
}
|
}
|
||||||
str_timestamp = to_string_datetime(datetime, HMS);
|
str_timestamp = to_string_datetime(datetime, HMS);
|
||||||
entry.set_time_string(str_timestamp);
|
entry.set_time_string(str_timestamp);
|
||||||
|
Loading…
Reference in New Issue
Block a user