Update of /cvsroot/firebug/firebug/project/src/sensordata
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1502
Modified Files:
mkmsg.sh xbow.h
Added Files:
mkcmsg.sh
Log Message:
Added a script for producing c output.
Index: xbow.h
===================================================================
RCS file: /cvsroot/firebug/firebug/project/src/sensordata/xbow.h,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** xbow.h 5 Jul 2004 18:13:38 -0000 1.3
--- xbow.h 23 Jul 2004 00:31:19 -0000 1.4
***************
*** 68,69 ****
--- 68,89 ----
AM_WEATHER1 = 139
};
+
+
+ typedef struct GPS1 {
+
+ uint8_t hours; //Hours
+ uint8_t minutes;//Minutes
+ uint8_t Lat_deg;//Latitude degrees
+ uint8_t Long_deg;//Longitude degrees
+ uint32_t dec_sec;//Decimal seconds
+ uint32_t Lat_dec_min;//Latitude decimal minutes
+ uint32_t Long_dec_min;//Longitude decimal minutes
+ uint8_t NSEWind;//NSEWind
+ uint8_t Fixed; // as to whether the packet is valid(i.e. has the gps Fixed on to the sattelites).
+ uint8_t num_sats;
+ } GPS1;
+
+
+ enum {
+ AM_GPS1 = 140
+ };
--- NEW FILE: mkcmsg.sh ---
#!/usr/bin/sh
# Temporary script for figuring out how to extract the
# struct definitions from the nc files, put them in
# header files, and use mig to make msgs from the
# struct definition.
# but for c
set MSGROOT=$HOME/firebug/fireboard/tos/
mig c -java-classname=org.firebug.FireMsg -I. $HOME/firebug/fireboard/tos/sensorboards/xbow_mts420ca/fireboard.h Firedata_msg > FireMsg.c
Index: mkmsg.sh
===================================================================
RCS file: /cvsroot/firebug/firebug/project/src/sensordata/mkmsg.sh,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** mkmsg.sh 2 Jul 2004 00:09:47 -0000 1.5
--- mkmsg.sh 23 Jul 2004 00:31:19 -0000 1.6
***************
*** 15,18 ****
--- 15,22 ----
mig java -java-classname=org.firebug.XBow2Msg -I. xbow.h XSensorMTS420GPSData > XBow2Msg.java
mig java -java-classname=org.firebug.XBow3Msg -I. xbow.h Weather1 > XBow3Msg.java
+ mig java -java-classname=org.firebug.XBow4Msg -I. xbow.h GPS1 > XBow4Msg.java
+
+
+
|