We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b42debb commit fa95721Copy full SHA for fa95721
boards/MicroBit_v2/src/full/microbit-motordriver.adb
@@ -93,10 +93,15 @@ package body MicroBit.MotorDriver is
93
lf => (0,Speed.lf),
94
rb => (0,0));
95
when Rotating_Left =>
96
- Drive_Wheels(rf => (Speed.rf,0),
97
- lb => (Speed.rb, 0),
+ Drive_Wheels(rf => (Speed.rf, 0),
+ rb => (Speed.rb, 0),
98
99
- rb => (0,Speed.lb));
+ lb => (0,Speed.lb));
100
+ when Rotating_Right =>
101
+ Drive_Wheels(rf => (0, Speed.rf),
102
+ rb => (0, Speed.rb),
103
+ lf => (Speed.lf, 0),
104
+ lb => (Speed.lb, 0));
105
when Stop =>
106
Drive_Wheels(rf => (0, 0),
107
rb => (0, 0),
0 commit comments