implement dc bus brownout check

This commit is contained in:
Oskar Weigl
2018-02-19 00:32:01 -08:00
parent d9a5ca8651
commit 72efd17f31
3 changed files with 66 additions and 11 deletions
+2 -2
View File
@@ -62,8 +62,8 @@ void Axis::StateMachineLoop() {
for (;;) {
// Keep rotor estimation up to date while idling
osSignalWait(M_SIGNAL_PH_CURRENT_MEAS, osWaitForever);
update_rotor(legacy_motor_ref_);
loop_updates(legacy_motor_ref_);
if (do_calibration_) {
do_calibration_ = false;