open falcon et warthog

Pour discuter des problèmes d'nstallation, de bugs et de réglages divers.

Topic author
GREATWHITE
Nouvelle Recrue
Nouvelle Recrue
Messages : 164
Inscription : 01 décembre 2009

open falcon et warthog

#1

Message par GREATWHITE »

bonjour!
y aurait il une ame charitable qui a deja un fichier config target de parametre pour OF ?
Avatar de l’utilisateur

Mad Fly
Pilote Philanthrope
Pilote Philanthrope
Messages : 4723
Inscription : 04 août 2001

#2

Message par Mad Fly »

j'ai un fichier que j'utilise dans le script editor pas dans le target,
par contre je ne suis pas sur le bon PC

si cela peut attendre un peu :sweatdrop

d'ici là tu auras peut être une autre réponse
"La vérité", a-t-on dit, "est la première victime de la guerre".
Préface de Philip Snowden in La Vérité et la Guerre par ED Morel, Londres, Juillet 1916

Image
Image
Image

Topic author
GREATWHITE
Nouvelle Recrue
Nouvelle Recrue
Messages : 164
Inscription : 01 décembre 2009

#3

Message par GREATWHITE »

merci d' avance
Avatar de l’utilisateur

Mad Fly
Pilote Philanthrope
Pilote Philanthrope
Messages : 4723
Inscription : 04 août 2001

#4

Message par Mad Fly »

Avec un grand grand merci à Dimebug et Ghostrider sans qui rien n'aurait été possible :flowers:



include "target.tmh"
include "F4_keystrokes_Macros.ttm"

