Device 39 AFT OVH gauge scripted?

This is a new forum for the OC4BAv4.
PH-JRJ
Posts: 66
Joined: Fri Jul 07, 2017 6:58 pm

Device 39 AFT OVH gauge scripted?

Post by PH-JRJ »

Hello,

Working on my AFT OVH at the moment and I can't find the script for Device 39 in v4.6. Is this correct?

thanks

Br Remco
mvr1918
Site Admin
Posts: 1627
Joined: Thu Aug 30, 2012 3:35 pm

Re: Device 39 AFT OVH gauge scripted?

Post by mvr1918 »

I do not believe the OXY gauge was ever implemented in 4.6 script.

I can be scripted fairly easy by using the same logic part as in other gauges.
PH-JRJ
Posts: 66
Joined: Fri Jul 07, 2017 6:58 pm

Re: Device 39 AFT OVH gauge scripted?

Post by PH-JRJ »

Ok I will try thanks Roar
mvr1918
Site Admin
Posts: 1627
Joined: Thu Aug 30, 2012 3:35 pm

Re: Device 39 AFT OVH gauge scripted?

Post by mvr1918 »

If you made a script for OXY and it is working, consider to share it here so it can be implemented in an updated script.
PH-JRJ
Posts: 66
Joined: Fri Jul 07, 2017 6:58 pm

Re: Device 39 AFT OVH gauge scripted?

Post by PH-JRJ »

I’m not started yet, but will share for sure, now the building of my flightdeck is almost completed, I can start learning and understanding SIOC.
Maybe an idea to open a topic on the forum and request OC4BA Users to share the missing parts like wx rader, PFD/ND brightness dimming, rudderpanel incl servo in de pedestal etc?

Best regards Remco
mvr1918
Site Admin
Posts: 1627
Joined: Thu Aug 30, 2012 3:35 pm

Re: Device 39 AFT OVH gauge scripted?

Post by mvr1918 »

Good idea. I will make a topic for missing script parts.
PH-JRJ
Posts: 66
Joined: Fri Jul 07, 2017 6:58 pm

Re: Device 39 AFT OVH gauge scripted?

Post by PH-JRJ »

Hi Roar,

Due to the Covid-19 able to spend alot of time at Home and tried to make a script for Gauge.
Sioc offset is 1024 = OXY_Needle

made script like this and inserted this into the existing script

Var 0639, name SERVO_OXY, Link USB_SERVOS, Device 39, Output 1, PosL 192, PosC 511, PosR 1023, Type 1

Var 1024, name TXRX_OXY, static
{
L0 = 249
L1 = &TXRX_OXY * 0.9
L0 = L0 + L1
&SERVO_OXY = L0
}

Compiled the script and no error, but unfortunately the Gauge does not show any activity.
Al tough this is not a OC4BA problem I hope you can give me some advise what I do wrong.

Thanks

best regards

Remco
mvr1918
Site Admin
Posts: 1627
Joined: Thu Aug 30, 2012 3:35 pm

Re: Device 39 AFT OVH gauge scripted?

Post by mvr1918 »

Check with SIOC's IOCPConsole to see if you get any data to Variable 1024 from the virtual airplane and that this value correspond to the what you see in the virtual OVH-AFT OXY gauge
PH-JRJ
Posts: 66
Joined: Fri Jul 07, 2017 6:58 pm

Re: Device 39 AFT OVH gauge scripted?

Post by PH-JRJ »

No data to variabele 1024, value is 0. When I add a value manual servo moves.

Br Remco
mvr1918
Site Admin
Posts: 1627
Joined: Thu Aug 30, 2012 3:35 pm

Re: Device 39 AFT OVH gauge scripted?

Post by mvr1918 »

I did a check in with both the NGX and the NGXu airplanes.

The Var 1024 is set to 0 from the virtual airplane in a Cold and Dark system setup.

Turning the BAT on sets Var 1024 to 192 for NGX and 160 for NGXu.

The NGXu data correspond to the needle position in the virtual gauge.

There seems to be no "live" data flow to the Var 1024. Only 0 with no power and 160/192 with power.

It could be as it is in the real airplane, I really do not know.
Post Reply