2019NHK_teamA / Mbed 2 deprecated 2019KoRobo

Dependencies:   mbed

Committer:
st17099ng
Date:
Wed Aug 28 01:27:36 2019 +0000
Revision:
1:72b8490a4ece
Parent:
0:bba4760cb391
2019Korobo

Who changed what in which revision?

UserRevisionLine numberNew contents of line
st17099ng 0:bba4760cb391 1 #ifndef Help_H
st17099ng 0:bba4760cb391 2 #define Help_H
st17099ng 0:bba4760cb391 3 #include "mbed.h"
st17099ng 0:bba4760cb391 4
st17099ng 1:72b8490a4ece 5 #define nDuty10 0x73
st17099ng 1:72b8490a4ece 6 #define nDuty25 0x60
st17099ng 1:72b8490a4ece 7 #define nDuty85 0x20
st17099ng 1:72b8490a4ece 8 #define nDuty95 0x00
st17099ng 1:72b8490a4ece 9 #define pDuty10 0x8C
st17099ng 1:72b8490a4ece 10 #define pDuty25 0x9F
st17099ng 1:72b8490a4ece 11 #define pDuty85 0xDF
st17099ng 1:72b8490a4ece 12 #define pDuty95 0xFF
st17099ng 1:72b8490a4ece 13 #define SBREAK 0x80
st17099ng 1:72b8490a4ece 14 #define ON 0xFF
st17099ng 1:72b8490a4ece 15 #define OFF 0x80
st17099ng 0:bba4760cb391 16 #define TRANSIT 0x30
st17099ng 0:bba4760cb391 17
st17099ng 1:72b8490a4ece 18 #define Rf_add 0x10
st17099ng 1:72b8490a4ece 19 #define Lf_add 0x12
st17099ng 1:72b8490a4ece 20 #define Rb_add 0x14
st17099ng 1:72b8490a4ece 21 #define Lb_add 0x16
st17099ng 1:72b8490a4ece 22 #define Mot1add 0x18
st17099ng 0:bba4760cb391 23
st17099ng 0:bba4760cb391 24 #define cir 0
st17099ng 0:bba4760cb391 25 #define tri 1
st17099ng 0:bba4760cb391 26 #define squ 2
st17099ng 0:bba4760cb391 27 #define cro 3
st17099ng 0:bba4760cb391 28 #define up 4
st17099ng 0:bba4760cb391 29 #define dow 5
st17099ng 0:bba4760cb391 30 #define rig 6
st17099ng 0:bba4760cb391 31 #define lef 7
st17099ng 0:bba4760cb391 32 #define r1 8
st17099ng 0:bba4760cb391 33 #define r2 9
st17099ng 0:bba4760cb391 34 #define l1 10
st17099ng 0:bba4760cb391 35 #define l2 11
st17099ng 0:bba4760cb391 36 #define low 1
st17099ng 0:bba4760cb391 37 #define fast 3
st17099ng 0:bba4760cb391 38
st17099ng 0:bba4760cb391 39 #define pri pc.printf
st17099ng 0:bba4760cb391 40
st17099ng 0:bba4760cb391 41 void get_stick(int *axis,char mode);
st17099ng 0:bba4760cb391 42 bool get_but(int butnum);
st17099ng 1:72b8490a4ece 43 void set_speed(int *pspeed);
st17099ng 1:72b8490a4ece 44 void set_direct(int *direct);
st17099ng 0:bba4760cb391 45 void set_emg(void);
st17099ng 0:bba4760cb391 46 void set_servo(void);
st17099ng 0:bba4760cb391 47 void set_air(char *mot,int num1,int num2);
st17099ng 0:bba4760cb391 48 void set_tire(char *fmot,char *bmot,int direct, char mode, int speed);
st17099ng 0:bba4760cb391 49 void set_slide(char *Rfmot,char *Lfmot,char *Rbmot,char *Lbmot, int but1,int but2, int speed);
st17099ng 0:bba4760cb391 50 void set_mot(char *mot,int num1,int num2);
st17099ng 1:72b8490a4ece 51 void set_air(char *air, int num1, int num2);
st17099ng 0:bba4760cb391 52 void write_data(char address,char data);
st17099ng 0:bba4760cb391 53 void format_data(char *data);
st17099ng 1:72b8490a4ece 54 static int Raxis[2],Laxis[2];
st17099ng 0:bba4760cb391 55
st17099ng 0:bba4760cb391 56 #endif