Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
201 changes: 91 additions & 110 deletions companion/src/firmwares/eeprominterface.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,133 +47,114 @@ const uint8_t modn12x3[8][4]= {
};

enum Capability {
Models,
ModelName,
FlightModes,
FlightModesName,
FlightModesHaveFades,
Imperial,
Mixes,
Timers,
TimersName,
VoicesAsNumbers,
VoicesMaxLength,
MultiLangVoice,
HasModelImage,
ModelImageNameLen,
ModelImageFilters,
ModelImageKeepExtn,
CustomFunctions,
SafetyChannelCustomFunction,
LogicalSwitches,
CustomAndSwitches,
HasNegAndSwitches,
LogicalSwitchesExt,
Outputs,
BacklightLevelMin,
ChannelsName,
ExtraInputs,
TrimsRange,
CustomAndSwitches,
CustomFunctions,
DangerousFunctions,
ExtendedTrimsRange,
NumCurves,
NumCurvePoints,
OffsetWeight,
Simulation,
SoundMod,
SoundPitch,
MaxVolume,
MaxContrast,
MinContrast,
Haptic,
HasBeeper,
ModelTrainerEnable,
HasExpoNames,
HasNoExpo,
HasMixerNames,
HasCvNames,
HasPxxCountry,
HasPPMStart,
HasGeneralUnits,
HasFAIMode,
OptrexDisplay,
PPMExtCtrl,
PPMFrameLength,
Telemetry,
TelemetryUnits,
TelemetryBars,
Heli,
FlightModes,
FlightModesHaveFades,
FlightModesName,
GetThrSwitch,
GlobalFunctions,
Gvars,
GvarsInCS,
GvarsAreNamed,
GvarsFlightModes,
GvarsInCS,
GvarsName,
NoTelemetryProtocol,
TelemetryCustomScreens,
TelemetryCustomScreensBars,
TelemetryCustomScreensLines,
TelemetryCustomScreensFieldsPerLine,
TelemetryMaxMultiplier,
HasVario,
HasVarioSink,
Haptic,
HasADCJitterFilter,
HasAux2SerialMode,
HasAuxSerialMode,
HasBatMeterRange,
HasBeeper,
HasBluetooth,
HasBrightness,
HasDisplayText,
HasExpoNames,
HasFailsafe,
HasSoundMixer,
NumModules,
NumFirstUsableModule,
HasFAIMode,
HasFlySkyGimbals,
HasGeneralUnits,
HasInputDiff,
HasIntModuleCRSF,
HasIntModuleELRS,
HasIntModuleFlySky,
HasIntModuleMulti,
HasMixerExpo,
HasMixerNames,
HasModelImage,
HasModelLabels,
HasModelsList,
HasModuleR9MFlex,
HasModuleR9MMini,
PPMCenter,
SYMLimits,
HastxCurrentCalibration,
HasVolume,
HasBrightness,
PerModelTimers,
SlowScale,
SlowRange,
PermTimers,
HasNoExpo,
HasPPMStart,
HasPxxCountry,
HasSDLogs,
CSFunc,
GetThrSwitch,
HasDisplayText,
HasSoftwareSerialPower,
HasSoundMixer,
HasSportConnector,
HasSwitchableJack,
HasTelemetryBaudrate,
HasTopLcd,
GlobalFunctions,
VirtualInputs,
HasVario,
HasVarioSink,
HasVCPSerialMode,
HasVolume,
Heli,
Imperial,
InputsLength,
TrainerInputs,
SportTelemetry,
LuaScripts,
KeyShortcuts,
LogicalSwitches,
LogicalSwitchesExt,
LuaInputsPerScript,
LuaOutputsPerScript,
LimitsPer1000,
EnhancedCurves,
HasFasOffset,
HasMahPersistent,
LuaScripts,
MavlinkTelemetry,
HasInputDiff,
HasMixerExpo,
HasBatMeterRange,
DangerousFunctions,
HasModelLabels,
HasSwitchableJack,
HasSportConnector,
MaxContrast,
MaxVolume,
MinContrast,
Mixes,
ModelImageFilters,
ModelImageKeepExtn,
ModelImageNameLen,
ModelName,
Models,
ModelTrainerEnable,
MultiLangVoice,
NoTelemetryProtocol,
NumCurvePoints,
NumCurves,
NumFirstUsableModule,
NumModules,
OffsetWeight,
Outputs,
PermTimers,
PPMCenter,
PPMFrameLength,
PwrButtonPress,
QMFavourites,
RotaryEncoderNavigation,
SafetyChannelCustomFunction,
Sensors,
HasAuxSerialMode,
HasAux2SerialMode,
HasVCPSerialMode,
HasBluetooth,
HasADCJitterFilter,
HasTelemetryBaudrate,
SlowRange,
SlowScale,
SoundPitch,
SYMLimits,
Telemetry,
TelemetryCustomScreens,
TelemetryCustomScreensBars,
TelemetryCustomScreensFieldsPerLine,
TelemetryCustomScreensLines,
Timers,
TimersName,
TopBarZones,
HasModelsList,
HasFlySkyGimbals,
RotaryEncoderNavigation,
HasSoftwareSerialPower,
HasIntModuleMulti,
HasIntModuleCRSF,
HasIntModuleELRS,
HasIntModuleFlySky,
BacklightLevelMin,
QMFavourites,
KeyShortcuts,
TrainerInputs,
TrimsRange,
VirtualInputs,
VoicesAsNumbers,
VoicesMaxLength,
};

float ValToTim(int value);
Expand Down
3 changes: 0 additions & 3 deletions companion/src/firmwares/generalsettings.h
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,6 @@ class GeneralSettings {
unsigned int contrast;
unsigned int vBatWarn;
int txVoltageCalibration;
int txCurrentCalibration;
int vBatMin;
int vBatMax;
int backlightMode;
Expand All @@ -326,7 +325,6 @@ class GeneralSettings {
int timezone;
int timezoneMinutes;
bool adjustRTC;
bool optrexDisplay;
unsigned int inactivityTimer;
unsigned int internalModuleBaudrate;
bool minuteBeep;
Expand All @@ -342,7 +340,6 @@ class GeneralSettings {
unsigned int stickReverse;
unsigned int speakerPitch;
int hapticStrength;
unsigned int speakerMode;
char ownerName[OWNER_NAME_LEN + 1];
int beeperLength;
unsigned int gpsFormat;
Expand Down
Loading