STAR
Cal STAR — firmware, DAQ server, and engine design
Loading...
Searching...
No Matches
flight_log.h File Reference
#include <Arduino.h>
#include <SPIMemory.h>
#include "flight_state.h"
Include dependency graph for flight_log.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

bool flightLogInit (SPIFlash &flash, uint32_t capacityBytes)
bool sensorsShouldLog ()
void logFlightStateTransition (FlightState from, FlightState to, uint32_t t_ms, uint8_t reason)
void logMcp3201 (uint16_t raw, float psi, uint32_t t_ms)
void logLis3dh (float ax_g, float ay_g, float az_g, uint32_t t_ms)
void logLps28dfw (float hpa, float temp_c, float alt_m, uint32_t t_ms)
void logIsm330 (float ax, float ay, float az, float gx, float gy, float gz, uint32_t t_ms)
void flightLogService ()

Function Documentation

◆ flightLogInit()

◆ flightLogService()

void flightLogService ( )

Definition at line 152 of file flight_log.cpp.

◆ logFlightStateTransition()

void logFlightStateTransition ( FlightState from,
FlightState to,
uint32_t t_ms,
uint8_t reason )

◆ logIsm330()

void logIsm330 ( float ax,
float ay,
float az,
float gx,
float gy,
float gz,
uint32_t t_ms )

◆ logLis3dh()

void logLis3dh ( float ax_g,
float ay_g,
float az_g,
uint32_t t_ms )

◆ logLps28dfw()

void logLps28dfw ( float hpa,
float temp_c,
float alt_m,
uint32_t t_ms )

◆ logMcp3201()

void logMcp3201 ( uint16_t raw,
float psi,
uint32_t t_ms )

◆ sensorsShouldLog()

bool sensorsShouldLog ( )

Definition at line 95 of file flight_log.cpp.

References flightStateGet(), and Idle.

Referenced by logIsm330(), logLis3dh(), logLps28dfw(), logMcp3201(), and loop().