STAR
Cal STAR — firmware, DAQ server, and engine design
Loading...
Searching...
No Matches
mode.h
Go to the documentation of this file.
1
#ifndef STAR_MODE_H
2
#define STAR_MODE_H
3
4
/*
5
* The board's flight state, applied (mode_core.h decides what runs):
6
* sensors and GNSS tasks started/stopped, the W5500 held in reset or not,
7
* the Idle loop on/off, and the eMMC log told (emmc_log_on_state), so it
8
* records from ARMED. Any task; one lock.
9
*/
10
11
#include "
flight_state.h
"
12
#include "
mode_core.h
"
13
14
#ifdef __cplusplus
15
extern
"C"
{
16
#endif
17
18
void
app_set_state
(
flight_state_t
to);
19
flight_state_t
app_state
(
void
);
20
21
/* A confirmed ground command (radio task's ARM gate). In IDLE it goes to
22
* the Idle loop; elsewhere it moves the state table directly. */
23
void
app_command
(
mode_command_t
command);
24
25
#ifdef __cplusplus
26
}
27
#endif
28
#endif
flight_state.h
flight_state_t
flight_state_t
Definition
flight_state.h:25
app_state
flight_state_t app_state(void)
Definition
mode.c:48
app_command
void app_command(mode_command_t command)
Definition
mode.c:52
app_set_state
void app_set_state(flight_state_t to)
Definition
mode.c:22
mode_core.h
mode_command_t
mode_command_t
Definition
mode_core.h:43
firmware
Flight_Computer
src
app
mode.h
Generated by
1.15.0