parent
07d25f9e66
commit
d01c8dbd93
|
@ -731,7 +731,7 @@ void updateTunerStudioState(TunerStudioOutputChannels *tsOutputChannels DECLARE_
|
|||
tsOutputChannels->accelerationX = engine->sensors.accelerometer.x;
|
||||
// 278
|
||||
tsOutputChannels->accelerationY = engine->sensors.accelerometer.y;
|
||||
tsOutputChannels->accelerationY = engine->sensors.accelerometer.z;
|
||||
tsOutputChannels->accelerationZ = engine->sensors.accelerometer.z;
|
||||
tsOutputChannels->accelerationRoll = engine->sensors.accelerometer.roll;
|
||||
tsOutputChannels->accelerationYaw = engine->sensors.accelerometer.yaw;
|
||||
|
||||
|
|
|
@ -152,6 +152,7 @@ static void processCanRxImu(const CANRxFrame& frame, efitick_t nowNt) {
|
|||
engine->sensors.accelerometer.x = accX * MM5_10_ACC_QUANT;
|
||||
} else if (CAN_SID(frame) == MM5_10_Z) {
|
||||
float accZ = getShiftedLSB_intel(frame, 4);
|
||||
efiPrintf("CAN_rx MM5_10_Z %f", accZ);
|
||||
engine->sensors.accelerometer.z = accZ * MM5_10_ACC_QUANT;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue