Fix ADSB heading math and add heading to ADSB log

This commit is contained in:
Joel Wetzell 2020-08-10 22:55:20 -05:00
parent 4c256f65dd
commit bbae5047d1
2 changed files with 10 additions and 4 deletions

View file

@ -244,6 +244,9 @@ void ADSBRxView::on_frame(const ADSBFrameMessage * message) {
}
} else if(msg_type == 19 && msg_sub >= 1 && msg_sub <= 4){
entry.set_frame_velo(frame);
logentry += "Type:" + to_string_dec_uint(msg_sub) +
" Hdg:" + to_string_dec_uint(entry.velo.heading) +
" Spd: "+ to_string_dec_int(entry.velo.speed);
if (send_updates)
details_view->update(entry);
}