]> Pileus Git - ~andy/iBeaconNav/blob - src/edu/ucla/iBeaconNav/CMD.java
Add connect/disconnect and iBeacon data
[~andy/iBeaconNav] / src / edu / ucla / iBeaconNav / CMD.java
1 package edu.ucla.iBeaconNav;
2
3 public class CMD {
4         /* Task Commands */
5         static enum Command {
6                 REGISTER,
7                 CONNECT,
8                 DISCONNECT,
9                 RSTHEAD,
10                 RSTDST,
11         }
12
13         /* Responses Commands */
14         static enum Response {
15                 REGISTER,
16                 NOTIFY,
17                 SHOWDATA,
18         }
19
20         /* Data Source IDs */
21         static enum Source {
22                 GPS,
23                 INERTIAL,
24                 IBEACON,
25         }
26
27         /* Show Data Commands */
28         static enum Data {
29                 ACC,      // x,      y,       z
30                 MAG,      // x,      y,       z
31                 GYR,      // roll,   pitch,   yaw  (delta radians?)
32                 GYR1HZ,   // roll,   pitch,   yaw  (delta radians?)
33                 ORIENT,   // roll,   pitch,   yaw  (???
34                 WRDACC,   // x,      y,       z    (world frame)
35                 WRDGYR,   // roll,   pitch,   yaw  (worldf rame?)
36                 STPCNT,   // count,  gravity
37                 POSITION, // cur x,  cur y
38                 ROTATION, // roll,   pitch,   yaw  (degrees)
39                 HEADING,  // heading
40                 STABLE,   // stable                (true/false)
41                 BEACON,   // lat,    lon,     dist
42         }
43 }