STAR
Cal STAR — firmware, DAQ server, and engine design
Loading...
Searching...
No Matches
test_flight_state.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "flight_state.h"
Include dependency graph for test_flight_state.c:

Go to the source code of this file.

Macros

#define CHECK(condition)

Functions

static void test_table (void)
static void test_logging_states (void)
static void test_names (void)
int main (void)

Macro Definition Documentation

◆ CHECK

#define CHECK ( condition)
Value:
do { \
if (!(condition)) { \
fprintf(stderr, "%s:%d: %s\n", __FILE__, __LINE__, #condition); \
exit(1); \
} \
} while (0)

Definition at line 7 of file test_flight_state.c.

Referenced by test_logging_states(), test_names(), and test_table().

Function Documentation

◆ main()

int main ( void )

Definition at line 56 of file test_flight_state.c.

References test_logging_states(), test_names(), and test_table().

◆ test_logging_states()

void test_logging_states ( void )
static

◆ test_names()

void test_names ( void )
static

Definition at line 50 of file test_flight_state.c.

References CHECK, FLIGHT_ARMED, FLIGHT_RECOVERY, FLIGHT_STATE_COUNT, and flight_state_name().

Referenced by main().

◆ test_table()