AlienWii32 alternative defaults for NAZE target
Activate via OPTIONS="ALIENWII32" during make
This commit is contained in:
parent
f5a579de14
commit
c4646d7a77
|
@ -435,6 +435,20 @@ static void resetConf(void)
|
||||||
applyDefaultLedStripConfig(masterConfig.ledConfigs);
|
applyDefaultLedStripConfig(masterConfig.ledConfigs);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// alternative defaults AlienWii32 (activate via OPTIONS="ALIENWII32" during make for NAZE target)
|
||||||
|
#ifdef ALIENWII32
|
||||||
|
featureSet(FEATURE_RX_MSP);
|
||||||
|
featureSet(FEATURE_MOTOR_STOP);
|
||||||
|
masterConfig.serialConfig.serial_port_scenario[1] = lookupScenarioIndex(SCENARIO_SERIAL_RX_ONLY);
|
||||||
|
masterConfig.rxConfig.serialrx_provider = 1;
|
||||||
|
masterConfig.escAndServoConfig.minthrottle = 1000;
|
||||||
|
masterConfig.escAndServoConfig.maxthrottle = 2000;
|
||||||
|
currentControlRateProfile->rcRate8 = 130;
|
||||||
|
currentControlRateProfile->rollPitchRate = 20;
|
||||||
|
currentControlRateProfile->yawRate = 60;
|
||||||
|
parseRcChannels("TAER1234", &masterConfig.rxConfig);
|
||||||
|
#endif
|
||||||
|
|
||||||
// copy first profile into remaining profile
|
// copy first profile into remaining profile
|
||||||
for (i = 1; i < MAX_PROFILE_COUNT; i++) {
|
for (i = 1; i < MAX_PROFILE_COUNT; i++) {
|
||||||
memcpy(&masterConfig.profile[i], currentProfile, sizeof(profile_t));
|
memcpy(&masterConfig.profile[i], currentProfile, sizeof(profile_t));
|
||||||
|
|
|
@ -111,3 +111,8 @@
|
||||||
#define TELEMETRY
|
#define TELEMETRY
|
||||||
#define SERIAL_RX
|
#define SERIAL_RX
|
||||||
#define AUTOTUNE
|
#define AUTOTUNE
|
||||||
|
|
||||||
|
// alternative defaults AlienWii32 (activate via OPTIONS="ALIENWII32" during make for NAZE target)
|
||||||
|
#ifdef ALIENWII32
|
||||||
|
#define BRUSHED_MOTORS
|
||||||
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue