test pump

This commit is contained in:
Matthew Kennedy 2020-10-27 20:07:16 -07:00
parent b611a96f05
commit 46718dd77a
1 changed files with 15 additions and 5 deletions

View File

@ -46,12 +46,22 @@ int main() {
heaterPwm.SetDuty(0.2f);
while (true) {
auto result = AnalogSample();
// auto result = AnalogSample();
// dummy data
SendCanData(0.5f, 300);
// // dummy data
// SendCanData(0.5f, 300);
uartStartSend(&UARTD1, 13, "Hello, world!");
// uartStartSend(&UARTD1, 13, "Hello, world!");
// chThdSleepMilliseconds(10);
SetPumpCurrentTarget(-1000);
chThdSleepMilliseconds(10);
SetPumpCurrentTarget(0);
chThdSleepMilliseconds(10);
SetPumpCurrentTarget(1000);
chThdSleepMilliseconds(10);
}
}