knock counter on CAN (#4033)

This commit is contained in:
Matthew Kennedy 2022-04-03 03:58:11 -07:00 committed by GitHub
parent 7073e1e58f
commit 4bb728a687
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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 {