Luccas Eagles
/
CONTROL_MOTOR_MELODY
added melody to old motorcontol
Diff: main.cpp
- Revision:
- 16:53d3445dcf6b
- Parent:
- 15:2c9b3251c383
- Child:
- 17:baffdedf9590
diff -r 2c9b3251c383 -r 53d3445dcf6b main.cpp --- a/main.cpp Sun Mar 08 10:59:47 2020 +0000 +++ b/main.cpp Sun Mar 08 11:01:22 2020 +0000 @@ -271,8 +271,7 @@ void motorCtrlFn() { while(1) { - //motorCtrlT.signal_wait(0x1); - osSignalWait(0x1, osWaitForever); + thread_motorCtrl.signal_wait(0x1); position_local = get_position_local(); float velocity_factor = (1000/(timer_velocity.read_ms()-last_time_MtrCtlr));