STAR
Cal STAR — firmware, DAQ server, and engine design
Loading...
Searching...
No Matches
DiabloEnums.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <stdint.h>
4
5
namespace
daq
{
6
7
/**
8
* @brief Defines the type of data contained in a packet.
9
*/
10
enum class
PacketType
: uint8_t {
11
BOARD_HEARTBEAT
= 1,
12
SERVER_HEARTBEAT
= 2,
13
SENSOR_DATA
= 3,
14
ACTUATOR_COMMAND
= 4,
15
SENSOR_CONFIG
= 5,
16
ACTUATOR_CONFIG
= 6,
17
ABORT
= 7,
18
ABORT_DONE
= 8,
19
CLEAR_ABORT
= 9,
20
PWM_ACTUATOR_COMMAND
= 10,
21
NO_CONNECTION_ABORT
= 11,
22
SELF_TEST
= 12,
23
ENVIRONMENTAL_DATA
= 13,
24
STACKLIGHT_COMMAND
= 14,
25
LOGS
= 15
// Board -> server: buffered, newline-delimited log text (see create_log_packet)
26
};
27
28
/**
29
* @brief Defines the operational state of a board.
30
*/
31
enum class
BoardState
: uint8_t {
32
SETUP
= 1,
33
ACTIVE
= 2,
34
CONNECTION_LOSS_DETECTED
= 3,
35
NO_CONNECTION_ABORT
= 4,
36
NO_CONN_ABORT_FOLLOWER
= 5,
37
PT_ABORT
= 6,
38
NO_PT_ABORT
= 7,
39
ABORT_FINISHED
= 8,
40
STANDALONE_ABORT
= 9,
41
SELF_TEST
= 10
42
};
43
44
/**
45
* @brief Defines the overall state of the engine system.
46
* This is communicated from the server to the boards.
47
*/
48
enum class
EngineState
: uint8_t {
49
// These are examples; the full list would be defined by the system leads.
50
SAFE
= 0,
51
PRESSURIZING
= 1,
52
LOX_FILL
= 2,
53
FIRING
= 3,
54
POST_FIRE
= 4
55
};
56
57
}
// namespace daq
ABORT
const std::string ABORT
Definition
actuator_nc.cpp:13
daq
Definition
DiabloEnums.h:5
daq::EngineState
EngineState
Defines the overall state of the engine system.
Definition
DiabloEnums.h:48
daq::EngineState::LOX_FILL
@ LOX_FILL
Definition
DiabloEnums.h:52
daq::EngineState::FIRING
@ FIRING
Definition
DiabloEnums.h:53
daq::EngineState::PRESSURIZING
@ PRESSURIZING
Definition
DiabloEnums.h:51
daq::EngineState::SAFE
@ SAFE
Definition
DiabloEnums.h:50
daq::EngineState::POST_FIRE
@ POST_FIRE
Definition
DiabloEnums.h:54
daq::BoardState
BoardState
Defines the operational state of a board.
Definition
DiabloEnums.h:31
daq::BoardState::CONNECTION_LOSS_DETECTED
@ CONNECTION_LOSS_DETECTED
Definition
DiabloEnums.h:34
daq::BoardState::PT_ABORT
@ PT_ABORT
Definition
DiabloEnums.h:37
daq::BoardState::ACTIVE
@ ACTIVE
Definition
DiabloEnums.h:33
daq::BoardState::STANDALONE_ABORT
@ STANDALONE_ABORT
Definition
DiabloEnums.h:40
daq::BoardState::ABORT_FINISHED
@ ABORT_FINISHED
Definition
DiabloEnums.h:39
daq::BoardState::NO_CONN_ABORT_FOLLOWER
@ NO_CONN_ABORT_FOLLOWER
Definition
DiabloEnums.h:36
daq::BoardState::NO_PT_ABORT
@ NO_PT_ABORT
Definition
DiabloEnums.h:38
daq::BoardState::SETUP
@ SETUP
Definition
DiabloEnums.h:32
daq::PacketType
PacketType
Defines the type of data contained in a packet.
Definition
DiabloEnums.h:10
daq::PacketType::NO_CONNECTION_ABORT
@ NO_CONNECTION_ABORT
Definition
DiabloEnums.h:21
daq::PacketType::SENSOR_DATA
@ SENSOR_DATA
Definition
DiabloEnums.h:13
daq::PacketType::STACKLIGHT_COMMAND
@ STACKLIGHT_COMMAND
Definition
DiabloEnums.h:24
daq::PacketType::SENSOR_CONFIG
@ SENSOR_CONFIG
Definition
DiabloEnums.h:15
daq::PacketType::ACTUATOR_COMMAND
@ ACTUATOR_COMMAND
Definition
DiabloEnums.h:14
daq::PacketType::PWM_ACTUATOR_COMMAND
@ PWM_ACTUATOR_COMMAND
Definition
DiabloEnums.h:20
daq::PacketType::ENVIRONMENTAL_DATA
@ ENVIRONMENTAL_DATA
Definition
DiabloEnums.h:23
daq::PacketType::SERVER_HEARTBEAT
@ SERVER_HEARTBEAT
Definition
DiabloEnums.h:12
daq::PacketType::SELF_TEST
@ SELF_TEST
Definition
DiabloEnums.h:22
daq::PacketType::BOARD_HEARTBEAT
@ BOARD_HEARTBEAT
Definition
DiabloEnums.h:11
daq::PacketType::CLEAR_ABORT
@ CLEAR_ABORT
Definition
DiabloEnums.h:19
daq::PacketType::ACTUATOR_CONFIG
@ ACTUATOR_CONFIG
Definition
DiabloEnums.h:16
daq::PacketType::ABORT_DONE
@ ABORT_DONE
Definition
DiabloEnums.h:18
daq::PacketType::LOGS
@ LOGS
Definition
DiabloEnums.h:25
lib
daq-protocol
src
DiabloEnums.h
Generated by
1.15.0