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.
Control.h
- Committer:
- takedayuya
- Date:
- 2020-01-04
- Revision:
- 2:8dd5298ca3a0
- Parent:
- 1:9c7744271d72
File content as of revision 2:8dd5298ca3a0:
#ifndef CONTROL_H
#define CONTROL_H
class control{
public:
void setup();
void run();
private:
#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
void OmniControl();
void ModuleControl(int num,int direction);
void SolenoidControl();
int s_time;
int Vx,Vy,wl;
float bias[4];
int pwm[4];
int pre_button[4];
int PS3_R1_bit();
int pre_PS3_R1_bit;
int pre_button_circle;
int pre_button_triangle;
int pre_button_square;
int pre_button_cross;
int CheckButton(int status,int button);
};
#endif