Deadalus
Public Member Functions | Private Member Functions | Private Attributes
SIL Class Reference

The SIL class contains everything, that is needed to simulate the Software in the Loop (SIL) of the quadrocopter, which is intended to be the quadrotor firmware. More...

#include <sil.hh>

List of all members.

Public Member Functions

 SIL ()
 The SIL class contains everything, that is needed to simulate the firmware of the quadrocopter.
virtual ~SIL ()
 Destructor.
AngularVel get_rotor_speed ()
 Returns the current rotor speed.
ActuationVal get_actuation_value ()
 Returns the current actuation value.
void init ()
 This function is intended to be called when the simulation is loaded. It should contain all test code which is intended to be called before the main loop.
void update (double dT, Sensors mySensorsVals)

Private Member Functions

void test_sequence ()
 This function contains a sequence of test stimuli. It is intended to be called in update(double, Sensors)
void get_ps3controller ()
 Obtains the current state of the playstation 3 controller.
void get_key ()
 Obtains keyboard inputs (not supported yet)

Private Attributes

AngularVel _rotor_speed
 Current rotor speed.
ActuationVal _actuation_value
 Current actuation value.
int _test_sequence_iterator
 Iterator for the test_sequence function.
Joystick _ps3controller
 Instance of Joystick class to obtain data of playstion 3 controller.

Detailed Description

The SIL class contains everything, that is needed to simulate the Software in the Loop (SIL) of the quadrocopter, which is intended to be the quadrotor firmware.


Member Function Documentation

Returns the current actuation value.

Get current actuation.

Returns the current rotor speed.

Get current rotor speed.

void SIL::update ( double  dT,
Sensors  mySensorsVals 
)

This function is intended to be called in the whenever the simulation is updated. It should contain the code of the firmware which is intended to be simulated.


The documentation for this class was generated from the following files:
 All Classes Functions Variables