send over CAN

This commit is contained in:
Matthew Kennedy 2020-11-28 02:56:46 -08:00
parent 95d14ad170
commit f68a12b2fc
1 changed files with 3 additions and 3 deletions

View File

@ -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);
} }
} }