Subversion Repositories Projects

Rev

Rev 1698 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1698 Rev 1699
Line 2... Line 2...
2
 
2
 
3
import java.io.IOException;
3
import java.io.IOException;
4
 
4
 
5
import dongfang.mkt.RequestFrameVisitor;
5
import dongfang.mkt.RequestFrameVisitor;
6
 
6
 
7
 
-
 
8
/*
-
 
9
uint8_t digital[2];
-
 
10
uint8_t remoteButtons;
-
 
11
int8_t  pitch;
-
 
12
int8_t  roll;
-
 
13
int8_t  yaw;
-
 
14
uint8_t throttle;
-
 
15
int8_t  height;
-
 
16
uint8_t free;
-
 
17
uint8_t frame;
-
 
18
uint8_t config;
-
 
19
*/
-
 
20
public class ExternalControlRequestFrame extends RequestFrame {
7
public class ExternalControlRequestFrame extends RequestFrame {
21
        public static final int COMMAND_NONE = 0;
8
        public static final int COMMAND_NONE = 0;
22
        public static final int COMMAND_START = 6;
9
        public static final int COMMAND_GYROCAL = 1;
23
        public static final int COMMAND_STOP = 8;
10
        public static final int COMMAND_ACCCAL = 2;
24
        public static final int COMMAND_GYROCAL = 2;
11
        public static final int COMMAND_GYRO_ACC_CAL = 3;
-
 
12
        public static final int COMMAND_STOP = 10;
25
        public static final int COMMAND_ACCCAL = 4;
13
        public static final int COMMAND_START = 11;
26
       
14
       
27
        int[] digital = new int[2];// unsigned byte.
15
        int[] digital = new int[2];// unsigned byte.
28
        int remoteButtons;              // unsigned byte.
16
        int remoteButtons;              // unsigned byte.
29
        int pitch;                              // signed byte.
17
        int pitch;                              // signed byte.
30
        int roll;                               // signed byte.
18
        int roll;                               // signed byte.