STAR
Cal STAR — firmware, DAQ server, and engine design
Loading...
Searching...
No Matches
flight_log.h
Go to the documentation of this file.
1#pragma once
2
3#include <Arduino.h>
4#include <SPIMemory.h>
5
6#include "flight_state.h"
7
8bool flightLogInit(SPIFlash& flash, uint32_t capacityBytes);
9
10bool sensorsShouldLog();
11
12void logFlightStateTransition(FlightState from, FlightState to, uint32_t t_ms,
13 uint8_t reason);
14
15void logMcp3201(uint16_t raw, float psi, uint32_t t_ms);
16void logLis3dh(float ax_g, float ay_g, float az_g, uint32_t t_ms);
17void logLps28dfw(float hpa, float temp_c, float alt_m, uint32_t t_ms);
18void logIsm330(float ax, float ay, float az, float gx, float gy, float gz,
19 uint32_t t_ms);
20
21void flightLogService();
FlightState
Definition flight_state.h:5
void logLis3dh(float ax_g, float ay_g, float az_g, uint32_t t_ms)
bool flightLogInit(SPIFlash &flash, uint32_t capacityBytes)
bool sensorsShouldLog()
void logMcp3201(uint16_t raw, float psi, uint32_t t_ms)
void logIsm330(float ax, float ay, float az, float gx, float gy, float gz, uint32_t t_ms)
void logFlightStateTransition(FlightState from, FlightState to, uint32_t t_ms, uint8_t reason)
void logLps28dfw(float hpa, float temp_c, float alt_m, uint32_t t_ms)
void flightLogService()