#include <AP_Var.h>
Inherited by AP_Var< type >.
Public Member Functions | |
virtual void | setF (const float &val)=0 |
Set the variable value as a float. | |
virtual const float | getF ()=0 |
Get the variable value as a float. | |
virtual void | setI (const int16_t &val)=0 |
Set the variable value as an int16. | |
virtual const int16_t | getI ()=0 |
Get the variable value as an int16. | |
virtual void | setB (const bool &val)=0 |
Set the variable value as a bool. | |
virtual const bool | getB ()=0 |
Get the variable value as an bool. | |
virtual void | save ()=0 |
Save a variable to eeprom. | |
virtual void | load ()=0 |
Load a variable from eeprom. | |
virtual const char * | getName ()=0 |
Get the name. This is useful for ground stations. | |
virtual const bool & | getSync ()=0 |
virtual void | setSync (const bool &sync)=0 |
Set the sync property. |
The AP variable interface. This allows different types of variables to be passed to blocks for floating point math, memory management, etc.
Definition at line 14 of file AP_Var.h.
virtual const bool AP_VarI::getB | ( | ) | [pure virtual] |
Get the variable value as an bool.
Implemented in AP_Var< type >.
virtual const float AP_VarI::getF | ( | ) | [pure virtual] |
Get the variable value as a float.
Implemented in AP_Var< type >.
virtual const int16_t AP_VarI::getI | ( | ) | [pure virtual] |
Get the variable value as an int16.
Implemented in AP_Var< type >.
virtual const char* AP_VarI::getName | ( | ) | [pure virtual] |
Get the name. This is useful for ground stations.
Implemented in AP_Var< type >.
virtual const bool& AP_VarI::getSync | ( | ) | [pure virtual] |
If sync is true the a load will always occure before a get and a save will always occure before a set.
Implemented in AP_Var< type >.
virtual void AP_VarI::load | ( | ) | [pure virtual] |
Load a variable from eeprom.
Implemented in AP_Var< type >.
virtual void AP_VarI::save | ( | ) | [pure virtual] |
Save a variable to eeprom.
Implemented in AP_Var< type >.
virtual void AP_VarI::setB | ( | const bool & | val | ) | [pure virtual] |
Set the variable value as a bool.
Implemented in AP_Var< type >.
virtual void AP_VarI::setF | ( | const float & | val | ) | [pure virtual] |
Set the variable value as a float.
Implemented in AP_Var< type >.
virtual void AP_VarI::setI | ( | const int16_t & | val | ) | [pure virtual] |
Set the variable value as an int16.
Implemented in AP_Var< type >.
virtual void AP_VarI::setSync | ( | const bool & | sync | ) | [pure virtual] |
Set the sync property.
Implemented in AP_Var< type >.