Rev 1541 |
Go to most recent revision |
Blame |
Compare with Previous |
Last modification |
View Log
| RSS feed
package dongfang.mkt.version;
import dongfang.mkt.frames.FrameFactory;
import dongfang.mkt.frames.FrameFactory_V0_74;
public class MKVersion
{
public enum MK_VERSION
{
V0_74KILLAGREG,
V0_78,
DONGFANG_V0_74
};
public enum LCDPAGES
{
VERSION
("Version"),
HEIGHT
("Height"),
ATTITUDE
("Attitude"),
CHANNELS
("Channels"),
CONTROLS
("Controls"),
GYROS
("Gyros"),
ACC
("Acc. Meter"),
POWER
("Power"),
COMPASS
("Compass"),
VARIABLES
("Variables"),
SERVOS
("Servos"),
EXTERNALCONTROL
("ExtControl"),
BLCERRORS
("BLC Errors"),
BLCSDETECTED
("BLCs"),
GPS
("GPS"),
MM3
("MM3"),
MM3RANGE
("MM3Range"),
SIGNAL
("Signal"),
VARS1
("Variables 1"),
VARS2
("Variables 2"),
TIMER
("Timer");
private String title
;
LCDPAGES
(String title
) {
this.
title = title
;
}
public String getTitle
() {
return title
;
}
}
private static LCDPAGES
[] LCDPAGES_074 =
{
LCDPAGES.
VERSION,
LCDPAGES.
HEIGHT,
LCDPAGES.
ATTITUDE,
LCDPAGES.
CHANNELS,
LCDPAGES.
CONTROLS,
LCDPAGES.
GYROS,
LCDPAGES.
ACC,
LCDPAGES.
POWER,
LCDPAGES.
COMPASS,
LCDPAGES.
VARIABLES,
LCDPAGES.
SERVOS,
LCDPAGES.
EXTERNALCONTROL,
LCDPAGES.
BLCERRORS,
LCDPAGES.
BLCSDETECTED,
LCDPAGES.
GPS,
LCDPAGES.
MM3,
LCDPAGES.
MM3RANGE
};
private static LCDPAGES
[] LCDPAGES_078 =
{
LCDPAGES.
VERSION,
LCDPAGES.
HEIGHT,
LCDPAGES.
ATTITUDE,
LCDPAGES.
CHANNELS,
LCDPAGES.
CONTROLS,
LCDPAGES.
GYROS,
LCDPAGES.
ACC,
LCDPAGES.
POWER,
LCDPAGES.
SIGNAL,
LCDPAGES.
COMPASS,
LCDPAGES.
VARS1,
LCDPAGES.
VARS2,
LCDPAGES.
SERVOS,
LCDPAGES.
EXTERNALCONTROL,
LCDPAGES.
BLCERRORS,
LCDPAGES.
BLCSDETECTED,
LCDPAGES.
TIMER
};
/*
public static FrameFactory getFrameFactory(MK_VERSION version) {
return new FrameFactory_V0_74();
}
*/
// dummy impl.
public static LCDPAGES
[] getLCDPAGES
() {
return LCDPAGES_074
;
}
}