STAR
Cal STAR — firmware, DAQ server, and engine design
Loading...
Searching...
No Matches
actuator_config.h
Go to the documentation of this file.
1
#pragma once
2
3
//-----------------------------------------------------------------------------
4
// Timing and timeouts (all in milliseconds)
5
//-----------------------------------------------------------------------------
6
#define BOARD_HEARTBEAT_INTERVAL_MS \
7
1000
// Send board heartbeat once per second
8
#define LOOP_DELAY_MS 10
// Delay at end of each loop()
9
#define ETHERNET_SPI_DELAY_MS 1000
// Delay after SPI.begin() for Ethernet
10
#define ETHERNET_INIT_DELAY_MS 1000
// Delay after Ethernet.init()
11
#define ETHERNET_BEGIN_DELAY_MS 1000
// Delay after Ethernet.begin()
12
13
// Watchdog and state timeouts
14
#define HEARTBEAT_TIMEOUT_MS 5000
// Server heartbeat watchdog
15
#define CONNECTION_LOSS_GRACE_MS \
16
10000
// Time in Connection Loss before No Connection Abort
17
#define NO_CONNECTION_ABORT_DONE_MS \
18
10000
// After this in No Connection Abort -> Abort Finished
19
#define NO_CONN_ABORT_PT_WAIT_MS \
20
2000
// Wait for PT data in NoConnectionAbort before PT Abort / No PT Abort
21
#define STANDALONE_ABORT_PT_LOSS_MS \
22
3000
// In ConnectionLossDetected, if no PT data from config for this long
23
// -> StandaloneAbort
24
25
// LED status blink
26
#define LED_CYCLE_MS 5000
// Cycle period for state-blink
27
#define LED_BLINK_ON_MS 100
28
#define LED_BLINK_OFF_MS 100
29
30
// Sensor streaming
31
#define ADC_READ_INTERVAL_MS 100
// Interval between sensor data packets
32
33
//-----------------------------------------------------------------------------
34
// Board identity (SPIFFS)
35
//-----------------------------------------------------------------------------
36
#define SPIFFS_BOARD_VALUE_PATH "/value.bin"
37
#define BOARD_ID_DEFAULT 1
firmware
Avionics_State_Machine_Drafts
actuator_config.h
Generated by
1.15.0