forward

Dependencies:   VNH5019

Fork of AigamozuControlPackets by aigamozu

Revision:
1:80448565c15c
Parent:
0:2b8b56ac7a82
Child:
2:3f2d4f53ceed
diff -r 2b8b56ac7a82 -r 80448565c15c AigamozuControlPackets.cpp
--- a/AigamozuControlPackets.cpp	Fri May 30 15:33:50 2014 +0000
+++ b/AigamozuControlPackets.cpp	Wed Jun 04 09:12:20 2014 +0000
@@ -2,6 +2,8 @@
 #include "VNH5019.h"
 
 
+
+
 uint8_t* AigamozuControlPackets::createStatusPacket(long latitudeH,long latitudeL,long longitudeH,long longitudeL,uint8_t fromID,uint8_t toID)
 {
     uint8_t* data = new uint8_t[RECEIVES_GPS_STATUS_LENGTH];
@@ -14,7 +16,7 @@
     lonH.a = longitudeH;
     lonL.a = longitudeL;
     
-    uint8_t tmp[] = {'A','G','S','S','F',fromID,'T',toID,'S',nowMode,71,80,83,latH.b[0],latH.b[1],latH.b[2],latH.b[3],latL.b[0],latL.b[1],latL.b[2],latL.b[3],lonH.b[0],lonH.b[1],lonH.b[2],lonH.b[3],lonL.b[0],lonL.b[1],lonL.b[2],lonL.b[3],65,71,69};
+    uint8_t tmp[] = {'A','G','S','R','F',fromID,'T',toID,'S',nowStatus,71,80,83,latH.b[0],latH.b[1],latH.b[2],latH.b[3],latL.b[0],latL.b[1],latL.b[2],latL.b[3],lonH.b[0],lonH.b[1],lonH.b[2],lonH.b[3],lonL.b[0],lonL.b[1],lonL.b[2],lonL.b[3],65,71,69};
     for(int i = 0; i < RECEIVES_GPS_STATUS_LENGTH; ++i) data[i] = tmp[i];
     return data;
 }