ISSDK  1.7
IoT Sensing Software Development Kit
Macros | Functions
output_stream.c File Reference

Implements streaming function for the status subsystem. See status.h. More...

#include "sensor_fusion.h"
#include "control.h"
#include "debug.h"
Include dependency graph for output_stream.c:

Go to the source code of this file.

Macros

#define MAXPACKETRATEHZ   40
 
#define RATERESOLUTION   1000
 

Functions

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. More...
 
void sBufAppendZeros (uint8_t *pDest, uint16_t *pIndex, uint16_t numZeros)
 
void readCommon (SV_ptr data, Quaternion *fq, int16_t *iPhi, int16_t *iThe, int16_t *iRho, int16_t iOmega[], uint16_t *isystick)
 
uint16_t throttle ()
 (OVERSAMPLE_RATIO * MAXPACKETRATEHZ) / SENSORFS More...
 
void CreateAndSendPackets (SensorFusionGlobals *sfg, uint8_t *sUARTOutputBuffer)
 

Detailed Description

Implements streaming function for the status subsystem. See status.h.

Definition in file output_stream.c.

Macro Definition Documentation

◆ MAXPACKETRATEHZ

#define MAXPACKETRATEHZ   40

Definition at line 42 of file output_stream.c.

Referenced by throttle().

◆ RATERESOLUTION

#define RATERESOLUTION   1000

Definition at line 43 of file output_stream.c.

Referenced by throttle().

Function Documentation

◆ CreateAndSendPackets()

void CreateAndSendPackets ( SensorFusionGlobals sfg,
uint8_t *  sUARTOutputBuffer 
)

◆ readCommon()

void readCommon ( SV_ptr  data,
Quaternion fq,
int16_t *  iPhi,
int16_t *  iThe,
int16_t *  iRho,
int16_t  iOmega[],
uint16_t *  isystick 
)

Definition at line 104 of file output_stream.c.

References CHX, CHY, CHZ, SV_COMMON::fOmega, SV_COMMON::fPhi, SV_COMMON::fq, SV_COMMON::fRho, SV_COMMON::fThe, and SV_COMMON::systick.

Referenced by CreateAndSendPackets().

Here is the caller graph for this function:

◆ sBufAppendItem()

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.

Definition at line 63 of file output_stream.c.

Referenced by appendZerosOrientBuf(), CreateAndSendPackets(), and sBufAppendZeros().

Here is the caller graph for this function:

◆ sBufAppendZeros()

void sBufAppendZeros ( uint8_t *  pDest,
uint16_t *  pIndex,
uint16_t  numZeros 
)

Definition at line 96 of file output_stream.c.

References sBufAppendItem().

Referenced by CreateAndSendPackets().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ throttle()

uint16_t throttle ( )

(OVERSAMPLE_RATIO * MAXPACKETRATEHZ) / SENSORFS

Definition at line 123 of file output_stream.c.

References FUSION_HZ, MAXPACKETRATEHZ, and RATERESOLUTION.

Referenced by CreateAndSendPackets().

Here is the caller graph for this function: