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
15extern "C" {
16#endif
17
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. */
23void app_command(mode_command_t command);
24
25#ifdef __cplusplus
26}
27#endif
28#endif
flight_state_t
flight_state_t app_state(void)
Definition mode.c:48
void app_command(mode_command_t command)
Definition mode.c:52
void app_set_state(flight_state_t to)
Definition mode.c:22
mode_command_t
Definition mode_core.h:43