Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: Control.cpp
- Revision:
- 4:90b840185921
- Parent:
- 3:42a8da1837f7
diff -r 42a8da1837f7 -r 90b840185921 Control.cpp --- a/Control.cpp Sat Dec 28 06:10:55 2019 +0000 +++ b/Control.cpp Sat Dec 28 07:38:40 2019 +0000 @@ -74,6 +74,26 @@ }else{ pwm[5] = 0.0f; } + if(CheckButton(sb.PS3_SQUARE_bit(),s_time > 500)){ + if(ls){ + pwm[6] = 0.40f; + pwm[7] = 0.40f; + }else{ + pwm[6] = 0.0f; + pwm[7] = 0.0f; + } + }else{ + pwm[6] = 0.0f; + pwm[7] = 0.0f; + } + if(CheckButton(sb.PS3_R1_bit(),R1)&&CheckButton(sb.PS3_L1_bit(),L1)){ + pwm[8] = 0.60f; + }else{ + pwm[8] = 0.0f; + } + + + } \ No newline at end of file