mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-01-11 23:39:29 -05:00
Add heading and speed to detail view
This commit is contained in:
parent
542879b74b
commit
f32584c553
@ -92,7 +92,11 @@ void ADSBRxDetailsView::update(const AircraftRecentEntry& entry) {
|
|||||||
text_last_seen.set(to_string_dec_uint(age / 60) + " minutes ago");
|
text_last_seen.set(to_string_dec_uint(age / 60) + " minutes ago");
|
||||||
|
|
||||||
text_infos.set(entry_copy.info_string);
|
text_infos.set(entry_copy.info_string);
|
||||||
text_info2.set("Hdg:" + to_string_dec_uint(entry_copy.velo.heading));
|
if(entry_copy.velo.heading < 360 && entry_copy.velo.speed >=0){ //I don't like this but...
|
||||||
|
text_info2.set("Hdg:" + to_string_dec_uint(entry_copy.velo.heading) + " Spd:" + to_string_dec_int(entry_copy.velo.speed));
|
||||||
|
}else{
|
||||||
|
text_info2.set("");
|
||||||
|
}
|
||||||
text_frame_pos_even.set(to_string_hex_array(entry_copy.frame_pos_even.get_raw_data(), 14));
|
text_frame_pos_even.set(to_string_hex_array(entry_copy.frame_pos_even.get_raw_data(), 14));
|
||||||
text_frame_pos_odd.set(to_string_hex_array(entry_copy.frame_pos_odd.get_raw_data(), 14));
|
text_frame_pos_odd.set(to_string_hex_array(entry_copy.frame_pos_odd.get_raw_data(), 14));
|
||||||
|
|
||||||
|
@ -49,7 +49,7 @@ struct AircraftRecentEntry {
|
|||||||
uint16_t hits { 0 };
|
uint16_t hits { 0 };
|
||||||
uint32_t age { 0 };
|
uint32_t age { 0 };
|
||||||
adsb_pos pos { false, 0, 0, 0 };
|
adsb_pos pos { false, 0, 0, 0 };
|
||||||
adsb_vel velo { false, 0, 0 };
|
adsb_vel velo { false, 0, 999 };
|
||||||
ADSBFrame frame_pos_even { };
|
ADSBFrame frame_pos_even { };
|
||||||
ADSBFrame frame_pos_odd { };
|
ADSBFrame frame_pos_odd { };
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user