Rev 403 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 403 | Rev 475 | ||
---|---|---|---|
Line 23... | Line 23... | ||
23 | public int roll_int() { return analog[2]; } |
23 | public int roll_int() { return analog[2]; } |
24 | public int accnick() { return analog[3]; } |
24 | public int accnick() { return analog[3]; } |
25 | public int accroll() { return analog[4]; } |
25 | public int accroll() { return analog[4]; } |
Line -... | Line 26... | ||
- | 26 | ||
- | 27 | ||
- | 28 | public int UBatt() { return analog[9]; } |
|
- | 29 | public int SenderOkay() { return analog[10]; } |
|
- | 30 | ||
Line 26... | Line 31... | ||
26 | 31 | ||
27 | 32 | ||
28 | 33 | ||
29 | public MKDebugData() |
34 | public MKDebugData() |
Line 40... | Line 45... | ||
40 | if (version.compare(-1,-1)==version.VERSION_EQUAL) |
45 | if (version.compare(-1,-1)==version.VERSION_EQUAL) |
41 | return; |
46 | return; |
Line 42... | Line 47... | ||
42 | 47 | ||
43 | if (version.compare(0,60)==version.VERSION_PREVIOUS) |
48 | if (version.compare(0,60)==version.VERSION_PREVIOUS) |
44 | { |
49 | { |
45 | for (i=0;i<16;i++) |
50 | for (i=0;i<32;i++) |
46 | { |
51 | { |
47 | analog[i]=(int)((in_arr[1+i*2]<<8) | in_arr[2+i*2]); |
52 | analog[i]=(int)((in_arr[1+i*2]<<8) | in_arr[2+i*2]); |
48 | if ((analog[i]&(2<<14))!=0) |
53 | if ((analog[i]&(2<<14))!=0) |
49 | analog[i]=-(analog[i]&(0xFFFF-1))^(0xFFFF-1); |
54 | analog[i]=-(analog[i]&(0xFFFF-1))^(0xFFFF-1); |