-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ae0b215
commit 0b18e56
Showing
3 changed files
with
20 additions
and
453 deletions.
There are no files selected for viewing
19 changes: 19 additions & 0 deletions
19
stm32-modules/flex-stacker/firmware/motor_control/motor_policy.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#include "firmware/motor_policy.hpp" | ||
|
||
#include "firmware/motor_hardware.h" | ||
|
||
using namespace motor_policy; | ||
|
||
|
||
auto MotorPolicy::enable_motor(MotorID motor_id) -> void { | ||
enable_motor(motor_id); | ||
} | ||
|
||
auto MotorPolicy::disable_motor(MotorID motor_id) -> void { | ||
disable_motor(motor_id); | ||
} | ||
|
||
|
||
auto MotorPolicy::step(MotorID motor_id) -> void { | ||
step(motor_id); | ||
} |
Oops, something went wrong.