|
Sensor Fusion Library 0.6.1
Orientation sensing for Espressif (ESP32, ESP8266) processors
|
Implements output streaming for the control & status subsystem. Data is packaged up in format compatible with NXP Sensor Toolbox. More...
#include "sensor_fusion.h"#include "board.h"#include "build.h"#include "control.h"#include "fusion_testing.h"
Go to the source code of this file.
Functions | |
| void | OutputBufAppendItem (uint8_t *pDest, uint16_t *pIndex, uint8_t *pSource, uint16_t iBytesToCopy) |
| Utility function used to place data in output buffer about to be transmitted via UART. | |
| void | OutputBufAppendZeros (uint8_t *pDest, uint16_t *pIndex, uint16_t numZeros) |
| void | ReadCommonParams (SV_ptr data, Quaternion *fq, int16_t *iPhi, int16_t *iThe, int16_t *iRho, int16_t iOmega[], uint16_t *isystick) |
| bool | Throttle () |
| void | CreateOutgoingPackets (SensorFusionGlobals *sfg) |
Implements output streaming for the control & status subsystem. Data is packaged up in format compatible with NXP Sensor Toolbox.
Definition in file control_output.c.
| void CreateOutgoingPackets | ( | SensorFusionGlobals * | sfg | ) |
Called once per fusion cycle to stream information required by the NXP Sensor Fusion Toolbox. Packet protocols are defined in the NXP Sensor Fusion for Kinetis Product Development Kit User Guide.
Definition at line 118 of file control_output.c.
| void OutputBufAppendItem | ( | uint8_t * | pDest, |
| uint16_t * | pIndex, | ||
| uint8_t * | pSource, | ||
| uint16_t | iBytesToCopy | ||
| ) |
Utility function used to place data in output buffer about to be transmitted via UART.
Definition at line 34 of file control_output.c.
| void OutputBufAppendZeros | ( | uint8_t * | pDest, |
| uint16_t * | pIndex, | ||
| uint16_t | numZeros | ||
| ) |
Definition at line 67 of file control_output.c.
| void ReadCommonParams | ( | SV_ptr | data, |
| Quaternion * | fq, | ||
| int16_t * | iPhi, | ||
| int16_t * | iThe, | ||
| int16_t * | iRho, | ||
| int16_t | iOmega[], | ||
| uint16_t * | isystick | ||
| ) |
Definition at line 76 of file control_output.c.
| bool Throttle | ( | ) |
Definition at line 94 of file control_output.c.