Skip to content

Commit

Permalink
Ford SENT ETB bench test in NJ #4745
Browse files Browse the repository at this point in the history
we shall unit test SENT
  • Loading branch information
rusefillc committed Nov 7, 2022
1 parent be8ba29 commit 73e6994
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
5 changes: 0 additions & 5 deletions firmware/hw_layer/drivers/sent/sent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
9 changes: 3 additions & 6 deletions firmware/hw_layer/drivers/sent/sent_logic.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 73e6994

Please sign in to comment.