How to config correctly in order to show sensors and Arm/Disarm indication (Mode active).
Take a look at "MultiWii.ino" file of MWii sketch in "enum box...."
Code: Select all
enum box {
#if ACC
BOXANGLE, // 1
BOXHORIZON, // 2
#endif
#if BARO && (!defined(SUPPRESS_BARO_ALTHOLD))
BOXBARO, // 4
#endif
#if MAG
BOXMAG, // 8
#endif
#if defined(SERVO_TILT) || defined(GIMBAL) || defined(SERVO_MIX_TILT)
BOXCAMSTAB, // ---
#endif
#if defined(CAMTRIG)
BOXCAMTRIG, // ---
#endif
BOXARM, // 16
#if GPS
BOXGPSHOME, // 32
BOXGPSHOLD, // 64
#endif
#if defined(FIXEDWING) || defined(HELICOPTER) || defined(INFLIGHT_ACC_CALIBRATION)
BOXPASSTHRU,
#endif
#if MAG
BOXHEADFREE,
#endif
#if defined(BUZZER)
BOXBEEPERON,
#endif
#if defined(LED_FLASHER)
BOXLEDMAX, // we want maximum illumination
BOXLEDLOW, // low/no lights
#endif
#if defined(LANDING_LIGHTS_DDR)
BOXLLIGHTS, // enable landing lights at any altitude
#endif
#if MAG
BOXHEADADJ, // acquire heading for HEADFREE mode
#endif
CHECKBOXITEMS
};
And to clarify I've added a commented power of 2 for each sensor/device I already have defined in my MWii config file.
So, you must take a note of that power of 2 skipping sensor/devices not defined.
These numbers are to be defined in "config.h" of OSD sketch
Example:
Code: Select all
#define STABLEMODE 1
// horizon not used 2
#define BAROMODE 4
#define MAGMODE 8
#define ARMEDMODE 16
#define GPSHOMEMODE 32
#define GPSHOLDMODE 64
Now, for me it's OK, please verify by yourself.
May be that for someone this is the discovery of the Hot Water

but for me was a battle..Hope this is usefull for other guys.
P.S. I hope that procedure will be done automatically in the future by OSD sketch related to the defines in MWii sketch.
Bye, Carlo