MAV'RIC
Public Member Functions
Simulation Class Reference

Simulated dynamics of a quadcopter in diag configuration. More...

#include <simulation.hpp>

List of all members.

Public Member Functions

 Simulation (Dynamic_model &dynamic_model, simulation_conf_t config=simulation_default_config())
 Constructor.
bool update (void)
 Main update function Reads new values from sensor.
const float & last_update_us (void) const
 Get last update time in microseconds.
Accelerometeraccelerometer (void)
 Get simulated accelerometer.
Gyroscopegyroscope (void)
 Get simulated gyroscope.
Magnetometermagnetometer (void)
 Get simulated magnetometer.
Barometerbarometer (void)
 Get simulated barometer.
Sonarsonar (void)
 Get simulated sonar.
Gpsgps (void)
 Get simulated gps.

Detailed Description

Simulated dynamics of a quadcopter in diag configuration.


Constructor & Destructor Documentation

Simulation::Simulation ( Dynamic_model dynamic_model,
simulation_conf_t  config = simulation_default_config() 
)

Constructor.

Parameters:
dynamic_modelReference to dynamic model
configConfiguration

Member Function Documentation

Get simulated accelerometer.

Returns:
Reference to accelerometer

Get simulated barometer.

Returns:
Reference to barometer
Gps & Simulation::gps ( void  )

Get simulated gps.

Returns:
Reference to gps

Get simulated gyroscope.

Returns:
Reference to gyroscope
const float & Simulation::last_update_us ( void  ) const

Get last update time in microseconds.

Returns:
Update time

Get simulated magnetometer.

Returns:
Reference to magnetometer
Sonar & Simulation::sonar ( void  )

Get simulated sonar.

Returns:
Reference to sonar
bool Simulation::update ( void  )

Main update function Reads new values from sensor.

Returns:
Success

Here is the call graph for this function:


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