26 #ifndef SENSOR_FUSION_CONTROL_H_ 27 #define SENSOR_FUSION_CONTROL_H_ 72 void sBufAppendItem(uint8_t *pDest, uint16_t *pIndex, uint8_t *pSource, uint16_t iBytesToCopy);
quaternion_type DefaultQuaternionPacketType
default quaternion transmitted at power on
void CreateAndSendPackets(SensorFusionGlobals *sfg, uint8_t *sUARTOutputBuffer)
volatile uint8_t RPCPacketOn
flag to enable roll, pitch, compass packet
enum quaternion quaternion_type
the quaternion type to be transmitted
void BlueRadios_Init(void)
volatile uint8_t AngularVelocityPacketOn
flag to enable angular velocity packet
writePort_t * write
low level function to write a char buffer to the serial stream
struct ControlSubsystem ControlSubsystem
he ControlSubsystem encapsulates command and data streaming functions.
The top level fusion structure.
volatile uint8_t DebugPacketOn
flag to enable debug packet
void sBufAppendItem(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.
volatile quaternion_type QuaternionPacketType
quaternion type transmitted over UART
he ControlSubsystem encapsulates command and data streaming functions.
void() streamData_t(SensorFusionGlobals *sfg, uint8_t *sUARTOutputBuffer)
int8_t initializeControlPort(ControlSubsystem *pComm)
Call this once to initialize structures, ports, etc.
volatile uint8_t AltPacketOn
flag to enable altitude packet
void DecodeCommandBytes(SensorFusionGlobals *sfg, char iCommandBuffer[], uint8 sUART_InputBuffer[], uint16 nbytes)
uint8_t sUARTOutputBuffer[256]
main output buffer defined in control.c
int8_t() writePort_t(struct ControlSubsystem *pComm, uint8_t buffer[], uint16_t nbytes)
streamData_t * stream
function to create packets for serial stream
volatile int8_t AccelCalPacketOn
variable used to coordinate accelerometer calibration