aigamo get data

Dependents:   agz_base_ver2 agz_base_ver2 get_GPS_data_ver1 aigamozu_program_ver2 ... more

Files at this revision

API Documentation at this revision

Comitter:
kityann
Date:
Mon Apr 20 10:36:59 2015 +0000
Parent:
0:54e62ef6d287
Commit message:
a

Changed in this revision

agz_common.cpp Show annotated file Show diff for this revision Revisions of this file
agz_common.h Show annotated file Show diff for this revision Revisions of this file
diff -r 54e62ef6d287 -r 14e469b0c33e agz_common.cpp
--- a/agz_common.cpp	Wed Jun 18 13:48:18 2014 +0000
+++ b/agz_common.cpp	Mon Apr 20 10:36:59 2015 +0000
@@ -54,9 +54,6 @@
 }
 
 
-
-
-
 //get function
 long AGZ_ROBOT::get_LatitudeH(){
     return LatitudeH.value_long;
@@ -75,4 +72,43 @@
 }
 uint8_t AGZ_ROBOT::get_state(){
     return state;
-}
\ No newline at end of file
+}
+
+
+void AGZ_ROBOT::set_LatitudeKH(uint8_t *data){
+    for(int i = 0;i < 3;i++)
+        LatitudeKH.value_ch[i] = data[i];
+}
+
+void AGZ_ROBOT::set_LatitudeKL(uint8_t *data){
+    for(int i = 0;i < 6;i++)
+        LatitudeKL.value_ch[i] = data[i];
+}
+
+void AGZ_ROBOT::set_LongitudeKH(uint8_t *data){
+    for(int i = 0;i < 3;i++)
+        LongitudeKH.value_ch[i] = data[i];
+}
+
+void AGZ_ROBOT::set_LongitudeKL(uint8_t *data){
+    for(int i = 0;i < 6;i++)
+        LongitudeKL.value_ch[i] = data[i];
+}
+
+
+//get function
+long AGZ_ROBOT::get_LatitudeKH(){
+    return LatitudeKH.value_long;
+}
+
+long AGZ_ROBOT::get_LatitudeKL(){
+    return LatitudeKL.value_long;
+}
+
+long AGZ_ROBOT::get_LongitudeKH(){
+    return LongitudeKH.value_long;
+}
+
+long AGZ_ROBOT::get_LongitudeKL(){
+    return LongitudeKL.value_long;
+}
diff -r 54e62ef6d287 -r 14e469b0c33e agz_common.h
--- a/agz_common.h	Wed Jun 18 13:48:18 2014 +0000
+++ b/agz_common.h	Mon Apr 20 10:36:59 2015 +0000
@@ -48,6 +48,7 @@
 private:
     uint8_t state;
     AGZ_UNION_INT8_LONG LatitudeH,LatitudeL, LongitudeH,LongitudeL;  
+    AGZ_UNION_INT8_LONG LatitudeKH,LatitudeKL, LongitudeKH,LongitudeKL;  
 public:
     AGZ_ROBOT();
     void set_state(uint8_t);
@@ -60,6 +61,14 @@
     long get_LatitudeL();    
     long get_LongitudeH();    
     long get_LongitudeL();    
+    void set_LatitudeKH(uint8_t*);    
+    void set_LatitudeKL(uint8_t*);    
+    void set_LongitudeKH(uint8_t*);    
+    void set_LongitudeKL(uint8_t*);    
+    long get_LatitudeKH();    
+    long get_LatitudeKL();    
+    long get_LongitudeKH();    
+    long get_LongitudeKL();    
 };
 
 /*----------------------------------------------------------