|
SignalK-Orientation 1.0.0
Orientation output in Signal K format for ESP32
|
OrientationValues reads and outputs orientation parameters. More...
#include <orientation_sensor.h>

Public Types | |
| enum | OrientationValType { kCompassHeading , kYaw , kPitch , kRoll , kAttitude , kAccelerationX , kAccelerationY , kAccelerationZ , kRateOfTurn , kRateOfPitch , kRateOfRoll , kTemperature , kMagCalFitInUse , kMagCalFitTrial , kMagCalAlgorithmSolver , kMagInclination , kMagFieldMagnitude , kMagFieldMagnitudeTrial , kMagNoiseCovariance } |
Public Member Functions | |
| OrientationValues (OrientationSensor *orientation_sensor, OrientationValType value_type=kCompassHeading) | |
| float | ReportValue (void) |
| fetches current orientation parameter | |
Public Attributes | |
| OrientationSensor * | orientation_sensor_ |
| Pointer to the orientation sensor. | |
Private Attributes | |
| OrientationValType | value_type_ |
| Particular type of orientation parameter supplied. | |
| uint | report_interval_ms_ |
| Interval between data outputs via Signal K. | |
| int8_t | save_mag_cal_ |
| Flag for saving current magnetic calibration. | |
| int | throttlePrint_ |
OrientationValues reads and outputs orientation parameters.
One parameter is sent per instance of OrientationValues, selected from the list of OrientationValType. The one exception is the attitude (yaw,pitch,roll) which consists of three parameters and is provided by the AttitudeValues class instead of this one. Create new instances in main.cpp for each parameter desired.
Definition at line 57 of file orientation_sensor.h.
Definition at line 59 of file orientation_sensor.h.
| OrientationValues::OrientationValues | ( | OrientationSensor * | orientation_sensor, |
| OrientationValType | value_type = kCompassHeading |
||
| ) |
Definition at line 111 of file orientation_sensor.cpp.
| float OrientationValues::ReportValue | ( | void | ) |
fetches current orientation parameter
Definition at line 122 of file orientation_sensor.cpp.
| OrientationSensor* OrientationValues::orientation_sensor_ |
Pointer to the orientation sensor.
Definition at line 85 of file orientation_sensor.h.
|
private |
Interval between data outputs via Signal K.
Definition at line 95 of file orientation_sensor.h.
|
private |
Flag for saving current magnetic calibration.
Definition at line 96 of file orientation_sensor.h.
|
private |
Definition at line 97 of file orientation_sensor.h.
|
private |
Particular type of orientation parameter supplied.
Definition at line 94 of file orientation_sensor.h.