int main()
{
if(Init(&EventHandle)) return 1; // declare the event handler, return on error
// Map key events
SetShiftButton(&Joystick, S3,&Throttle, BSB, BSM, BSF); // define S3 as /I/O shift
// et BSF/BSM/BSB as /U/M/D
// BSB= Air/Air mode, BSM= Nav Mode, BSF= Air/Ground Mode
MapAxis(&Joystick, JOYX, DX_X_AXIS);
MapAxis(&Joystick, JOYY, DX_Y_AXIS);
MapAxis(&Throttle, THR_LEFT, DX_ZROT_AXIS);
MapAxis(&Throttle, THR_RIGHT, DX_Z_AXIS);
MapAxis(&Throttle, SCX, DX_XROT_AXIS);
MapAxis(&Throttle, SCY, DX_YROT_AXIS, AXIS_REVERSED);
MapAxis(&Throttle, THR_FC, DX_SLIDER_AXIS);


SetJCurve(&Throttle, THR_LEFT, 80, 95); //set rpm curve to match physical afterburner detent
SetJCurve(&Throttle, THR_RIGHT, 80, 95);

// Profil pour Falcon 4 par Mad Fly, Merci à DimeBug et Ghostrider chez qui j'ai piqué des morceaux de script

//Joystick------------------------------------------------------------------------------------------------------------------------
MapKey(&Joystick, S3, ''); // Shift I/O
// Palette S4
MapKeyIO(&Joystick, S4, PULSE+SimStepMasterArm, SimAPOverride);// Cycle master arm / AP override

// gachette : 1 team speak, 2 tir cannon
MapKeyIO(&Joystick, TG1, L_ALT+USB[0x1F], R_CTL); // Team Speak (RCtrl et Alt+2)
MapKey(&Joystick, TG2, SimTrigger); // TG1 = uhf 1 / vhf 2, TG2 = cannon

// Joystick Switch
MapKeyIOUMD(&Joystick, S1,
'', PULSE+SimNextAAWeapon, // Changement armement AA
'', PULSE+SimNextAGWeapon, // Changement armement AG
PULSE+SimFuelDoorToggle, PULSE+SimMissileStep); // Changement missile, Trappe fuel

MapKey(&Joystick, S2, SimPickle); // Release Weapon

// HAT 1 Trim Hat + View

// Up
MapKeyIO(&Joystick, H1U, PULSE+OTWSelectHUDMode, OTWViewUp); // Fleche + Hud only (S3)
// Down
MapKeyIO(&Joystick, H1D, PULSE+OTWSelect2DCockpitMode,OTWViewDown); // Fleche + Cockpit front (S3)
// Left
MapKeyIO(&Joystick, H1L, PULSE+OTWToggleSidebar, OTWViewLeft); // Fleche + Padlock SA bar (S3)
// Right
MapKeyIO(&Joystick, H1R, PULSE+OTWSelectF3PadlockMode, OTWViewRight); // Fleche + Padlock (S3)



// HAT 2 AA : ACM mode / Nav : ICP / AG weapons settings

// Up
MapKeyIOUMD(&Joystick, H2U,
SEQ(PULSE+SimSelectMRMOverride,PULSE+SimDeselectOverride), // MRM Mode - Cancel missile mode
PULSE+SimACM30x20, // ACM 30x20
PULSE+BombIntervalIncrement, // Interval up
PULSE+BombRippleIncrement, // Ripple up
PULSE+SimICPALOW, // icp allow
PULSE+SimICPDEDUP); // icp cni up

// Down
MapKeyIOUMD(&Joystick, H2D,
SEQ(PULSE+SimSelectSRMOverride,PULSE+SimDeselectOverride), // Dogfight Mode - Cancel missile mode
PULSE+SimACMVertical, // Acm Vertical
PULSE+BombIntervalDecrement, // Interval down
PULSE+BombRippleDecrement, // Ripple down
PULSE+SimICPFAck, // icp FACK
PULSE+SimICPDEDDOWN); // icp cni down

// Left
MapKeyIOUMD(&Joystick, H2L,
'', //
PULSE+SimACMSlew, // Acm Slew
PULSE+BombBurstDecrement, // CBU alt down
PULSE+BombPairRelease, // drop pair
SEQ(CHAIN(PULSE+SimICPResetDED, PULSE+SimICPStpt),CHAIN(PULSE+SimICPResetDED, PULSE+SimICPCrus),CHAIN(PULSE+SimICPResetDED, PULSE+SimICPSIX),CHAIN(PULSE+SimICPResetDED, PULSE+SimICPTILS)), // icp steerpt - cruise - ILS
PULSE+SimICPResetDED); // icp cni rtn

// Right
MapKeyIOUMD(&Joystick, H2R,
'', //
PULSE+SimACMBoresight, // Acm boresight
PULSE+BombBurstIncrement, // CBU alt up
PULSE+BombSGLRelease, // drop single
PULSE+SimICPEnter, // icp enter
PULSE+SimICPDEDSEQ); // icp cni seq

// HAT 3 Data Management

// Up
MapKeyIOUMD(&Joystick, H3U,
PULSE+SimToggleMissileCage, // uncage seeker head
PULSE+SimRadarAAModeStep, // cycle AA mode
PULSE+SimMissileStep, // mode CCIP CCRP DTOS
PULSE+SimRadarAGModeStep, // Cycle AG mode
PULSE+SimDriftCO, // drift CO
PULSE+SimICPNext); // icp increment

// Down
MapKeyIOUMD(&Joystick, H3D,
PULSE+SimToggleMissileTDBPUncage, // missile TD BP
PULSE+USB[0x41], // cycle radar submode
PULSE+SimRadarFreeze, // Freeze GM
PULSE+SimFCCSubModeStep, // bomb mode
PULSE+AFGearToggle, // Gear up/down
PULSE+SimICPPrevious); // icp decrement

// Left
MapKeyIOUMD(&Joystick, H3L,
PULSE+SimToggleMissileSpotScan, // missile spot scan
PULSE+SimSOIFOVStep, // Expand
PULSE+SimRadarFOVStep, // GM field of view
PULSE+SimMaverickFOVStep, // TV field of view
PULSE+SimHookToggle, // hook
PULSE+SimCATSwitch); // cat switch

// Right
MapKeyIOUMD(&Joystick, H3R,
PULSE+SimToggleMissileBoreSlave, // msl bore slave
PULSE+SimRadarBarScanChange, // shift bar scan
PULSE+SimRadarSnowplow, // snowplow
PULSE+SimToggleMissileCage, // uncage AGM 65
PULSE+SimLandingLightToggle, // landing lights
PULSE+SimExtlPower); // master lights

// HAT 4 Counter measure Management + RWR

MapKey(&Joystick, H4U, SimDropFlare); //Countermeasures Dispense
// Up
MapKeyIO(&Joystick, H4D, PULSE+SimRWRSetTargetSep, PULSE+SimRWRHandoff ); //RWR handoff + Target sep
// Left
MapKeyIO(&Joystick, H4L, PULSE+SimEWSProgDec, PULSE+SimCATSwitch ); // CAT I/III - EWS pgm dec
// Right
MapKeyIO(&Joystick, H4R, PULSE+SimEWSProgInc, PULSE+SimECMOn ); // ECM / EWS pgm inc
// Pushd
MapKeyIO(&Joystick, H4P, CHAIN(PULSE+SimEmergencyJettison,PULSE+SimCATSwitch), '');// Jettison all + Cat Switch


//Throttle-----------------------------------------------------------------------------------------------------------------------

// Left arm
//Pinky Switch
MapKey(&Throttle, PSF, CHAIN(PULSE+OTWSelect3DCockpitMode,PULSE+USB[0x47])); // Cockpit view + Track IR center (0x47 --> Scroll lock)
//MapKeyIO(&Throttle, PSM, ''); //
MapKey(&Throttle, PSB, PULSE+OTWSelectOrbitMode); //External view

//Left Throttle Button
MapKeyIO(&Throttle, LTB, PULSE+AFDragChute,SimWheelBrakes); //Wheel Brake On , Dragging Chute (s4)

// Right Arm

//Slew Control
MapKeyIO(&Throttle, SC, PULSE+SimDropTrack,PULSE+SimDesignate); // Lock / unlock


//COOLIE Switch
// Up
MapKey(&Throttle, CSU, SimCursorUp); //TDC Up
// Down
MapKey(&Throttle, CSD, SimCursorDown); //TDC Down
// Left
MapKey(&Throttle, CSL, SimCursorLeft); //TDC Left
// Right
MapKey(&Throttle, CSR, SimCursorRight); //TDC Right


//MicSwitch

// Push
MapKey(&Throttle, MSP, SEQ(PULSE+SimDesignate,PULSE+SimDropTrack)); // Lock / unlock
// UP
MapKey(&Throttle, MSU, SimRadarElevationUp); // Radar antenna Up
// Down
MapKey(&Throttle, MSD, SimRadarElevationDown); // Radar antenna Dn
// Left
MapKeyIO(&Throttle, MSL,PULSE+OTWStepMFD3,PULSE+OTWStepMFD1); // Left MFD + MFD3
// Right
MapKeyIO(&Throttle, MSR,PULSE+OTWStepMFD4, PULSE+OTWStepMFD2); // Right MFD + MFD4

//Speedbrake
MapKey(&Throttle, SPDB, AFBrakesToggle); // Airbrake temporaire (commande relache)
MapKey(&Throttle, SPDM, PULSE+AFBrakesIn); // Aibrake Off
MapKey(&Throttle, SPDF, PULSE+AFBrakesOut); // Airbrake On

//Boat Switch
MapKey(&Throttle, BSB,PULSE+SimICPAA); //Mode AA
MapKey(&Throttle, BSM,PULSE+SimICPNav); //Mode Nav
MapKey(&Throttle, BSF,PULSE+SimICPAG); //Mode AG

//China hat
MapKeyIO(&Throttle, CHB, PULSE+SimHSDRangeStepDown, PULSE+SimPrevWaypoint); // HSD range dec / Prev stpt
MapKey(&Throttle, CHM, ''); //
MapKeyIO(&Throttle, CHF, PULSE+SimHSDRangeStepUp, PULSE+SimNextWaypoint); // HSD range inc / Next stpt

//Throttle base
//Engine panel
//Fuel
MapKey(&Throttle, EFLNORM, CHAIN(PULSE+SimExtlPower, D(1000),PULSE+SimLandingLightToggle, D(1000), PULSE+SimExtlSteady, D(1000), PULSE+SimExtlAntiColl, D(1000), PULSE+SimExtlWing)); // external Lights On off
MapKey(&Throttle, EFRNORM, PULSE+SimInteriorLight); // pit lights on off
MapKey(&Throttle, EFLOVER, CHAIN(PULSE+SimExtlPower, D(1000),PULSE+SimLandingLightToggle, D(1000), PULSE+SimExtlSteady, D(1000), PULSE+SimExtlAntiColl, D(1000), PULSE+SimExtlWing)); // external Lights On off
MapKey(&Throttle, EFROVER, PULSE+SimInteriorLight); // pit lights on off

//Eng Oper
// Left
MapKey(&Throttle, EOLIGN, PULSE+SimFuelDump); // Dump fuel
//MapKeyIO(&Throttle, EOLNORM, PULSE+R_ALT+USB[0x00]);
MapKey(&Throttle, EOLMOTOR, PULSE+SimFuelDoorToggle); // Fuel door

// Right
MapKey(&Throttle, EORIGN,PULSE+SimEmergencyJettison ); // Jettison Weapons
//MapKeyIO(&Throttle, EORNORM, PULSE+R_CTL+USB[0x00]);
MapKey(&Throttle, EORMOTOR, PULSE+SimLaserArmToggle); // Laser on off

//APU Start
MapKey(&Throttle, APUON, PULSE+AFGearUp); // gear Up !!!! F4 AF only
MapKey(&Throttle, APUOFF, PULSE+AFGearDown); // gear down !!! F4 AF only

//L/G Wrn
MapKey(&Throttle, LDGH, SEQ(PULSE+R_CTL+USB[0x06],PULSE+SimWarnReset)); //reset Warn

//FLAP
MapKey(&Throttle, FLAPU, PULSE+SimAVTRSwitch); // Record ACMI
MapKey(&Throttle, FLAPM, PULSE+SimAVTRSwitchBack); //ACMI Record off
MapKey(&Throttle, FLAPD, PULSE+ToggleNVGMode); // Night vision goggle

//Autopilot Panel
//EAC
MapKey(&Throttle, EACON, PULSE+SimRadarStandby); // Radar on off
MapKey(&Throttle, EACOFF, PULSE+SimRadarStandby); //

//RDR ALTM
MapKey(&Throttle, RDRNRM, PULSE+SimRALTON); // Radar alt on
MapKey(&Throttle, RDRDIS, PULSE+SimRALTSTDBY); // Radar alt Standby

//Autopilot
MapKey(&Throttle, APENG, CHAIN(LOCK+PULSE+RadioAWACSCommand,LOCK+PULSE+USB[0x26],LOCK+SimEject)); // Eject + Awacs information

MapKey(&Throttle, APPAT, PULSE+SimLeftAPSwitch); //Autopilot Left
//MapKeyIO(&Throttle, APAH, PULSE+L_ALT+USB[0x26]); //Autopilot disengage
MapKey(&Throttle, APALT, PULSE+SimRightAPSwitch); //Autopilot Right

//Idle detent //
//Left
//MapKeyIO(&Throttle, IDLELON, PULSE+R_ALT+USB[0x4d]); //Left engine Stop
//MapKeyIO(&Throttle, IDLELOFF, PULSE+USB[0x00]);
//Right
//MapKeyIO(&Throttle, IDLERON, PULSE+R_CTL+USB[0x4d]); //Right engine Stop
//MapKeyIO(&Throttle, IDLEROFF, PULSE+USB[0x00]);

//Left MFD
MapKey(&LMFD, OSB01, PULSE+L_CTL+L_ALT+USB[0x1E]);
MapKey(&LMFD, OSB02, PULSE+L_CTL+L_ALT+USB[0x1F]);
MapKey(&LMFD, OSB03, PULSE+L_CTL+L_ALT+USB[0x20]);
MapKey(&LMFD, OSB04, PULSE+L_CTL+L_ALT+USB[0x21]);
MapKey(&LMFD, OSB05, PULSE+L_CTL+L_ALT+USB[0x22]);
MapKey(&LMFD, OSB06, PULSE+L_CTL+L_ALT+USB[0x23]);
MapKey(&LMFD, OSB07, PULSE+L_CTL+L_ALT+USB[0x24]);
MapKey(&LMFD, OSB08, PULSE+L_CTL+L_ALT+USB[0x25]);
MapKey(&LMFD, OSB09, PULSE+L_CTL+L_ALT+USB[0x26]);
MapKey(&LMFD, OSB10, PULSE+L_CTL+L_ALT+USB[0x27]);
MapKey(&LMFD, OSB11, PULSE+L_CTL+L_ALT+USB[0x59]);
MapKey(&LMFD, OSB12, PULSE+L_CTL+L_ALT+USB[0x5A]);
MapKey(&LMFD, OSB13, PULSE+L_CTL+L_ALT+USB[0x5B]);
MapKey(&LMFD, OSB14, PULSE+L_CTL+L_ALT+USB[0x5C]);
MapKey(&LMFD, OSB15, PULSE+L_CTL+L_ALT+USB[0x5D]);
MapKey(&LMFD, OSB16, PULSE+L_CTL+L_ALT+USB[0x5E]);
MapKey(&LMFD, OSB17, PULSE+L_CTL+L_ALT+USB[0x5F]);
MapKey(&LMFD, OSB18, PULSE+L_CTL+L_ALT+USB[0x60]);
MapKey(&LMFD, OSB19, PULSE+L_CTL+L_ALT+USB[0x61]);
MapKey(&LMFD, OSB20, PULSE+L_CTL+L_ALT+USB[0x62]);
MapKey(&LMFD, GAINU, '');
MapKey(&LMFD, GAIND, '');
MapKey(&LMFD, SYMU, '');
MapKey(&LMFD, SYMD, '');
MapKey(&LMFD, BRTU, PULSE+L_CTL+L_ALT+USB[0x0A]);
MapKey(&LMFD, BRTD, PULSE+L_CTL+L_ALT+USB[0x09]);
MapKey(&LMFD, CONU, '');
MapKey(&LMFD, COND, '');

//Right MFD
MapKey(&RMFD, OSB01, PULSE+L_SHIFT+L_ALT+USB[0x1E]);
MapKey(&RMFD, OSB02, PULSE+L_SHIFT+L_ALT+USB[0x1F]);
MapKey(&RMFD, OSB03, PULSE+L_SHIFT+L_ALT+USB[0x20]);
MapKey(&RMFD, OSB04, PULSE+L_SHIFT+L_ALT+USB[0x21]);
MapKey(&RMFD, OSB05, PULSE+L_SHIFT+L_ALT+USB[0x22]);
MapKey(&RMFD, OSB06, PULSE+L_SHIFT+L_ALT+USB[0x23]);
MapKey(&RMFD, OSB07, PULSE+L_SHIFT+L_ALT+USB[0x24]);
MapKey(&RMFD, OSB08, PULSE+L_SHIFT+L_ALT+USB[0x25]);
MapKey(&RMFD, OSB09, PULSE+L_SHIFT+L_ALT+USB[0x26]);
MapKey(&RMFD, OSB10, PULSE+L_SHIFT+L_ALT+USB[0x27]);
MapKey(&RMFD, OSB11, PULSE+L_SHIFT+L_ALT+USB[0x59]);
MapKey(&RMFD, OSB12, PULSE+L_SHIFT+L_ALT+USB[0x5A]);
MapKey(&RMFD, OSB13, PULSE+L_SHIFT+L_ALT+USB[0x5B]);
MapKey(&RMFD, OSB14, PULSE+L_SHIFT+L_ALT+USB[0x5C]);
MapKey(&RMFD, OSB15, PULSE+L_SHIFT+L_ALT+USB[0x5D]);
MapKey(&RMFD, OSB16, PULSE+L_SHIFT+L_ALT+USB[0x5E]);
MapKey(&RMFD, OSB17, PULSE+L_SHIFT+L_ALT+USB[0x5F]);
MapKey(&RMFD, OSB18, PULSE+L_SHIFT+L_ALT+USB[0x60]);
MapKey(&RMFD, OSB19, PULSE+L_SHIFT+L_ALT+USB[0x61]);
MapKey(&RMFD, OSB20, PULSE+L_SHIFT+L_ALT+USB[0x62]);
MapKey(&RMFD, GAINU, '');
MapKey(&RMFD, GAIND, '');
MapKey(&RMFD, SYMU, '');
MapKey(&RMFD, SYMD, '');
MapKey(&RMFD, BRTU, PULSE+L_SHIFT+L_ALT+USB[0x0A]);
MapKey(&RMFD, BRTD, PULSE+L_SHIFT+L_ALT+USB[0x09]);
MapKey(&RMFD, CONU, '');
MapKey(&RMFD, COND, '');
}



