Skip to content

Commit

Permalink
Disable inaccurate altitude for the moment
Browse files Browse the repository at this point in the history
  • Loading branch information
joyel24 committed Apr 30, 2023
1 parent c916eaf commit e8b8f0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion firmware/common/sonde_packet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ GPS_data Packet::get_GPS_data() const
}
else if (type_ == Type::Meteomodem_M20)
{
result.alt = ((reader_bi_m.read(8 * 8, 32) / 100) - 48) / 250 ; //Conversion of altitude is actually a bit shifted, needs to be more accurate.
result.alt = 0; //((reader_bi_m.read(8 * 8, 32) / 100) - 48) / 250 ; //Disable innacurate altitude for the moment.
result.lat = reader_bi_m.read(28 * 8, 32) / 1000000.0 ; //https://raw.githubusercontent.com/projecthorus/radiosonde_auto_rx/master/demod/mod/m20mod.c
result.lon = reader_bi_m.read(32 * 8, 32) / 1000000.0 ;
}
Expand Down

0 comments on commit e8b8f0c

Please sign in to comment.