File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -51,11 +51,13 @@ class LeafPack: public can::FrameSink
5151 bool m_reboot_in_process;
5252 bool m_shunt_fail_msg_logged;
5353 unsigned m_reboot_wait_count;
54+ const uint REBOOT_WAIT_PERIODS = 5 * 60 * 1000 / PACK_CALLBACK_PERIOD_ms;
55+ unsigned m_failsafe_count;
56+ const uint FAILSAFE_COUNT = 10 * 1000 / PACK_CALLBACK_PERIOD_ms;
5457
5558 void heartbeatCallback ();
5659 const uint PACK_CALLBACK_PERIOD_ms = 1000 ;
5760 const uint PACK_SILENT_TIMEOUT_PERIODS = 60 * 1000 / PACK_CALLBACK_PERIOD_ms;
58- const uint REBOOT_WAIT_PERIODS = 5 * 60 * 1000 / PACK_CALLBACK_PERIOD_ms;
5961 const uint REBOOT_POWERDOWN_PERIODS = 10 * 1000 / PACK_CALLBACK_PERIOD_ms;
6062 const float MAX_SHUNT_OPEN_CURRENT = 1.01 ;
6163 const uint MAX_PACK_STARTUP_COUNT = 5 * 60 * 1000 / PACK_CALLBACK_PERIOD_ms;
You can’t perform that action at this time.
0 commit comments