Change default mode in MWii 2.4 to Horizon

Post Reply
User avatar
Pedro14755
Posts: 49
Joined: Tue Jul 14, 2015 12:56 am
Location: Canberra Australia
Contact:

Change default mode in MWii 2.4 to Horizon

Post by Pedro14755 »

Hello

I am flying an AlienWii Narrow Classic FC using MWii 2.4 and am wanting to know if the default flight mode can be changed from Acro to Horizon. Being a beginner pliot, if I have a hard enough crash or suffer a brownout due to a low battery voltage, the FC defaults to the Acro mode which makes it very difficult for me to fly. Can the code be modified to effect this change of the default mode from Acro to Horizon please. The firmware being used is available at the third word link on this site http://alienflight.com/brushed-AlienWii ... -flashing/

Thanks Pedro.

PatrikE
Posts: 1976
Joined: Tue Apr 12, 2011 6:35 pm
Location: Sweden
Contact:

Re: Change default mode in MWii 2.4 to Horizon

Post by PatrikE »

Nothing will save you after a brownout!
The Gyros can not calibrate during the reboot since it's moving...

But to force HorizonMode...
In MultiWii.cpp
Row 1085 is a blank row.

Insert
rcOptions[BOXHORIZON] = true;
That should lock the controller in Horizon Mode

Should look like this.

Code: Select all

    for(i=0;i<CHECKBOXITEMS;i++)
      rcOptions[i] = (auxState & conf.activate[i])>0;
      rcOptions[BOXHORIZON] = true;  // <<<<  Inserted in row 1085 to force Horizon Mode
    // note: if FAILSAFE is disable, failsafeCnt > 5*FAILSAFE_DELAY is always false

User avatar
Pedro14755
Posts: 49
Joined: Tue Jul 14, 2015 12:56 am
Location: Canberra Australia
Contact:

Re: Change default mode in MWii 2.4 to Horizon

Post by Pedro14755 »

Thanks a lot PatrikE

I will try that out. If I do this, I will still be able to set all three flight modes by switch in the GUI won't I? The only thing that will be different is that the default mode will now be Horizon rather than Acro. Am I understanding you correctly please.

Pedro

PatrikE
Posts: 1976
Joined: Tue Apr 12, 2011 6:35 pm
Location: Sweden
Contact:

Re: Change default mode in MWii 2.4 to Horizon

Post by PatrikE »

No It will force Horizon if not Angle is set by AUX.

User avatar
Pedro14755
Posts: 49
Joined: Tue Jul 14, 2015 12:56 am
Location: Canberra Australia
Contact:

Re: Change default mode in MWii 2.4 to Horizon

Post by Pedro14755 »

Oh I see thank you PatrikE

Post Reply