position string formatting

This commit is contained in:
Joel Wetzell 2020-07-25 12:26:10 -05:00
parent 3ec41bc209
commit 01101ecef2

View File

@ -231,9 +231,9 @@ void ADSBRxView::on_frame(const ADSBFrameMessage * message) {
if (entry.pos.valid) {
str_info = "Alt:" + to_string_dec_uint(entry.pos.altitude) +
" Lat" + to_string_dec_int(entry.pos.latitude) +
" Lat:" + to_string_dec_int(entry.pos.latitude) +
"." + to_string_dec_int((int)abs(entry.pos.latitude * 1000) % 100, 2, '0') +
" Lon" + to_string_dec_int(entry.pos.longitude) +
" Lon:" + to_string_dec_int(entry.pos.longitude) +
"." + to_string_dec_int((int)abs(entry.pos.longitude * 1000) % 100, 2, '0');
entry.set_info_string(str_info);