Add support for a hardware bind plug (PB5 pin 41) and alternative

default settings for AlienWii32 (8 brushed ESC) based on the NAZE
target.
that's probably better, but still CLI-set bind plug doesn't need to be
there. besides it's use is only codices l confined to spektrum.c, no?
On Nov 28, 2014 8:59 AM, "MJ666" <notifications@github.com> wrote:

> In src/config.c:
>
> >      mcfg.serialrx_type = 0;
> > +    mcfg.hardware_bind_plug = 0;     // bind plug hardware not present
> > +    mcfg.spektrum_sat_bind = 0;
> > +#else
> > +    mcfg.serialrx_type = 1;
> > +    mcfg.hardware_bind_plug = 1;     // bind plug hardware is present
> > +    mcfg.spektrum_sat_bind = 5;
> > +#endif
>
> I can change the config.c part to a single section near the end of the
> resetConf() function with all defaults like?
>
> // Overwrite defaults with alternative settings for AlienWii32 controller
>
> #ifdef ALIENWII32
> featureSet(FEATURE_SERIALRX);
> featureSet(FEATURE_MOTOR_STOP);
> mcfg.serialrx_type = 1;
> mcfg.hardware_bind_plug = 1; // bind plug hardware is present
> mcfg.spektrum_sat_bind = 5;
> mcfg.minthrottle = 1000;
> mcfg.maxthrottle = 2000;
> cfg.rcRate8 = 130;
> cfg.rollPitchRate = 20;
> cfg.yawRate = 60;
> parseRcChannels("TAER1234");
> #endif
>
> and keep the rest untouched? This means only 2 additional #ifdef's in the
> whole project. And the AlienWii32 code is initializeing some parameters
> twice. Let me know this will be acctable.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/multiwii/baseflight/pull/211/files#r21013633>.
>