Merge remote-tracking branch 'origin/devel' into control-loop-refactor

This commit is contained in:
Samuel Sadok
2020-09-22 12:56:00 +02:00
19 changed files with 214 additions and 29 deletions
+2
View File
@@ -168,6 +168,8 @@ Motor::Motor(TIM_HandleTypeDef* timer,
* @returns: True on success, false otherwise
*/
bool Motor::arm(PhaseControlLaw<3>* control_law) {
axis_->mechanical_brake_.release();
CRITICAL_SECTION() {
control_law_ = control_law;