AP_DroneID: add missing element to constructor

This commit is contained in:
Peter Barker 2022-08-11 18:06:38 +10:00 committed by Peter Hall
parent 445ee86734
commit 48fd37cd25
1 changed files with 1 additions and 0 deletions

View File

@ -324,6 +324,7 @@ void AP_OpenDroneID::send_location_message()
speed_vertical : int16_t(climb_rate * 100.0), // Climb rate (cm/s) speed_vertical : int16_t(climb_rate * 100.0), // Climb rate (cm/s)
target_system : 0, target_system : 0,
target_component : 0, target_component : 0,
id_or_mac : {},
status : uint8_t(uav_status), status : uint8_t(uav_status),
height_reference : MAV_ODID_HEIGHT_REF_OVER_TAKEOFF, // height reference enum: Above takeoff location or above ground height_reference : MAV_ODID_HEIGHT_REF_OVER_TAKEOFF, // height reference enum: Above takeoff location or above ground
horizontal_accuracy : uint8_t(horizontal_accuracy_mav), horizontal_accuracy : uint8_t(horizontal_accuracy_mav),