knock counter on CAN (#4033)

This commit is contained in:
Matthew Kennedy 2022-04-03 03:58:11 -07:00 committed by GitHub
parent 9ee06779f6
commit 467f446e11
1 changed files with 2 additions and 1 deletions

View File

@ -120,13 +120,14 @@ struct Fueling {
scaled_channel<uint16_t, 1000> cylAirmass;
scaled_channel<uint16_t, 100> estAirflow;
scaled_ms fuel_pulse;
uint16_t pad;
uint16_t knockCount;
};
static void populateFrame(Fueling& msg) {
msg.cylAirmass = engine->engineState.sd.airMassInOneCylinder;
msg.estAirflow = engine->engineState.airflowEstimate;
msg.fuel_pulse = engine->actualLastInjection[0];
msg.knockCount = engine->outputChannels.knockCount;
}
struct Fueling2 {