Skip to content

Commit

Permalink
publish operator altitude in geodetic frame
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasRigi committed Mar 11, 2024
1 parent cb85204 commit c6a1279
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/modules/mavlink/streams/OPEN_DRONE_ID_SYSTEM.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,8 @@ class MavlinkStreamOpenDroneIdSystem : public MavlinkStream
msg.area_floor = -1000;
msg.category_eu = MAV_ODID_CATEGORY_EU_UNDECLARED;
msg.class_eu = MAV_ODID_CLASS_EU_UNDECLARED;
msg.operator_altitude_geo = home_position.alt;
float wgs84_amsl_offset = vehicle_gps_position.altitude_ellipsoid_m - vehicle_gps_position.altitude_msl_m;
msg.operator_altitude_geo = home_position.alt + wgs84_amsl_offset;

// timestamp: 32 bit Unix Timestamp in seconds since 00:00:00 01/01/2019.
static uint64_t utc_offset_s = 1'546'300'800; // UTC seconds since 00:00:00 01/01/2019
Expand Down

0 comments on commit c6a1279

Please sign in to comment.