mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-12-15 15:59:39 -05:00
Add Heading to ADSB and Map Updating
This commit is contained in:
parent
f21e26eaa3
commit
f08949acd7
8 changed files with 87 additions and 18 deletions
|
|
@ -49,7 +49,7 @@ struct AircraftRecentEntry {
|
|||
uint16_t hits { 0 };
|
||||
uint32_t age { 0 };
|
||||
adsb_pos pos { false, 0, 0, 0 };
|
||||
|
||||
adsb_vel velo { false, 0, 0 };
|
||||
ADSBFrame frame_pos_even { };
|
||||
ADSBFrame frame_pos_odd { };
|
||||
|
||||
|
|
@ -86,6 +86,10 @@ struct AircraftRecentEntry {
|
|||
pos = decode_frame_pos(frame_pos_even, frame_pos_odd);
|
||||
}
|
||||
}
|
||||
|
||||
void set_frame_velo(ADSBFrame& frame){
|
||||
velo = decode_frame_velo(frame);
|
||||
}
|
||||
|
||||
void set_info_string(std::string& new_info_string) {
|
||||
info_string = new_info_string;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue