Update AP_ADSB.cpp

AP_ADSB: fixed GPS.alt reporting  cm to mm conversion bug

Issue 5424
This commit is contained in:
Tom Pittenger 2016-12-20 15:57:52 +01:00 committed by GitHub
parent 753638851e
commit 372837b959
1 changed files with 1 additions and 1 deletions

View File

@ -469,7 +469,7 @@ void AP_ADSB::send_dynamic_out(const mavlink_channel_t chan)
int32_t latitude = _my_loc.lat;
int32_t longitude = _my_loc.lng;
int32_t altGNSS = _my_loc.alt*0.1f; // convert cm to mm
int32_t altGNSS = _my_loc.alt * 10; // convert cm to mm
int16_t velVert = gps_velocity.z * 1E2; // convert m/s to cm/s
int16_t nsVog = gps_velocity.x * 1E2; // convert m/s to cm/s
int16_t ewVog = gps_velocity.y * 1E2; // convert m/s to cm/s