feat(control): add auto_enabled and flt_active to UnitRuntime
This commit is contained in:
parent
49a4afa4a4
commit
9194bd1dca
|
|
@ -18,11 +18,13 @@ pub enum UnitRuntimeState {
|
|||
pub struct UnitRuntime {
|
||||
pub unit_id: Uuid,
|
||||
pub state: UnitRuntimeState,
|
||||
pub auto_enabled: bool,
|
||||
pub accumulated_run_sec: i64,
|
||||
pub current_run_elapsed_sec: i64,
|
||||
pub current_stop_elapsed_sec: i64,
|
||||
pub distributor_run_elapsed_sec: i64,
|
||||
pub fault_locked: bool,
|
||||
pub flt_active: bool,
|
||||
pub comm_locked: bool,
|
||||
pub manual_ack_required: bool,
|
||||
pub last_tick_at: Option<DateTime<Utc>>,
|
||||
|
|
@ -33,11 +35,13 @@ impl UnitRuntime {
|
|||
Self {
|
||||
unit_id,
|
||||
state: UnitRuntimeState::Stopped,
|
||||
auto_enabled: false,
|
||||
accumulated_run_sec: 0,
|
||||
current_run_elapsed_sec: 0,
|
||||
current_stop_elapsed_sec: 0,
|
||||
distributor_run_elapsed_sec: 0,
|
||||
fault_locked: false,
|
||||
flt_active: false,
|
||||
comm_locked: false,
|
||||
manual_ack_required: false,
|
||||
last_tick_at: None,
|
||||
|
|
|
|||
Loading…
Reference in New Issue