MAV'RIC
Public Member Functions
Gps Class Reference

Abstract class for GPS. More...

#include <gps.hpp>

Inheritance diagram for Gps:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual bool update (void)=0
 Main update function Reads new values from sensor.
virtual bool init (void)=0
 Initializes the gps.
virtual void configure (void)=0
 (re)Configure the GPS
virtual float last_update_us (void) const =0
 Get last update time in microseconds.
virtual float last_position_update_us (void) const =0
 Get last position update time in microseconds.
virtual float last_velocity_update_us (void) const =0
 Get last velocity update time in microseconds.
virtual global_position_t position_gf (void) const =0
 Get position in global frame.
virtual float horizontal_position_accuracy (void) const =0
 Get horizontal position accuracy in m.
virtual float vertical_position_accuracy (void) const =0
 Get vertical position accuracy in m.
virtual std::array< float, 3 > velocity_lf (void) const =0
 Get velocity in local frame in m/s.
virtual float velocity_accuracy (void) const =0
 Get velocity accuracy in m/s.
virtual float heading (void) const =0
 Get heading in degrees.
virtual float heading_accuracy (void) const =0
 Get heading accuracy in degrees.
virtual uint8_t num_sats (void) const =0
 Get the number of satellites.
virtual gps_fix_t fix (void) const =0
 Indicates whether fix are received.
virtual bool healthy (void) const =0
 Indicates whether the measurements can be trusted.

Detailed Description

Abstract class for GPS.


Member Function Documentation

virtual gps_fix_t Gps::fix ( void  ) const [pure virtual]

Indicates whether fix are received.

Returns:
Value

Implemented in Gps_hub< N >, Gps_hub< 2 >, Gps_mocap, Gps_sim, and Gps_ublox.

Here is the caller graph for this function:

virtual float Gps::heading ( void  ) const [pure virtual]

Get heading in degrees.

Returns:
heading

Implemented in Gps_hub< N >, Gps_hub< 2 >, Gps_mocap, Gps_sim, and Gps_ublox.

Here is the caller graph for this function:

virtual float Gps::heading_accuracy ( void  ) const [pure virtual]

Get heading accuracy in degrees.

Returns:
accuracy

Implemented in Gps_hub< N >, Gps_hub< 2 >, Gps_mocap, Gps_sim, and Gps_ublox.

Here is the caller graph for this function:

virtual bool Gps::healthy ( void  ) const [pure virtual]

Indicates whether the measurements can be trusted.

Returns:
Value

Implemented in Gps_hub< N >, Gps_hub< 2 >, Gps_mocap, Gps_sim, and Gps_ublox.

Here is the caller graph for this function:

virtual float Gps::horizontal_position_accuracy ( void  ) const [pure virtual]

Get horizontal position accuracy in m.

Returns:
accuracy

Implemented in Gps_hub< N >, Gps_hub< 2 >, Gps_mocap, Gps_sim, and Gps_ublox.

Here is the caller graph for this function:

virtual bool Gps::init ( void  ) [pure virtual]

Initializes the gps.

Returns:
Success

Implemented in Gps_hub< N >, Gps_hub< 2 >, Gps_mocap, Gps_ublox, and Gps_sim.

virtual float Gps::last_position_update_us ( void  ) const [pure virtual]

Get last position update time in microseconds.

Returns:
Update time

Implemented in Gps_hub< N >, Gps_hub< 2 >, Gps_mocap, Gps_sim, and Gps_ublox.

Here is the caller graph for this function:

virtual float Gps::last_update_us ( void  ) const [pure virtual]

Get last update time in microseconds.

Returns:
Update time

Implemented in Gps_hub< N >, Gps_hub< 2 >, Gps_mocap, Gps_sim, and Gps_ublox.

Here is the caller graph for this function:

virtual float Gps::last_velocity_update_us ( void  ) const [pure virtual]

Get last velocity update time in microseconds.

Returns:
Update time

Implemented in Gps_hub< N >, Gps_hub< 2 >, Gps_mocap, Gps_sim, and Gps_ublox.

Here is the caller graph for this function:

virtual uint8_t Gps::num_sats ( void  ) const [pure virtual]

Get the number of satellites.

Returns:
Value

Implemented in Gps_hub< N >, Gps_hub< 2 >, Gps_mocap, Gps_sim, and Gps_ublox.

Here is the caller graph for this function:

virtual global_position_t Gps::position_gf ( void  ) const [pure virtual]

Get position in global frame.

Returns:
position

Implemented in Gps_hub< N >, Gps_hub< 2 >, Gps_mocap, Gps_sim, and Gps_ublox.

Here is the caller graph for this function:

virtual bool Gps::update ( void  ) [pure virtual]

Main update function Reads new values from sensor.

Returns:
Success

Implemented in Gps_mocap, Gps_sim, Gps_ublox, Gps_hub< N >, and Gps_hub< 2 >.

virtual float Gps::velocity_accuracy ( void  ) const [pure virtual]

Get velocity accuracy in m/s.

Returns:
velocity accuracy

Implemented in Gps_hub< N >, Gps_hub< 2 >, Gps_mocap, Gps_sim, and Gps_ublox.

Here is the caller graph for this function:

virtual std::array<float, 3> Gps::velocity_lf ( void  ) const [pure virtual]

Get velocity in local frame in m/s.

Returns:
3D velocity

Implemented in Gps_hub< N >, Gps_hub< 2 >, Gps_mocap, Gps_sim, and Gps_ublox.

Here is the caller graph for this function:

virtual float Gps::vertical_position_accuracy ( void  ) const [pure virtual]

Get vertical position accuracy in m.

Returns:
accuracy

Implemented in Gps_hub< N >, Gps_hub< 2 >, Gps_mocap, Gps_sim, and Gps_ublox.

Here is the caller graph for this function:


The documentation for this class was generated from the following file:
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines