Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tracker: correct altitude pressure offset calculation
the value nav_status.altitude_offset is expected to be a correction for differences between the barometers. The user calibrates this value with a MAV_CMD_PREFLIGHT_CALIBRATION call. Without this patch we were passing in the raw barometric pressure values for the tracker and the tracked vehicle. It seems get_altitude_difference is expecting a sea-level pressure as its first argument now, as it subtracts the field elevation from the pressure-difference altitude calculations. Change our call to provide a sea-level-adjusted value
- Loading branch information