Ford SENT ETB bench test in NJ #4745

we shall unit test SENT
This commit is contained in:
Andrey 2022-11-07 00:25:47 -05:00
parent a25c9ab520
commit be8ba29b42
2 changed files with 8 additions and 0 deletions

View File

@ -58,6 +58,11 @@
#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;

View File

@ -36,6 +36,9 @@ struct sent_channel_stat {
};
class sent_channel {
public:
sent_channel();
private:
SENT_STATE_enum state = SENT_STATE_CALIB;