Analog gyros. More...
#include <analoggyro.h>
Public Member Functions | |
| AnalogGyro () | |
| virtual void | Init () |
| perform your initialization here | |
| virtual void | Reference () |
| Reference. | |
| virtual void | ParamChanged (Socket *param) |
| A parameter has changed. | |
| virtual void | Loop (const unsigned long &interval) |
| The module's main loop. | |
Public Attributes | |
| MultiFilterRef< MAX_AXES > | m_filter |
| ParameterF | m_gains [MAX_AXES] |
Analog gyros.
Sockets exposed:
Gyro.Pitch Scaled and smoothed values
Gyro.Roll
Gyro.Yaw
AnalogGyro.Filter.P Smoothing
AnalogGyro.Filter.R
AnalogGyro.Filter.Y
AnalogGyro.Gain.P Scale factors. Scale to radians/second
AnalogGyro.Gain.R
AnalogGyro.Gain.Y
external sockets expected:
| AnalogGyro::AnalogGyro | ( | ) | [inline] |
| virtual void AnalogGyro::Init | ( | ) | [inline, virtual] |
perform your initialization here
This includes connecting plugs and general initialization
Reimplemented from Module.
| virtual void AnalogGyro::Loop | ( | const unsigned long & | interval | ) | [inline, virtual] |
The module's main loop.
This function is called at the rate specified by SetInterval()
Do most of your work here. Try to keep this code fast
Reimplemented from Module.
| virtual void AnalogGyro::ParamChanged | ( | Socket * | param | ) | [inline, virtual] |
A parameter has changed.
Called when a parameter has been changed (read from EEPROM or via the comms link)
param points to the parameter that has changed.
Reimplemented from Module.
| virtual void AnalogGyro::Reference | ( | ) | [inline, virtual] |
Reference.
Called when we are stationary and it is safe to re-reference sensors and clear PID accumulators etc. If at all possible, return fairly quickly from this, just in case we are in the air and reference has been called by mistake (e.g it may have been connected to a transmitter switch that was operated at the wrong moment.
Reimplemented from Module.
| MultiFilterRef<MAX_AXES> AnalogGyro::m_filter |
| ParameterF AnalogGyro::m_gains[MAX_AXES] |
1.7.0