int EventHandle(int type, alias o, int x)
{
DefaultMapping(&o, x);
}
"La vérité", a-t-on dit, "est la première victime de la guerre".
Préface de Philip Snowden in La Vérité et la Guerre par ED Morel, Londres, Juillet 1916

Image
Image
Image

Topic author
GREATWHITE
Nouvelle Recrue
Nouvelle Recrue
Messages : 164
Inscription : 01 décembre 2009

#5

Message par GREATWHITE »

merci beaucoup !
je n' arrive cependant pas a lancer le script depuis l' éditeur :exit:

Topic author
GREATWHITE
Nouvelle Recrue
Nouvelle Recrue
Messages : 164
Inscription : 01 décembre 2009

#6

Message par GREATWHITE »

bon c' est bon pour lancer le script mais je n' ai pas le fichier des macros

Topic author
GREATWHITE
Nouvelle Recrue
Nouvelle Recrue
Messages : 164
Inscription : 01 décembre 2009

#7

Message par GREATWHITE »

un gd merci, ça marche impec !
par contre j' ai pas trouve le changement de SOI ?

Topic author
GREATWHITE
Nouvelle Recrue
Nouvelle Recrue
Messages : 164
Inscription : 01 décembre 2009

#8

Message par GREATWHITE »

j' ai trouvé :exit:
Avatar de l’utilisateur

Mad Fly
Pilote Philanthrope
Pilote Philanthrope
Messages : 4723
Inscription : 04 août 2001

#9

Message par Mad Fly »

désolé de n'avoir répondu plus tôt.
Mais ce profil n'a rien de très réaliste, disons qu'il m'est très personnel. :innocent:

En tout cas heureux que tu ais pu en faire quelque chose.
"La vérité", a-t-on dit, "est la première victime de la guerre".
Préface de Philip Snowden in La Vérité et la Guerre par ED Morel, Londres, Juillet 1916

Image
Image
Image

Topic author
GREATWHITE
Nouvelle Recrue
Nouvelle Recrue
Messages : 164
Inscription : 01 décembre 2009

Script Target pour OF 4.5 et 4.7

#10

Message par GREATWHITE »

Bonjour !
Ci-joint un listing permettant de voler sous OF avec le warthog
un grand merci a Madfly, Dimebug et Ghost Rider pour le code initial
Pour les macros, j' ai utilisé celle de F4 AF fournies avec Target
Bon vol à tous

include "target.tmh"
include "F4_keystrokes_Macros.ttm"


int main()
{
if(Init(&EventHandle)) return 1; // declare the event handler, return on error
// Map key events
SetShiftButton(&Joystick, S3,&Throttle, BSF, BSB); // define S3 as /I/O shift
// et BSF/BSM/BSB as /U/M/D
// BSB= Air/Air mode, BSM= Nav Mode, BSF= Air/Ground Mode
MapAxis(&Joystick, JOYX, DX_X_AXIS);
MapAxis(&Joystick, JOYY, DX_Y_AXIS);
MapAxis(&Throttle, THR_LEFT, DX_ZROT_AXIS);
MapAxis(&Throttle, THR_RIGHT, DX_Z_AXIS);
MapAxis(&Throttle, SCX, DX_XROT_AXIS);
MapAxis(&Throttle, SCY, DX_YROT_AXIS, AXIS_REVERSED);
MapAxis(&Throttle, THR_FC, DX_SLIDER_AXIS);


SetJCurve(&Throttle, THR_LEFT, 80, 95); //set rpm curve to match physical afterburner detent
SetJCurve(&Throttle, THR_RIGHT, 80, 95);

// Profil pour Falcon 4 par Greatwhite Merci à MadFly, DimeBug et Ghostrider chez qui j'ai piqué des morceaux de script

//Joystick------------------------------------------------------------------------------------------------------------------------
MapKey(&Joystick, S3,''); // Shift I/O
// Palette S4
MapKeyIO(&Joystick, S4, 0, SimAPOverride);// Cycle master arm / AP override

// gachette : 1 team speak, 2 tir cannon
MapKeyIO(&Joystick, TG1, L_ALT+USB[0x1F], R_CTL); // Team Speak (RCtrl et Alt+2)
MapKey(&Joystick, TG2, SimTrigger); // TG1 = uhf 1 / vhf 2, TG2 = cannon

// Joystick Switch

MapKeyIOUMD(&Joystick, S1,PULSE+SimNextAGWeapon,PULSE+SimNextAAWeapon,0,PULSE+SimFuelDoorToggle,PULSE+SimMissileStep,PULSE+SimNextAAWeapon);

MapKey(&Joystick, S2, SimPickle); // Release Weapon

// HAT 1 Trim Hat + View

// Up
MapKeyIO(&Joystick, H1U, PULSE+AFElevatorTrimUp, OTWViewUp); // Fleche + Hud only (S3)
// Down
MapKeyIO(&Joystick, H1D, PULSE+AFElevatorTrimDown,OTWViewDown); // Fleche + Cockpit front (S3)
// Left
MapKeyIO(&Joystick, H1L, PULSE+AFAileronTrimLeft, OTWViewLeft); // Fleche + Padlock SA bar (S3)
// Right
MapKeyIO(&Joystick, H1R, PULSE+AFAileronTrimRight, OTWViewRight); // Fleche + Padlock (S3)



// HAT 2 AA : steerpoints + TMS

// Up
MapKeyIOUMD(&Joystick, H2U,
PULSE+SimNextWaypoint, // steerpoint next
CHAIN(DOWN+L_CTL,D(300),PULSE+USB[0x52],D(300),UP+(L_CTL)),// TMS UP
PULSE+SimNextWaypoint,
0,
PULSE+SimNextWaypoint,
SEQ(PULSE+SimDesignate,CHAIN(DOWN+L_CTL,D(300),PULSE+USB[0x52],D(300),UP+(L_CTL))));// Bug Track + TMS UP

// Down
MapKeyIOUMD(&Joystick, H2D,
PULSE+SimPrevWaypoint, // steerpoint pr?vious
PULSE+SimTMSDown,// TMS down
PULSE+SimPrevWaypoint, // steerpoint pr?vious
0,// a voir
PULSE+SimPrevWaypoint, // steerpoint pr?vious
SEQ(PULSE+SimDropTrack,PULSE+SimTMSDown));// Drop Track + TMS down

// Left
MapKeyIOUMD(&Joystick, H2L,
0, // Nothing
PULSE+SimRadarPrevTarget, // Radar Lock Previous Target
0, // Nothing
0, // Nothing
0, // Nothing
PULSE+SimRadarPrevTarget); // Radar Lock Previous Target

// Right
MapKeyIOUMD(&Joystick, H2R,
0, // Nothing
PULSE+SimRadarNextTarget, // Radar Lock Next Target
0, // Nothing
0, // Nothing
0, // Nothing
PULSE+SimRadarNextTarget); // Radar Lock Next Target

// HAT 3 Data Management

// Up
MapKeyIOUMD(&Joystick, H3U,
PULSE+SimHSDRangeStepUp, // HSD Range Increase
PULSE+SimDMSUp, // DMS UP
PULSE+SimHSDRangeStepUp, // HSD Range Increase
PULSE+SimDMSUp, // DMS UP
PULSE+SimHSDRangeStepUp, // HSD Range Increase
PULSE+SimDMSUp); // DMS UP

// Down
MapKeyIOUMD(&Joystick, H3D,
PULSE+SimHSDRangeStepDown, // HSD Range Decrease
PULSE+SimDMSDown,// DMS down
PULSE+SimHSDRangeStepDown, // HSD Range Decrease
PULSE+SimDMSDown,// DMS down
PULSE+SimHSDRangeStepDown, // HSD Range Decrease
PULSE+SimDMSDown);// DMS down

// Left
MapKeyIOUMD(&Joystick, H3L,
0, // a voir
PULSE+SimDMSLeft, // DMS left
0, // a voir
PULSE+SimDMSLeft, // DMS left
0, // a voir
PULSE+SimDMSLeft); // DMS left

// Right
MapKeyIOUMD(&Joystick, H3R,
0, // a voir
PULSE+SimDMSRight, // DMS Right
0, // a voir
PULSE+SimDMSRight, // DMS Right
0, // a voir
PULSE+SimDMSRight); // DMS Right

// HAT 4 Counter measure Management + RWR

MapKey(&Joystick, H4U, SimDropFlare); //Countermeasures Dispense
// Up
MapKeyIO(&Joystick, H4D, PULSE+SimRWRSetTargetSep, PULSE+SimRWRHandoff ); //RWR handoff + Target sep
// Left
MapKeyIO(&Joystick, H4L, PULSE+SimEWSProgDec, PULSE+SimCATSwitch ); // CAT I/III - EWS pgm dec
// Right
MapKeyIO(&Joystick, H4R, PULSE+SimEWSProgInc, PULSE+SimECMOn ); // ECM / EWS pgm inc
// Pushd
MapKeyIO(&Joystick, H4P, CHAIN(PULSE+SimEmergencyJettison,PULSE+SimCATSwitch), '');// Jettison all + Cat Switch


//Throttle-----------------------------------------------------------------------------------------------------------------------

// Left arm
//Pinky Switch
MapKey(&Throttle, PSF, CHAIN(PULSE+OTWSelect3DCockpitMode,PULSE+USB[0x47])); // Cockpit view + Track IR center (0x47 --> Scroll lock)
//MapKeyIO(&Throttle, PSM, ''); //
MapKey(&Throttle, PSB, PULSE+OTWSelectOrbitMode); //External view

// Right Arm

//Slew Control
MapKeyIO(&Throttle, SC, 0,PULSE+SimToggleMissileCage); // Missile cage uncage


//COOLIE Switch
// Up
MapKey(&Throttle, CSU, SimCursorUp); //TDC Up
// Down
MapKey(&Throttle, CSD, SimCursorDown); //TDC Down
// Left
MapKey(&Throttle, CSL, SimCursorLeft); //TDC Left
// Right
MapKey(&Throttle, CSR, SimCursorRight); //TDC Right


//MicSwitch

// Push
MapKey(&Throttle, MSP,PULSE+SimSOIFOVStep);// expand FOV SOI
// UP
MapKey(&Throttle, MSU, SimRadarElevationUp); // Radar antenna Up
// Down
MapKey(&Throttle, MSD, SimRadarElevationDown); // Radar antenna Dn
// Left
MapKeyIO(&Throttle, MSL,PULSE+SimRadarGainDown,PULSE+SimRadarRangeStepDown); // Radar gain + range decrease
// Right
MapKeyIO(&Throttle, MSR,PULSE+SimRadarGainUp, PULSE+SimRadarRangeStepUp); // Radar gain + range increase

//Speedbrake
MapKey(&Throttle, SPDB, AFBrakesToggle); // Airbrake temporaire (commande relache)
MapKey(&Throttle, SPDM, PULSE+AFBrakesIn); // Aibrake Off
MapKey(&Throttle, SPDF, PULSE+AFBrakesOut); // Airbrake On

//Boat Switch
MapKeyIO(&Throttle, BSB,PULSE+SimICPAA,PULSE+SimSelectSRMOverride); //Mode AA+DOGFIGHT
MapKey(&Throttle, BSM,CHAIN(PULSE+SimDeselectOverride,PULSE+SimICPNav)); //Mode Nav
MapKeyIO(&Throttle, BSF,PULSE+SimICPAG,PULSE+SimSelectMRMOverride); //Mode AG+MRM OVERRIDE


//Left Throttle Button
MapKeyUMD(&Throttle, LTB,0,0,SEQ(PULSE+SimACMVertical,PULSE+SimACM30x20,PULSE+SimACMSlew,PULSE+SimACMBoresight)); //dogfight submodes



//China hat
MapKeyIO(&Throttle, CHB, 0, PULSE+SimRadarBarScanChange); // Radar Bar Change
MapKey(&Throttle, CHM, 0); // Nothing
MapKeyIO(&Throttle, CHF, 0, PULSE+SimRadarAzimuthScanChange); // Radar azimuth change

//Throttle base
//Engine panel
//Fuel
MapKey(&Throttle, EFLNORM, CHAIN(PULSE+SimExtlPower, D(1000),PULSE+SimLandingLightToggle, D(1000), PULSE+SimExtlSteady, D(1000), PULSE+SimExtlAntiColl, D(1000), PULSE+SimExtlWing)); // external Lights On off
MapKey(&Throttle, EFRNORM, PULSE+SimInteriorLight); // pit lights on off
MapKey(&Throttle, EFLOVER, CHAIN(PULSE+SimExtlPower, D(1000),PULSE+SimLandingLightToggle, D(1000), PULSE+SimExtlSteady, D(1000), PULSE+SimExtlAntiColl, D(1000), PULSE+SimExtlWing)); // external Lights On off
MapKey(&Throttle, EFROVER, PULSE+SimInteriorLight); // pit lights on off

//Eng Oper
// Left
MapKey(&Throttle, EOLIGN, PULSE+SimFuelDump); // Dump fuel
//MapKeyIO(&Throttle, EOLNORM, PULSE+R_ALT+USB[0x00]);
MapKey(&Throttle, EOLMOTOR, PULSE+SimFuelDoorToggle); // Fuel door

// Right
MapKey(&Throttle, EORIGN,PULSE+SimEmergencyJettison ); // Jettison Weapons
//MapKeyIO(&Throttle, EORNORM, PULSE+R_CTL+USB[0x00]);
MapKey(&Throttle, EORMOTOR, PULSE+SimLaserArmToggle); // Laser on off

//APU Start
MapKey(&Throttle, APUON, PULSE+AFGearUp); // gear Up !!!! F4 AF only
MapKey(&Throttle, APUOFF, PULSE+AFGearDown); // gear down !!! F4 AF only

//L/G Wrn
MapKey(&Throttle, LDGH, SEQ(PULSE+R_CTL+USB[0x06],PULSE+SimWarnReset)); //reset Warn

//FLAP
MapKey(&Throttle, FLAPU, PULSE+SimAVTRSwitch); // Record ACMI
MapKey(&Throttle, FLAPM, PULSE+SimAVTRSwitchBack); //ACMI Record off
MapKey(&Throttle, FLAPD, PULSE+ToggleNVGMode); // Night vision goggle

//Autopilot Panel
//EAC
MapKey(&Throttle, EACON, PULSE+SimArmMasterArm); // Master Arm On/Off
MapKey(&Throttle, EACOFF, PULSE+SimSafeMasterArm); //

//RDR ALTM
MapKey(&Throttle, RDRNRM, PULSE+SimRALTON); // Radar alt on
MapKey(&Throttle, RDRDIS, PULSE+SimRALTSTDBY); // Radar alt Standby

//Autopilot
MapKey(&Throttle, APENG, CHAIN(LOCK+PULSE+RadioAWACSCommand,LOCK+PULSE+USB[0x26],LOCK+SimEject)); // Eject + Awacs information

MapKey(&Throttle, APPAT, PULSE+SimLeftAPSwitch); //Autopilot Left
//MapKeyIO(&Throttle, APAH, PULSE+L_ALT+USB[0x26]); //Autopilot disengage
MapKey(&Throttle, APALT, PULSE+SimRightAPSwitch); //Autopilot Right

//Idle detent //
//Left
//MapKeyIO(&Throttle, IDLELON, PULSE+R_ALT+USB[0x4d]); //Left engine Stop
//MapKeyIO(&Throttle, IDLELOFF, PULSE+USB[0x00]);
//Right
//MapKeyIO(&Throttle, IDLERON, PULSE+R_CTL+USB[0x4d]); //Right engine Stop
//MapKeyIO(&Throttle, IDLEROFF, PULSE+USB[0x00]);

//Left MFD
MapKey(&LMFD, OSB01, PULSE+L_CTL+L_ALT+USB[0x1E]);
MapKey(&LMFD, OSB02, PULSE+L_CTL+L_ALT+USB[0x1F]);
MapKey(&LMFD, OSB03, PULSE+L_CTL+L_ALT+USB[0x20]);
MapKey(&LMFD, OSB04, PULSE+L_CTL+L_ALT+USB[0x21]);
MapKey(&LMFD, OSB05, PULSE+L_CTL+L_ALT+USB[0x22]);
MapKey(&LMFD, OSB06, PULSE+L_CTL+L_ALT+USB[0x23]);
MapKey(&LMFD, OSB07, PULSE+L_CTL+L_ALT+USB[0x24]);
MapKey(&LMFD, OSB08, PULSE+L_CTL+L_ALT+USB[0x25]);
MapKey(&LMFD, OSB09, PULSE+L_CTL+L_ALT+USB[0x26]);
MapKey(&LMFD, OSB10, PULSE+L_CTL+L_ALT+USB[0x27]);
MapKey(&LMFD, OSB11, PULSE+L_CTL+L_ALT+USB[0x59]);
MapKey(&LMFD, OSB12, PULSE+L_CTL+L_ALT+USB[0x5A]);
MapKey(&LMFD, OSB13, PULSE+L_CTL+L_ALT+USB[0x5B]);
MapKey(&LMFD, OSB14, PULSE+L_CTL+L_ALT+USB[0x5C]);
MapKey(&LMFD, OSB15, PULSE+L_CTL+L_ALT+USB[0x5D]);
MapKey(&LMFD, OSB16, PULSE+L_CTL+L_ALT+USB[0x5E]);
MapKey(&LMFD, OSB17, PULSE+L_CTL+L_ALT+USB[0x5F]);
MapKey(&LMFD, OSB18, PULSE+L_CTL+L_ALT+USB[0x60]);
MapKey(&LMFD, OSB19, PULSE+L_CTL+L_ALT+USB[0x61]);
MapKey(&LMFD, OSB20, PULSE+L_CTL+L_ALT+USB[0x62]);
MapKey(&LMFD, GAINU, '');
MapKey(&LMFD, GAIND, '');
MapKey(&LMFD, SYMU, '');
MapKey(&LMFD, SYMD, '');
MapKey(&LMFD, BRTU, PULSE+L_CTL+L_ALT+USB[0x0A]);
MapKey(&LMFD, BRTD, PULSE+L_CTL+L_ALT+USB[0x09]);
MapKey(&LMFD, CONU, '');
MapKey(&LMFD, COND, '');

//Right MFD
MapKey(&RMFD, OSB01, PULSE+L_SHIFT+L_ALT+USB[0x1E]);
MapKey(&RMFD, OSB02, PULSE+L_SHIFT+L_ALT+USB[0x1F]);
MapKey(&RMFD, OSB03, PULSE+L_SHIFT+L_ALT+USB[0x20]);
MapKey(&RMFD, OSB04, PULSE+L_SHIFT+L_ALT+USB[0x21]);
MapKey(&RMFD, OSB05, PULSE+L_SHIFT+L_ALT+USB[0x22]);
MapKey(&RMFD, OSB06, PULSE+L_SHIFT+L_ALT+USB[0x23]);
MapKey(&RMFD, OSB07, PULSE+L_SHIFT+L_ALT+USB[0x24]);
MapKey(&RMFD, OSB08, PULSE+L_SHIFT+L_ALT+USB[0x25]);
MapKey(&RMFD, OSB09, PULSE+L_SHIFT+L_ALT+USB[0x26]);
MapKey(&RMFD, OSB10, PULSE+L_SHIFT+L_ALT+USB[0x27]);
MapKey(&RMFD, OSB11, PULSE+L_SHIFT+L_ALT+USB[0x59]);
MapKey(&RMFD, OSB12, PULSE+L_SHIFT+L_ALT+USB[0x5A]);
MapKey(&RMFD, OSB13, PULSE+L_SHIFT+L_ALT+USB[0x5B]);
MapKey(&RMFD, OSB14, PULSE+L_SHIFT+L_ALT+USB[0x5C]);
MapKey(&RMFD, OSB15, PULSE+L_SHIFT+L_ALT+USB[0x5D]);
MapKey(&RMFD, OSB16, PULSE+L_SHIFT+L_ALT+USB[0x5E]);
MapKey(&RMFD, OSB17, PULSE+L_SHIFT+L_ALT+USB[0x5F]);
MapKey(&RMFD, OSB18, PULSE+L_SHIFT+L_ALT+USB[0x60]);
MapKey(&RMFD, OSB19, PULSE+L_SHIFT+L_ALT+USB[0x61]);
MapKey(&RMFD, OSB20, PULSE+L_SHIFT+L_ALT+USB[0x62]);
MapKey(&RMFD, GAINU, '');
MapKey(&RMFD, GAIND, '');
MapKey(&RMFD, SYMU, '');
MapKey(&RMFD, SYMD, '');
MapKey(&RMFD, BRTU, PULSE+L_SHIFT+L_ALT+USB[0x0A]);
MapKey(&RMFD, BRTD, PULSE+L_SHIFT+L_ALT+USB[0x09]);
MapKey(&RMFD, CONU, '');
MapKey(&RMFD, COND, '');
}



int EventHandle(int type, alias o, int x)
{
DefaultMapping(&o, x);
}
Avatar de l’utilisateur

Slayer
WSO Co-pilote
WSO Co-pilote
Messages : 925
Inscription : 03 août 2001

#11

Message par Slayer »

Suffit plus d'être un bon pilote ( virtuel ) faut encore être ingénieur en informatique... Plus fort que les vrais pilotes.


c'est de la follie ce truc.
Chapeau bas mais tout cela ne me parle pas:exit:

Topic author
GREATWHITE
Nouvelle Recrue
Nouvelle Recrue
Messages : 164
Inscription : 01 décembre 2009

#12

Message par GREATWHITE »

Je vois que tu voles sous OF 47. Si tu as la chance de posseder un warthog il te suffit de copier le texte dans le script editor de target (un bête copier coller) et tu le lance en faisant run.
Pour le fichier des macros qui va avec je suis simplement reparti du fichier F4 Allied Force fourni dans le sous dossier scripts de Target.(en le renommant)
Le code que tu vois là donne une utilisation du warthog trés similaire a celle que tu as peut être connu si tu as possédé un cougar.
N' hésite pas à poser des questions mais ne bloque pas ça te ferais manquer de belles choses avec le bestiau.
Bon vol
Avatar de l’utilisateur

Gazzz
Apprenti-Mécano
Apprenti-Mécano
Messages : 218
Inscription : 19 octobre 2005

#13

Message par Gazzz »

Salut,

Autant j'arrive à faire fonctionner le script de MadFly, autant ça ne marche pas pour le tien. J'ai l'erreur
"
Runtime Error: Symbol not found: SimDMSRight in main ( line 124 in Falcon4_OF_GreatWhite.tmc )
"

Cette ligne 124 étant
"
PULSE+SimDMSRight, // DMS Right
"

Vois tu où est le pb? Tu ne l'as pas de ton côté?

Merci d'avance (je débute sur Target).
Image
Avatar de l’utilisateur

Gazzz
Apprenti-Mécano
Apprenti-Mécano
Messages : 218
Inscription : 19 octobre 2005

#14

Message par Gazzz »

bon ... ben finalement je me suis paluché la config directement avec le GUI en mode Advanced.
Tout n'est pas encore nickel mais ça prend forme.

Je suis embeté par les AF, mais je comprends qu'il est possible de prendre le script généré et d'y rajouter la partie écrite par Dimebug (de mémoire).

Ca me change du SST de Saitek!
Image
Avatar de l’utilisateur

Slayer
WSO Co-pilote
WSO Co-pilote
Messages : 925
Inscription : 03 août 2001

#15

Message par Slayer »

GREATWHITE a écrit :Je vois que tu voles sous OF 47. Si tu as la chance de posseder un warthog il te suffit de copier le texte dans le script editor de target (un bête copier coller) et tu le lance en faisant run.
Pour le fichier des macros qui va avec je suis simplement reparti du fichier F4 Allied Force fourni dans le sous dossier scripts de Target.(en le renommant)
Le code que tu vois là donne une utilisation du warthog trés similaire a celle que tu as peut être connu si tu as possédé un cougar.
N' hésite pas à poser des questions mais ne bloque pas ça te ferais manquer de belles choses avec le bestiau.
Bon vol

Salut GreatWhite, non je n'ai pas encore le Warthog mais je me mets le script sous le coude.:yes:
C'est pas facile la simu... :flowers:
Avatar de l’utilisateur

Acrid
Elève Pilote
Elève Pilote
Messages : 753
Inscription : 06 septembre 2005

#16

Message par Acrid »

Gazzz a écrit :
Je suis embeté par les AF
Mais puisqu'on te dit de passer sous OF Gazzounet !

je suis à ta dispo pour aider
Image
Avatar de l’utilisateur

Gazzz
Apprenti-Mécano
Apprenti-Mécano
Messages : 218
Inscription : 19 octobre 2005

#17

Message par Gazzz »

ô la bonne blague Acrid!
;-)


Je parlais bien sûr des Aéro Freins, pas d'une guéguerre AF/OF (pour ceux qui n'auraient pas suivi).

J'ai tenté avec le script de la FolleMouche, ça ne marche pas parfaitement.
J'ai tenté avec des combinaisons de ShiftB, CtrlB et B (de mémoire), avec des Pulse ou des Hold sous TARGET.
Je ne trouve pas la bonne solution.

Je vais donc essayer celle de Dimebug. Mais d'abord il faut que je finalise dans le GUI de TARGET avant de modifier les scripts générés.
Image
Avatar de l’utilisateur

Gazzz
Apprenti-Mécano
Apprenti-Mécano
Messages : 218
Inscription : 19 octobre 2005

#18

Message par Gazzz »

Acrid, je te prends (!) au mot (en 2 mots!) :
As tu une solution pour faire marcher les AF / Aéro Freins / Air Brakes (pas F4AF! Boulet!) sous Warthog?

Je te cite, "à ta disposition pour aide" alors hop hop hop tu installes TARGET et tu me trouves ça ;-)

Oui oui, c'est compatible avec ton Cougar en plus.
Elle est pas belle la vie?
Image
Avatar de l’utilisateur

Mad Fly
Pilote Philanthrope
Pilote Philanthrope
Messages : 4723
Inscription : 04 août 2001

#19

Message par Mad Fly »

j'ai du l'améliorer depuis
je jeterai un oeil
"La vérité", a-t-on dit, "est la première victime de la guerre".
Préface de Philip Snowden in La Vérité et la Guerre par ED Morel, Londres, Juillet 1916

Image
Image
Image
Avatar de l’utilisateur

Acrid
Elève Pilote
Elève Pilote
Messages : 753
Inscription : 06 septembre 2005

#20

Message par Acrid »

Gazzz a écrit :Acrid, je te prends (!)
Le dernier qui a voulu me prendre sèche encore dans mon grenier.
Gazzz a écrit : As tu une solution pour faire marcher les AF / Aéro Freins / Air Brakes
j'ai implémenté les air brakes d'une manière MEGA cool : le jeu s'aligne automatiquement sur la position physique du bouton airbrake sur mon cougar.
Gazzz a écrit : Je te cite, "à ta disposition pour aide" alors hop hop hop tu installes TARGET et tu me trouves ça ;-)

Oui oui, c'est compatible avec ton Cougar en plus.
Elle est pas belle la vie?
edit
bon j'ai téléchargé et installé
je comprend rien à target faudrait que je me paluche la doc

Purée 152Megas l'installation de TARGET. faut vraiment qu'on ai besoin d'un bon DA comme toi.
Image
Avatar de l’utilisateur

Mad Fly
Pilote Philanthrope
Pilote Philanthrope
Messages : 4723
Inscription : 04 août 2001

#21

Message par Mad Fly »

ton pb c'est que tu veux faire de l'incrémental, je présume ?
"La vérité", a-t-on dit, "est la première victime de la guerre".
Préface de Philip Snowden in La Vérité et la Guerre par ED Morel, Londres, Juillet 1916

Image
Image
Image
Avatar de l’utilisateur

Gazzz
Apprenti-Mécano
Apprenti-Mécano
Messages : 218
Inscription : 19 octobre 2005

#22

Message par Gazzz »

Effectivement.
Mais n'y passez pas trop de temps (sauf Acrid, j'aime bien le faire bosser ;-) ) je comprends que le code de Dimebug fonctionne pour les AF.
Je n'ai pas encore testé car j'attends d'avoir tout terminé dans le GUI de Target, avant de mettre la surcouche directement en script.

D'ailleurs MadFly j'ai pris ton (ancien?) code pour tester et ça ne fonctionne pas tout à fait. Des fois oui ... des fois non pour les AF.

Je suis intéressé si tu as une solution simple avec des affectations de touches sans script.
Image
Avatar de l’utilisateur

Mad Fly
Pilote Philanthrope
Pilote Philanthrope
Messages : 4723
Inscription : 04 août 2001

#23

Message par Mad Fly »

je trouve que le speedbreak ne se prête pas à l'incrémental.
Essaye d'utiliser les flaps.
"La vérité", a-t-on dit, "est la première victime de la guerre".
Préface de Philip Snowden in La Vérité et la Guerre par ED Morel, Londres, Juillet 1916

Image
Image
Image
Avatar de l’utilisateur

Gazzz
Apprenti-Mécano
Apprenti-Mécano
Messages : 218
Inscription : 19 octobre 2005

#24

Message par Gazzz »

Je trouve au contraire qu'il s'y prête très bien ;-)
Essaye DCS A10 par exemple.

En fait, pour être tout à fait exact, je ne cherche pas strictement de l'incrémental avec x degrés d'ouverture (ou fermeture) par appui dans un sens (en supposant que la position milieu ne fasse aucun mouvement).

Je cherche plutôt un fonctionnement
- ouverture tant que le bouton est enfoncé en arrière
- pas de mouvement au centre
- fermeture tant que le bouton est enfoncé en avant (position standart a priori puisqu'en plus ce bouton reste bloqué dans cette position, afin de s'assurer que les AF sont bien fermés).

Donc le "pulse" n'est pas adapté.
J'ai essayé avec le "hold" mais ça ne marche pas (peut être à cause des touches affectés aux ouvertures/fermetures dans F4OF).

Et je me dis qu'un "press / release" ou "hold" ne seraient pas adaptés car si je laisse trop longtemps le bouton en position avant ou arrière ça risque de saturer le tampon clavier.
Ou de faire des conflits lorsque j'appuis également sur un autre bouton.

Je me dis qu'idéalement il faudrait que je fasse un scritp genre
"tant que le bouton speadbreak est enfoncé vers l'avant, alors j'envoie cycliquement (paramètre 1) la commende de fermeture incrémentale, pendant une durée max (paramètre 2)."
et inversemetn pour la position arrière.

Le paramètre 1 devra être ajusté pour que ça soit adapté.
Le paramètre 2 devra être ajusté en fonction du 1, pour ne pas envoyer trop de commandes, en particulier lorsque le bouton reste en position fermée.

Je me complique la vie là?
Comment vous faites?
Je pourrais il est vrai me contenter d'un full open / full fermé ... mais dans certains cas (PS, ravito...) ce serait du gachi.
Image
Avatar de l’utilisateur

Acrid
Elève Pilote
Elève Pilote
Messages : 753
Inscription : 06 septembre 2005

#25

Message par Acrid »

Gazzz a écrit : Comment vous faites?
Je pourrais il est vrai me contenter d'un full open / full fermé ... mais dans certains cas (PS, ravito...) ce serait du gachi.
le principe qui marche du tonnerre chez moi : definir les AF en tant que bouton joystick et non clavier

definir sortie AF = DX10
rentrée AF = DX11


sortie progressive AF = hold dx10
rentree progressive = hold DX11
Image
Répondre

Revenir à « Support technique »