From ffbf58e0b6ed2b3dd50c34ec225bf20f984a600c Mon Sep 17 00:00:00 2001 From: Andrey Date: Mon, 7 Nov 2022 10:30:30 -0500 Subject: [PATCH] Ford SENT ETB bench test in NJ #4745 we shall unit test SENT --- firmware/hw_layer/drivers/sent/sent.cpp | 5 ----- firmware/hw_layer/drivers/sent/sent_logic.h | 9 +++------ 2 files changed, 3 insertions(+), 11 deletions(-) diff --git a/firmware/hw_layer/drivers/sent/sent.cpp b/firmware/hw_layer/drivers/sent/sent.cpp index ad6a70217b..37e37d2ead 100644 --- a/firmware/hw_layer/drivers/sent/sent.cpp +++ b/firmware/hw_layer/drivers/sent/sent.cpp @@ -58,11 +58,6 @@ #define MsgGetSig1(msg) (((msg) >> (1 * 4)) & 0xfff) #define MsgGetCrc(msg) MsgGetNibble(msg, 7) - -sent_channel::sent_channel() { - state = SENT_STATE_CALIB; -} - void sent_channel::restart(void) { state = SENT_STATE_CALIB; diff --git a/firmware/hw_layer/drivers/sent/sent_logic.h b/firmware/hw_layer/drivers/sent/sent_logic.h index 2dbd0d0406..b230857462 100644 --- a/firmware/hw_layer/drivers/sent/sent_logic.h +++ b/firmware/hw_layer/drivers/sent/sent_logic.h @@ -36,17 +36,14 @@ struct sent_channel_stat { }; class sent_channel { -public: - sent_channel(); - private: SENT_STATE_enum state = SENT_STATE_CALIB; /* Unit interval in timer clocks - adjusted on SYNC */ - uint32_t tickPerUnit; - uint32_t pulseCounter; + uint32_t tickPerUnit = 0; + uint32_t pulseCounter = 0; /* pulses skipped in init state while waiting for SYNC */ - uint32_t initStatePulseCounter; + uint32_t initStatePulseCounter = 0; /* fast channel shift register*/ uint32_t rxReg;