FWD-OVHD Questions

This is a new forum for the OC4BAv4.
Post Reply
aaronlunn
Posts: 17
Joined: Sun Jan 15, 2017 5:08 pm

FWD-OVHD Questions

Post by aaronlunn »

Hello,

I am finishing up my 737 NGX forward overhead and have two questions:

First, when I edit the input function for my retractable landing gear lights, I go from retracted to extended. I have only a two way switch on my panel and was hoping to program the switch from retracted & off to extended & on. Any thoughts on where in the script to modify?

Secondly, I can not find a script or a place that I can edit the cabin climb rate servo. Is there a script for that gauge somewhere I’m not seeing?

I do want to say that this software has made my home cockpit possible! Thank you so much for the product to help out sim enthusiasts like myself!

Aaron
mvr1918
Site Admin
Posts: 1704
Joined: Thu Aug 30, 2012 3:35 pm

Re: FWD-OVHD Questions

Post by mvr1918 »

The script uses only 2 inputs even if the lever has 3 positions.

Var 2447, name GEAR_LEVER, static
Var 2448, name GEAR_LEVER_OFF, static
Var 2449, name GEAR_LEVER_UN, static

Var 0570, name Gear_Lever_D, Link IOCARD_SW, Device 31, Input 69
{
IF &Gear_Lever_D = 1
{
&GEAR_LEVER = 1
&GEAR_LEVER_OFF = 0
}
ELSE
{
&GEAR_LEVER = 0
&GEAR_LEVER_OFF = 1
}
}

Var 0571, name Gear_Lever_U, Link IOCARD_SW, Device 31, Input 70
{
IF &Gear_Lever_U = 1
{
&GEAR_LEVER_UN = 1
}
ELSE
{
&GEAR_LEVER_UN = 0
}
}

The CabVSI gauge is here:


Var 0198, name SERVO_CabVSI, Link USB_SERVOS, Device 37, Output 5, PosL 192, PosC 511, PosR 1023, Type 1
Var 1536, name TXRX_CabVSI, static
{
L0 = &TXRX_CabVSI
L0 = L0 * 0.27
L0 = L0 + 560
&SERVO_CabVSI = L0
}


Glad you like the program. It gives a lot of value for a small cost. ENJOY!
nolatron
Posts: 20
Joined: Sun Apr 29, 2018 12:49 am

Re: FWD-OVHD Questions

Post by nolatron »

I also noticed this yesterday while programming all my overhead switches. The retractable landing lights when I flip them to on, the switch in the sim only goes to "Extend", not to "On".
nolatron
Posts: 20
Joined: Sun Apr 29, 2018 12:49 am

Re: FWD-OVHD Questions

Post by nolatron »

Another issue I'm having is when I open SIOC, my Pressure L and Pressure R and Cabin VSI servos jump all the way to max value 1023. I have to open the servocard in SIOC monitor to stop the server motor. IOCP console is currently showing a value of 0 for all variables.

Here's the code I'm using for the pressure servos. I modified the POSL value since I'm using TowerPro servo's (though posL 192 does the same thing) and set the L0, SERVO_PressL = ## and SERVO_PressR = ## to the value that SIOC MOnitor shows when the needles are at zero.

Var 0146, name SERVO_PressL, Link USB_SERVOS, Device 37, Output 2, PosL 0, PosC 512, PosR 1023, Type 1

Var 1532, name TXRX_PressL, static
{
IF &EL_STATE <> 0 // BUSES CONNECTED
{
L0 = 363
L1 = &TXRX_PressL * 9
L0 = L0 + L1
&SERVO_PressL = DELAY L0 ,200
}
ELSE
{
&SERVO_PressL = 363
}
}

Var 0147, name SERVO_PressR, Link USB_SERVOS, Device 37, Output 1, PosL 0, PosC 512, PosR 1023, Type 1

Var 1533, name TXRX_PressR, static
{
IF &EL_STATE <> 0 // BUSES CONNECTED
{
L0 = 427
L1 = &TXRX_PressR * 9
L0 = L0 + L1
&SERVO_PressR = DELAY L0 ,200
}
ELSE
{
&SERVO_PressR = 427
}
}

I thought maybe something needs to be reversed for this particular gauge, though in SIOC monitor when move the slide to the left to zero that servo moves counter-clockwise and sliding up to 1023 it moves clockwise. So that seems ok.

Other servos with sometimes jump to max value but once I turn the battery switch on they'll change to the proper servo position, except for these 3 servos.

EDIT: So looks when IOCP has a value of 0 for a servo (cold and dark, engines not running, etc...), SIOC is sending the servo to max value of 1023. If I turn on the engines, everything goes to the correct position, including the 3 above servos as the now have a value in IOCP Console

So just need to figure out how to get the servos to go the value I set as "0" in the script file when IOCP Console is showing 0.

Hope that makes sense.
aaronlunn
Posts: 17
Joined: Sun Jan 15, 2017 5:08 pm

Re: FWD-OVHD Questions

Post by aaronlunn »

Thank you for that comment on the servos. I am having the exact same issue with those exact gauges! I will take a look at my script and see if I can figure anything with those three gauges too.

I will also let you know if I figure out a way to bypass the extend only phase of the retractable landing gear lights.

Aaron
nolatron
Posts: 20
Joined: Sun Apr 29, 2018 12:49 am

Re: FWD-OVHD Questions

Post by nolatron »

Was able to take care of the servos by adding an "initialize" value to the first VAR 0000 line.

&SERVO_FuelTemp = 633
&SERVO_APU = 288
&SERVO_CabAlt = 330
&SERVO_PresDiff = 366
&SERVO_CabVSI = 610
&SERVO_CabTemp = 288
&SERVO_PressL = 375
&SERVO_PressR = 418

Now when I start up SIOC, the servos are move to the "0" setting.

No luck with the landing lights yet though.
nolatron
Posts: 20
Joined: Sun Apr 29, 2018 12:49 am

Re: FWD-OVHD Questions

Post by nolatron »

Here's my work around so far for the landing lights, based off the seat belt toggle switch sending the PMDG control code direct into FSUIPC.

I set thesRETRACTABLE_L and sRETRACTABLE_Rswitch variables to a dummy device id (99) to disable them and then added this:

Var 7500 name FS_CONTROL Link FSUIPC_OUT Offset $3110 Length 4
Var 7501 name FS_PAR Link FSUIPC_OUT Offset $3114 Length 4
Var 7502, name sRETRACT_L_On, Link IOCARD_SW, Device 30, Input 20
{
IF &sRETRACT_L_On = 1
{
&FS_PAR = 2
&FS_CONTROL = 69743
&FS_CONTROL = DELAY 0 10
}
ELSE
{
IF &sRETRACT_L_Off = 0
{
&FS_PAR = 0
&FS_CONTROL = 69743
&FS_CONTROL = DELAY 0 10
}
}
}

Var 7503, name sRETRACT_L_Off, Link IOCARD_SW, Device 30, Input 19
{
IF &sRETRACT_L_Off = 1
{
&FS_PAR = 0
&FS_CONTROL = 69743
&FS_CONTROL = DELAY 0 10
}
ELSE
{
IF &sRETRACT_L_On = 0
{
&FS_PAR = 2
&FS_CONTROL = 69743
&FS_CONTROL = DELAY 0 10
}
}
}

Var 7504, name sRETRACT_R_On, Link IOCARD_SW, Device 30, Input 21
{
IF &sRETRACT_R_On = 1
{
&FS_PAR = 2
&FS_CONTROL = 69744
&FS_CONTROL = DELAY 0 10
}
ELSE
{
IF &sRETRACT_R_Off = 0
{
&FS_PAR = 0
&FS_CONTROL = 69744
&FS_CONTROL = DELAY 0 10
}
}
}

Var 7505, name sRETRACT_R_Off, Link IOCARD_SW, Device 30, Input 22
{
IF &sRETRACT_R_Off = 1
{
&FS_PAR = 0
&FS_CONTROL = 69744
&FS_CONTROL = DELAY 0 10
}
ELSE
{
IF &sRETRACT_R_On = 0
{
&FS_PAR = 2
&FS_CONTROL = 69744
&FS_CONTROL = DELAY 0 10
}
}
}

It seems to work for the most part, just can't flip both switches at the same time or to fast. Hopefully mvr can come up with better built-in solution.
Joan737
Posts: 2
Joined: Thu Jan 03, 2019 1:47 pm

Re: FWD-OVHD Questions

Post by Joan737 »

nolatron wrote:Was able to take care of the servos by adding an "initialize" value to the first VAR 0000 line.

&SERVO_FuelTemp = 633
&SERVO_APU = 288
&SERVO_CabAlt = 330
&SERVO_PresDiff = 366
&SERVO_CabVSI = 610
&SERVO_CabTemp = 288
&SERVO_PressL = 375
&SERVO_PressR = 418

Now when I start up SIOC, the servos are move to the "0" setting.

No luck with the landing lights yet though.
Hi nolatron, cant you contact me via mail?
jpijoanllopis@gmail.com
Thank you very much
mvr1918
Site Admin
Posts: 1704
Joined: Thu Aug 30, 2012 3:35 pm

Re: FWD-OVHD Questions

Post by mvr1918 »

There is an updated OCP4NGX_v4.61.ssi that corrects the retractable light switches.

Contact roarkrsp@gmail.com if you want it
Post Reply