I may need some code help here.
What I want is if the right MFD is powered on then mfd1pwr should be set to 1 else it is zero.
But mfd1pwr is always zero. What I want this for is if the MFD is on move the switch .
I did this:
What I want is if the right MFD is powered on then mfd1pwr should be set to 1 else it is zero.
if (oapiGetMFDMode(MFD_RIGHT) != MFD_NONE) mfd1pwr = 1;
else mfd1pwr = 0;
if (oapiGetMFDMode(MFD_RIGHT) == MFD_NONE){
mfd1pwr = 0;
}
//if (oapiGetMFDMode(2) != MFD_NONE){
// mfd1pwr = 1;
//}
//i//f (oapiGetMFDMode(2) == MFD_NONE){
// mfd1pwr = 0;
//}
sprintf(oapiDebugString(), "%d ", mfd1pwr);
But mfd1pwr is always zero. What I want this for is if the MFD is on move the switch .
I did this:
mfd1pwr = (oapiGetMFDMode(MFD_RIGHT));
16.32 MFD mode identifiers Macros • #define MFD_REFRESHBUTTONS -1 Refresh MFD buttons. • #define MFD_NONE 0 No mode (turn MFD off) • #define MFD_ORBIT 1 Orbit MFD mode. • #define MFD_SURFACE 2 Surface MFD mode. • #define MFD_MAP 3 Map MFD mode. • #define MFD_HSI 4 HSI (horizontal situation indicator) MFD mode. • #define MFD_LANDING 5 VTOL support MFD mode. • #define MFD_DOCKING 6 Docking support MFD mode. • #define MFD_OPLANEALIGN 7 Orbital plane alignment MFD mode. • #define MFD_OSYNC 8 Orbit synchronisation MFD mode. • #define MFD_TRANSFER 9 Transfer orbit MFD mode. • #define MFD_COMMS 10 Communications MFD mode. • #define MFD_USERTYPE 64 User-defined MFD mode. • #define BUILTIN_MFD_MODES 10 Number of built-in MFD modes
Last edited: