Global Navigation
Related C++ Header in the Auterion SDK:<auterion_sdk/navigation/global_navigation.hpp>
The global navigation interface allows you to send measurements of your drone's global position to the FMU.
Instantiation
You can instantiate a global navigation interface by instantiating an object of type auterion::GlobalNavigationInterface
:
The interface provides an update
method which expects a GlobalPositionMeasurement
object as an argument, and which sends your position measurements to the state estimator of the FMU.
Global Position Measurements
To send global position measurements, you must first build a GlobalPositionMeasurement
object and fill in the fields you want to send updates for. A GlobalPositionMeasurement
object holds the following fields:
The timestamp of your measurement sample
A horizontal position as a longitude and latitude (in degrees)
The horizontal position error variance (in m²)
A vertical position as an altitude (in meters above mean sea level)
The vertical position error variance (in m²)
To instantiate a global position measurement, you need to provide the time at which the measurement was captured:
The GlobalPositionMeasurement
class then provides builder methods to populate your measurement instance with the data that you have collected. You can choose which builder methods to call depending on which states you have measured:
Sending Measurements
You can now send your global position measurement by simply calling the interface's update
method:
Last updated