mirror of https://github.com/rusefi/wideband.git
send over CAN
This commit is contained in:
parent
95d14ad170
commit
f68a12b2fc
|
@ -45,9 +45,9 @@ int main() {
|
||||||
InitCan();
|
InitCan();
|
||||||
|
|
||||||
while(1) {
|
while(1) {
|
||||||
size_t writeCount = chsnprintf(strBuffer, 200, "%.4f\t%.2f\t%.3f\n", GetSensorInternalResistance(), GetNernstDc(), GetLambda());
|
float esr = GetSensorInternalResistance();
|
||||||
uartStartSend(&UARTD1, writeCount, strBuffer);
|
float lambda = GetLambda();
|
||||||
|
|
||||||
chThdSleepMilliseconds(10);
|
SendCanData(lambda, esr);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue