mirror of https://github.com/rusefi/wideband.git
test pump
This commit is contained in:
parent
b611a96f05
commit
46718dd77a
|
@ -46,12 +46,22 @@ int main() {
|
||||||
heaterPwm.SetDuty(0.2f);
|
heaterPwm.SetDuty(0.2f);
|
||||||
|
|
||||||
while (true) {
|
while (true) {
|
||||||
auto result = AnalogSample();
|
// auto result = AnalogSample();
|
||||||
|
|
||||||
// dummy data
|
// // dummy data
|
||||||
SendCanData(0.5f, 300);
|
// 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);
|
chThdSleepMilliseconds(10);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue