Rev 1543 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1541 | - | 1 | package dongfang.mkt.version; |
2 | |||
3 | import dongfang.mkt.frames.FrameFactory; |
||
4 | |||
5 | public class MKVersion { |
||
6 | |||
7 | public enum MK_VERSION { |
||
8 | V0_74KILLAGREG, |
||
9 | V0_78, |
||
10 | DONGFANG_V0_74 |
||
11 | }; |
||
12 | |||
13 | public enum LCDPAGES { |
||
14 | VERSION("Version"), |
||
15 | HEIGHT("Height"), |
||
16 | ATTITUDE("Attitude"), |
||
17 | CHANNELS("Channels"), |
||
18 | CONTROLS("Controls"), |
||
19 | GYROS("Gyros"), |
||
20 | ACC("Acc. Meter"), |
||
21 | POWER("Power"), |
||
22 | COMPASS("Compass"), |
||
23 | VARIABLES("Variables"), |
||
24 | SERVOS("Servos"), |
||
25 | EXTERNALCONTROL("ExtControl"), |
||
26 | BLCERRORS("BLC Errors"), |
||
27 | BLCSDETECTED("BLCs"), |
||
28 | GPS("GPS"), |
||
29 | MM3("MM3"), |
||
30 | MM3RANGE("MM3Range"), |
||
31 | SIGNAL("Signal"), |
||
32 | VARS1("Variables 1"), |
||
33 | VARS2("Variables 2"), |
||
34 | TIMER("Timer"); |
||
35 | |||
36 | private String title; |
||
37 | |||
38 | LCDPAGES(String title) { |
||
39 | this.title = title; |
||
40 | } |
||
41 | |||
42 | public String getTitle() { |
||
43 | return title; |
||
44 | } |
||
45 | } |
||
46 | |||
47 | private static LCDPAGES[] LCDPAGES_074 = { |
||
48 | LCDPAGES.VERSION, |
||
49 | LCDPAGES.HEIGHT, |
||
50 | LCDPAGES.ATTITUDE, |
||
51 | LCDPAGES.CHANNELS, |
||
52 | LCDPAGES.CONTROLS, |
||
53 | LCDPAGES.GYROS, |
||
54 | LCDPAGES.ACC, |
||
55 | LCDPAGES.POWER, |
||
56 | LCDPAGES.COMPASS, |
||
57 | LCDPAGES.VARIABLES, |
||
58 | LCDPAGES.SERVOS, |
||
59 | LCDPAGES.EXTERNALCONTROL, |
||
60 | LCDPAGES.BLCERRORS, |
||
61 | LCDPAGES.BLCSDETECTED, |
||
62 | LCDPAGES.GPS, |
||
63 | LCDPAGES.MM3, |
||
64 | LCDPAGES.MM3RANGE |
||
65 | }; |
||
66 | |||
67 | private static LCDPAGES[] LCDPAGES_078 = { |
||
68 | LCDPAGES.VERSION, |
||
69 | LCDPAGES.HEIGHT, |
||
70 | LCDPAGES.ATTITUDE, |
||
71 | LCDPAGES.CHANNELS, |
||
72 | LCDPAGES.CONTROLS, |
||
73 | LCDPAGES.GYROS, |
||
74 | LCDPAGES.ACC, |
||
75 | LCDPAGES.POWER, |
||
76 | LCDPAGES.SIGNAL, |
||
77 | LCDPAGES.COMPASS, |
||
78 | LCDPAGES.VARS1, |
||
79 | LCDPAGES.VARS2, |
||
80 | LCDPAGES.SERVOS, |
||
81 | LCDPAGES.EXTERNALCONTROL, |
||
82 | LCDPAGES.BLCERRORS, |
||
83 | LCDPAGES.BLCSDETECTED, |
||
84 | LCDPAGES.TIMER |
||
85 | }; |
||
1543 | - | 86 | |
87 | /* |
||
1541 | - | 88 | public static FrameFactory getFrameFactory(MK_VERSION version) { |
89 | return new FrameFactory_V0_74(); |
||
90 | } |
||
1543 | - | 91 | */ |
1541 | - | 92 | |
93 | // dummy impl. |
||
94 | public static LCDPAGES[] getLCDPAGES() { |
||
95 | return LCDPAGES_074; |
||
96 | } |
||
97 | } |