mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-06-26 15:50:31 -04:00
altitude 3 bytes
This commit is contained in:
parent
c5579e25fd
commit
a74d0e5167
1 changed files with 1 additions and 1 deletions
|
@ -113,7 +113,7 @@ GPS_data Packet::get_GPS_data() const
|
||||||
}
|
}
|
||||||
else if (type_ == Type::Meteomodem_M20)
|
else if (type_ == Type::Meteomodem_M20)
|
||||||
{
|
{
|
||||||
result.alt = 0; //((reader_bi_m.read(8 * 8, 32) / 100) - 48) / 250 ; //Disable innacurate altitude for the moment.
|
result.alt = result.alt = reader_bi_m.read(8 * 3, 24) / 10 ; // ((reader_bi_m.read(8 * 8, 32) / 100) - 48) / 250 ;
|
||||||
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.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 ;
|
result.lon = reader_bi_m.read(32 * 8, 32) / 1000000.0 ;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue