for CAN communication between mbed
Dependents: EM_Logger EM_Mission
Diff: myCAN.h
- Revision:
- 4:ef1cc9f2945e
- Parent:
- 0:89073e0112db
diff -r 89073e0112db -r ef1cc9f2945e myCAN.h --- a/myCAN.h Sun Jul 21 07:02:45 2013 +0000 +++ b/myCAN.h Fri Aug 16 08:24:30 2013 +0000 @@ -17,15 +17,13 @@ float get_temp(void); int get_pres(void); - float get_a_x(void); - float get_a_y(void); - int get_a_z(void); - int get_j_x(void); - int get_j_y(void); - int get_j_z(void); + int get_roll(void); + int get_pitch(void); - void make_logger_senddata(char* time,int NoS,char* latitude,char* longitude,int a_z,int temp,int pres); - void make_mission_senddata(void); + int get_mission_status(void); + + void make_logger_senddata(char* time,int NoS,char* latitude,char* longitude,int roll,int pitch,int temp,int pres); + void make_mission_senddata(int status); void send(char user); @@ -39,9 +37,14 @@ char latitude[10]; char longitude[11]; - int acel[3]; - int jail[3]; + int mission_status; + char hroll; + char lroll; + int roll; + char hpitch; + char lpitch; + int pitch; int temp; int pres;