Skip to content

Commit 8b8333b

Browse files
use geodetic altitude:
1 parent 9b3cac7 commit 8b8333b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/AP_ODIDScanner/AP_ODIDScanner.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ Location AP_ODIDScanner::get_location(rid_vehicle_t &vehicle) {
179179
const Location loc = Location(
180180
vehicle.loc.latitude,
181181
vehicle.loc.longitude,
182-
vehicle.loc.altitude_barometric * 0.1f,
182+
vehicle.loc.altitude_geodetic * 0.1f,
183183
// TODO: Right unit?
184184
Location::AltFrame::ABSOLUTE);
185185
return loc;

0 commit comments

Comments
 (0)