|
STAR
Cal STAR — firmware, DAQ server, and engine design
|
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 () |
| bool flightLogInit | ( | SPIFlash & | flash, |
| uint32_t | capacityBytes ) |
Definition at line 84 of file flight_log.cpp.
References FLIGHT_LOG_REGION_BYTES, anonymous_namespace{flight_log.cpp}::s_flash, anonymous_namespace{flight_log.cpp}::s_logBase, anonymous_namespace{flight_log.cpp}::s_logEnd, anonymous_namespace{flight_log.cpp}::s_nextAddr, and anonymous_namespace{flight_log.cpp}::s_sectorErased.
Referenced by setup().
| void flightLogService | ( | ) |
Definition at line 152 of file flight_log.cpp.
| void logFlightStateTransition | ( | FlightState | from, |
| FlightState | to, | ||
| uint32_t | t_ms, | ||
| uint8_t | reason ) |
Definition at line 103 of file flight_log.cpp.
References anonymous_namespace{flight_log.cpp}::appendRecord(), and anonymous_namespace{flight_log.cpp}::s_flash.
Referenced by transitionTo().
| void logIsm330 | ( | float | ax, |
| float | ay, | ||
| float | az, | ||
| float | gx, | ||
| float | gy, | ||
| float | gz, | ||
| uint32_t | t_ms ) |
Definition at line 144 of file flight_log.cpp.
References anonymous_namespace{flight_log.cpp}::appendRecord(), anonymous_namespace{flight_log.cpp}::s_flash, and sensorsShouldLog().
Referenced by loop().
| void logLis3dh | ( | float | ax_g, |
| float | ay_g, | ||
| float | az_g, | ||
| uint32_t | t_ms ) |
Definition at line 130 of file flight_log.cpp.
References anonymous_namespace{flight_log.cpp}::appendRecord(), anonymous_namespace{flight_log.cpp}::s_flash, and sensorsShouldLog().
Referenced by loop().
| void logLps28dfw | ( | float | hpa, |
| float | temp_c, | ||
| float | alt_m, | ||
| uint32_t | t_ms ) |
Definition at line 137 of file flight_log.cpp.
References anonymous_namespace{flight_log.cpp}::appendRecord(), anonymous_namespace{flight_log.cpp}::s_flash, and sensorsShouldLog().
Referenced by loop().
| void logMcp3201 | ( | uint16_t | raw, |
| float | psi, | ||
| uint32_t | t_ms ) |
Definition at line 121 of file flight_log.cpp.
References anonymous_namespace{flight_log.cpp}::appendRecord(), anonymous_namespace{flight_log.cpp}::s_flash, and sensorsShouldLog().
Referenced by loop().
| bool sensorsShouldLog | ( | ) |
Definition at line 95 of file flight_log.cpp.
References flightStateGet(), and Idle.
Referenced by logIsm330(), logLis3dh(), logLps28dfw(), logMcp3201(), and loop().