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#include "hotfire_config.h"
4
5//-----------------------------------------------------------------------------
6// Actuator hotfire — timing and timeouts (milliseconds)
7//-----------------------------------------------------------------------------
8
9// Watchdog and state timeouts
10#define HEARTBEAT_TIMEOUT_MS 5000 // Server heartbeat watchdog
11#define CONNECTION_LOSS_GRACE_MS \
12 10000 // Time in Connection Loss before No Connection Abort
13#define NO_CONNECTION_ABORT_DONE_MS \
14 10000 // Legacy; No Connection Abort -> Abort Finished
15#define NO_CONN_ABORT_PT_WAIT_MS \
16 2000 // Wait for PT data in NoConnectionAbort before PT Abort / No PT Abort
17
18// Abort procedure timeouts
19#define PT_ABORT_THRESHOLD_TIMEOUT_MS \
20 10000 // PT Abort: max wait for PTs below threshold before applying abort
21#define NO_PT_ABORT_VENT_TO_ABORT_MS \
22 10000 // No PT Abort: wait between vent and abort
23#define STANDALONE_ABORT_VENT_TO_ABORT_MS \
24 10000 // Standalone Abort: wait between vent and abort (local only)
25#define STANDALONE_ABORT_PT_LOSS_MS \
26 3000 // ConnectionLossDetected: no PT data from config for this long ->
27 // StandaloneAbort
28
29// Board identity (SPIFFS)
30#define SPIFFS_BOARD_VALUE_PATH "/value.bin"
31#define BOARD_ID_DEFAULT 1
32
33// Actuator current-sense streaming
34#define ADC_READ_INTERVAL_MS 100 // Interval between sensor data packets