Merge branch 'master' of https://github.com/rusefi/rusefi into master
This commit is contained in:
commit
e497efa504
|
@ -178,8 +178,10 @@ void processCanRxMessage(const size_t busIndex, const CANRxFrame &frame, efitick
|
|||
//Vss is configurable, should we handle it here:
|
||||
processCanRxVss(frame, nowNt);
|
||||
|
||||
// todo: convert to CanListener or not?
|
||||
processCanRxImu(frame);
|
||||
if (!engineConfiguration->useSpiImu) {
|
||||
// todo: convert to CanListener or not?
|
||||
processCanRxImu(frame);
|
||||
}
|
||||
|
||||
processCanBenchTest(frame);
|
||||
|
||||
|
|
|
@ -124,10 +124,12 @@ private:
|
|||
lsm303agrAccelerometerReadCooked(&LIS2DH12, acccooked);
|
||||
#endif
|
||||
|
||||
/* milli-G to G */
|
||||
engine->sensors.accelerometer.lat = acccooked[0] / 1000.0;
|
||||
engine->sensors.accelerometer.lon = acccooked[1] / 1000.0;
|
||||
engine->sensors.accelerometer.vert = acccooked[2] / 1000.0;
|
||||
if (engineConfiguration->useSpiImu) {
|
||||
/* milli-G to G */
|
||||
engine->sensors.accelerometer.lat = acccooked[0] / 1000.0;
|
||||
engine->sensors.accelerometer.lon = acccooked[1] / 1000.0;
|
||||
engine->sensors.accelerometer.vert = acccooked[2] / 1000.0;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue