Hello
I'm trying to assign some switches for the cowlflaps.
here's my macro file for the P-47:
[MACROS]
1=L:LandFlapsPos=SET
2=L:HydrHandPump=TOGGLE
3=L:StarterSwitch=SET
4=L:IntercoolerFlap1Switch=SET
5=L:OilcoolerFlap1Switch=SET
6=L:PrimerOn=TOGGLE
7=L:CowlFlap1Switch=SET
and my FSUIPC .ini
[Buttons.P47]
0=P1,5,K50,9 -{Key press: shft+2}-
1=P1,6,K51,9 -{Key press: shft+3}-
2=P1,10,K52,9 -{Key press: shft+4}-
3=P1,9,K53,9 -{Key press: shft+5}-
4=P1,7,K54,9 -{Key press: shft+6}-
5=P1,8,K55,9 -{Key press: shft+7}-
6=R4,2,C66276,0 -{AILERON_TRIM_LEFT}-
7=R4,3,C66277,0 -{AILERON_TRIM_RIGHT}-
8=R4,4,C66278,0 -{RUDDER_TRIM_LEFT}-
9=R4,5,C66279,0 -{RUDDER_TRIM_RIGHT}-
10=R1,1,C65615,0 -{ELEV_TRIM_UP}-
11=R1,2,C65607,0 -{ELEV_TRIM_DN}-
12=P0,20,CM2:2,1 -{Macro A2A_P-47: L:HydrHandPump tgl}-
13=P0,18,CM2:3,2 -{Macro A2A_P-47: L:StarterSwitch set}-
14=P0,19,CM2:3,0 -{Macro A2A_P-47: L:StarterSwitch set}-
15=U0,19,CM2:3,1 -{Macro A2A_P-47: L:StarterSwitch set}-
16=U0,18,CM2:3,1 -{Macro A2A_P-47: L:StarterSwitch set}-
17=P0,14,CM2:4,0 -{Macro A2A_P-47: L:IntercoolerFlap1Switch set}-
18=U0,14,CM2:4,1 -{Macro A2A_P-47: L:IntercoolerFlap1Switch set}-
19=P0,15,CM2:4,2 -{Macro A2A_P-47: L:IntercoolerFlap1Switch set}-
20=U0,15,CM2:4,1 -{Macro A2A_P-47: L:IntercoolerFlap1Switch set}-
21=P0,16,CM2:5,0 -{Macro A2A_P-47: L:OilcoolerFlap1Switch set}-
22=U0,16,CM2:5,1 -{Macro A2A_P-47: L:OilcoolerFlap1Switch set}-
23=P0,17,CM2:5,2 -{Macro A2A_P-47: L:OilcoolerFlap1Switch set}-
24=U0,17,CM2:5,1 -{Macro A2A_P-47: L:OilcoolerFlap1Switch set}-
25=P1,3,CM2:7,2 -{Macro A2A_P-47: L:CowlFlap1Switch set}-
27=P1,4,CM2:7,0 -{Macro A2A_P-47: L:CowlFlap1Switch set}-
29=P0,21,CM2:6,0 -{Macro A2A_P-47: L:PrimerOn tgl}-
30=U1,4,CM2:7,1 -{Macro A2A_P-47: L:CowlFlap1Switch set}-
31=U1,3,CM2:7,1 -{Macro A2A_P-47: L:CowlFlap1Switch set}-
all works , except L:CowlFlap1Switch : only the lever moves in VC , no other effect , even with battery "on" and hydraulic pressure OK , the cowlflaps themselves do not move . It only work with the mouse , I can then hear the sound and see the cowlflaps move . What's the matter? How can I do ? Is it possible to assign several functions to the same switch (cowlflapswitch+cowlflaps )?
Cowlflap macros for the P-47
Re: Cowlflap macros for the P-47
Add one more variable: CF1SMouse. Whenever you manipulate the CowlFlap1Switch variable, set the CF1SMouse to 1 then back to 0, after you are done.
regards
ROB
regards
ROB
A2A Simulations Inc.
-
- A2A Master Mechanic
- Posts: 3396
- Joined: 02 Aug 2008, 17:04
- Location: San Francisco
Re: Cowlflap macros for the P-47
Hello again.
I use 2 switches for the INC and DEC function of the cowl flaps.
You need to write the cowl position data to Offset 0x37F0 using the
command 0x7C00 to change the value of the offset up by 15 (x0000000F)
and down by -15 (xFFFFFFF1)
x7C00zzzz Offset Float64 Inc/1000 (offset = zzzz): the parameter is divided by 1000
The following INI entries in my INI were done by editing the
INI file by hand:
30=RD,14,Cx7C0037F0,x0000000F ;// COWL INC
31=PD,14,CM5:12,2
32=UD,14,CM5:12,1
33=RD,15,Cx7C0037F0,xFFFFFFF1 ;// COWL DEC
34=PD,15,CM5:12,0
35=UD,15,CM5:12,1
My MCRO file 'CM5' entry
12=L:CowlFlap1Switch=SET
------------------------------------------------
I created an edited INI file entry for you using your
controller ID and CM file data.
Just replace your entry lines 25 through 31 with the ones below
with or without the comments ";// COWL INC offset 0x37F0"
and ";// COWL DEC offset 0x37F0" added by me before the auto
annotate feature was added.
25=R1,3,Cx7C0037F0,x0000000F ;// COWL INC offset 0x37F0
26=P1,3,CM2:7,2 -{Macro A2A_P-47: L:CowlFlap1Switch set}-
27=U1,3,CM2:7,1 -{Macro A2A_P-47: L:CowlFlap1Switch set}-
28=R1,4,Cx7C0037F0,xFFFFFFF1 ;// COWL DEC offset 0x37F0
29=P1,4,CM2:7,0 -{Macro A2A_P-47: L:CowlFlap1Switch set}-
30=U1,4,CM2:7,1 -{Macro A2A_P-47: L:CowlFlap1Switch set}-
31=P0,21,CM2:6,0 -{Macro A2A_P-47: L:PrimerOn tgl}-
Paul
I use 2 switches for the INC and DEC function of the cowl flaps.
You need to write the cowl position data to Offset 0x37F0 using the
command 0x7C00 to change the value of the offset up by 15 (x0000000F)
and down by -15 (xFFFFFFF1)
x7C00zzzz Offset Float64 Inc/1000 (offset = zzzz): the parameter is divided by 1000
The following INI entries in my INI were done by editing the
INI file by hand:
30=RD,14,Cx7C0037F0,x0000000F ;// COWL INC
31=PD,14,CM5:12,2
32=UD,14,CM5:12,1
33=RD,15,Cx7C0037F0,xFFFFFFF1 ;// COWL DEC
34=PD,15,CM5:12,0
35=UD,15,CM5:12,1
My MCRO file 'CM5' entry
12=L:CowlFlap1Switch=SET
------------------------------------------------
I created an edited INI file entry for you using your
controller ID and CM file data.
Just replace your entry lines 25 through 31 with the ones below
with or without the comments ";// COWL INC offset 0x37F0"
and ";// COWL DEC offset 0x37F0" added by me before the auto
annotate feature was added.
25=R1,3,Cx7C0037F0,x0000000F ;// COWL INC offset 0x37F0
26=P1,3,CM2:7,2 -{Macro A2A_P-47: L:CowlFlap1Switch set}-
27=U1,3,CM2:7,1 -{Macro A2A_P-47: L:CowlFlap1Switch set}-
28=R1,4,Cx7C0037F0,xFFFFFFF1 ;// COWL DEC offset 0x37F0
29=P1,4,CM2:7,0 -{Macro A2A_P-47: L:CowlFlap1Switch set}-
30=U1,4,CM2:7,1 -{Macro A2A_P-47: L:CowlFlap1Switch set}-
31=P0,21,CM2:6,0 -{Macro A2A_P-47: L:PrimerOn tgl}-
Paul
Re: Cowlflap macros for the P-47
Thanks Rob
and thanks Gipsy baron !
I do not know all the FSUIPC's secrets yet but I learn !
Your Ini Entries works fine , that's cool
and thanks Gipsy baron !
I do not know all the FSUIPC's secrets yet but I learn !
Your Ini Entries works fine , that's cool
-
- A2A Master Mechanic
- Posts: 3396
- Joined: 02 Aug 2008, 17:04
- Location: San Francisco
Re: Cowlflap macros for the P-47
Once again I am happy I could help.
Be sure to keep the FSUIPC documents "FSUIPC4 for Advanced Users.pdf",
"FSUIPC4 Offsets Status.pdf", and "The 2016 List of FSX and P3D Controls.pdf" handy.
I refer to them often when setting up controls for a new aircraft.
Paul
Be sure to keep the FSUIPC documents "FSUIPC4 for Advanced Users.pdf",
"FSUIPC4 Offsets Status.pdf", and "The 2016 List of FSX and P3D Controls.pdf" handy.
I refer to them often when setting up controls for a new aircraft.
Paul
Who is online
Users browsing this forum: No registered users and 6 guests