Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions protobuf_definitions/message_formats.proto
Original file line number Diff line number Diff line change
Expand Up @@ -376,6 +376,20 @@ message Attitude {
float yaw = 3; // Yaw angle (-180°..180°).
}

// Location source used in magnetic declination look-up.
enum LocationSource {
LOCATION_SOURCE_UNSPECIFIED = 0; // The position is not set.
LOCATION_SOURCE_USER = 1; // Typically pilot device GPS.
LOCATION_SOURCE_DRONE = 2; // Blueye GPS, DVL, or a USBL system.
}

// The Magnetic Declination status used to get true North compass readings based on location.
message MagneticDeclination {
LocationSource location_source = 1; // Location source used for the magnetic declination look-up in geographiclib.
float declination = 2; // The declination which is applied to the yaw field in the Attitude msg.
LatLongPosition location = 3; // The location used for the magnetic declination look-up.
}

// Drone altitude over seabed, typically obtained from a DVL.
message Altitude {
float value = 1; // Drone altitude over seabed (m).
Expand Down
5 changes: 5 additions & 0 deletions protobuf_definitions/telemetry.proto
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ message AttitudeTel {
Attitude attitude = 1; // The attitude of the drone.
}

// Current Magnetic Declination status. Used to get true North compass readings based on location.
message MagneticDeclinationTel {
MagneticDeclination magnetic_declination = 1; // The current magnetic declination status of the drone.
}

// Receive the current altitude of the drone.
message AltitudeTel {
Altitude altitude = 1; // The altitude of the drone.
Expand Down