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.h
- Revision:
- 3:42a8da1837f7
- Parent:
- 2:43e1336c80e4
- Child:
- 4:90b840185921
--- a/Control.h Fri Dec 27 08:16:50 2019 +0000 +++ b/Control.h Sat Dec 28 06:10:55 2019 +0000 @@ -6,15 +6,33 @@ public: void setup(); void run(); - void OmniControl(); - void ModuleControl(int num, int direction); - + private: int s_time; int Vx,Vy,wl; - float bias[6]; //= {0.4f,0.4f,0.4f,0.4f}; + float bias[6]; int pwm[6]; - + void OmniControl(); + void ModuleControl(); + + int pre_button[12]; + + #define L1 0 + #define L2 1 + #define R1 2 + #define R2 3 + #define TRIANGLE 4 + #define CIRCLE 5 + #define CROSS 6 + #define SQUARE 7 + #define UP 8 + #define DOWN 9 + #define LEFT 10 + #define RIGHT 11 + + int CheckButton(int status,int button); + + // int s_time; };