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.
Dependencies: mbed
Diff: Help.h
- Revision:
- 1:72b8490a4ece
- Parent:
- 0:bba4760cb391
diff -r bba4760cb391 -r 72b8490a4ece Help.h --- a/Help.h Tue Mar 05 09:18:07 2019 +0000 +++ b/Help.h Wed Aug 28 01:27:36 2019 +0000 @@ -2,22 +2,24 @@ #define Help_H #include "mbed.h" -#define back1 0x60 -#define back2 0x20 -#define back3 0x00 -#define front1 0x9F -#define front2 0xDF -#define front3 0xFF -#define sb 0x80 -#define on 0xFF -#define off 0x80 +#define nDuty10 0x73 +#define nDuty25 0x60 +#define nDuty85 0x20 +#define nDuty95 0x00 +#define pDuty10 0x8C +#define pDuty25 0x9F +#define pDuty85 0xDF +#define pDuty95 0xFF +#define SBREAK 0x80 +#define ON 0xFF +#define OFF 0x80 #define TRANSIT 0x30 -#define Rfmotadd 0x10 -#define Lfmotadd 0x12 -#define Rbmotadd 0x14 -#define Lbmotadd 0x16 -#define airadd 0x20 +#define Rf_add 0x10 +#define Lf_add 0x12 +#define Rb_add 0x14 +#define Lb_add 0x16 +#define Mot1add 0x18 #define cir 0 #define tri 1 @@ -33,23 +35,22 @@ #define l2 11 #define low 1 #define fast 3 -#define pul0 0.05 -#define pul90 0.075 -#define pul180 0.1 #define pri pc.printf void get_stick(int *axis,char mode); bool get_but(int butnum); -int set_speed(int speed); -int set_direct(int *raxis, int *laxis); +void set_speed(int *pspeed); +void set_direct(int *direct); void set_emg(void); void set_servo(void); void set_air(char *mot,int num1,int num2); void set_tire(char *fmot,char *bmot,int direct, char mode, int speed); void set_slide(char *Rfmot,char *Lfmot,char *Rbmot,char *Lbmot, int but1,int but2, int speed); void set_mot(char *mot,int num1,int num2); +void set_air(char *air, int num1, int num2); void write_data(char address,char data); void format_data(char *data); +static int Raxis[2],Laxis[2]; #endif \ No newline at end of file