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