mirror of
https://gitlab.dit.htwk-leipzig.de/phillip.kuehne/dezibot.git
synced 2025-05-19 02:51:47 +02:00
Fix Motor cleanup
This commit is contained in:
parent
fdd59a83e3
commit
59e2ec3d10
@ -218,6 +218,8 @@ void Motion::stop(void){
|
|||||||
vTaskDelete(xClockwiseTaskHandle);
|
vTaskDelete(xClockwiseTaskHandle);
|
||||||
xClockwiseTaskHandle = NULL;
|
xClockwiseTaskHandle = NULL;
|
||||||
}
|
}
|
||||||
|
PowerManager::releaseCurrent(PowerParameters::PowerConsumers::MOTOR_LEFT);
|
||||||
|
PowerManager::releaseCurrent(PowerParameters::PowerConsumers::MOTOR_RIGHT);
|
||||||
Motion::left.setSpeed(0);
|
Motion::left.setSpeed(0);
|
||||||
Motion::right.setSpeed(0);
|
Motion::right.setSpeed(0);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user