MAV'RIC
Public Member Functions
Gps_sim Class Reference

Simulation for GPS. More...

#include <gps_sim.hpp>

Inheritance diagram for Gps_sim:
Inheritance graph
[legend]
Collaboration diagram for Gps_sim:
Collaboration graph
[legend]

List of all members.

Public Member Functions

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

Detailed Description

Simulation for GPS.


Constructor & Destructor Documentation

Gps_sim::Gps_sim ( Dynamic_model dynamic_model)

Constructor.

Parameters:
dynamic_modelReference to dynamic model

Member Function Documentation

gps_fix_t Gps_sim::fix ( void  ) const [virtual]

Indicates whether fix are received.

Returns:
Value

Implements Gps.

float Gps_sim::heading ( void  ) const [virtual]

Get heading in degrees.

Returns:
heading

Implements Gps.

float Gps_sim::heading_accuracy ( void  ) const [virtual]

Get heading accuracy in degrees.

Returns:
accuracy

Implements Gps.

bool Gps_sim::healthy ( void  ) const [virtual]

Indicates whether the measurements can be trusted.

Returns:
Value

Implements Gps.

float Gps_sim::horizontal_position_accuracy ( void  ) const [virtual]

Get horizontal position accuracy in m.

Returns:
accuracy

Implements Gps.

bool Gps_sim::init ( void  ) [virtual]

Initializes the gps.

Returns:
Success

Implements Gps.

float Gps_sim::last_position_update_us ( void  ) const [virtual]

Get last position update time in microseconds.

Returns:
Update time

Implements Gps.

float Gps_sim::last_update_us ( void  ) const [virtual]

Get last update time in microseconds.

Returns:
Update time

Implements Gps.

float Gps_sim::last_velocity_update_us ( void  ) const [virtual]

Get last velocity update time in microseconds.

Returns:
Update time

Implements Gps.

uint8_t Gps_sim::num_sats ( void  ) const [virtual]

Get the number of satellites.

Returns:
Value

Implements Gps.

global_position_t Gps_sim::position_gf ( void  ) const [virtual]

Get position in global frame.

Returns:
position

Implements Gps.

bool Gps_sim::update ( void  ) [virtual]

Main update function Reads new values from sensor.

Returns:
Success

Implements Gps.

Here is the call graph for this function:

float Gps_sim::velocity_accuracy ( void  ) const [virtual]

Get velocity accuracy in m/s.

Returns:
velocity accuracy

Implements Gps.

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

Get velocity in local frame in m/s.

Returns:
3D velocity

Implements Gps.

float Gps_sim::vertical_position_accuracy ( void  ) const [virtual]

Get vertical position accuracy in m.

Returns:
accuracy

Implements Gps.


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