January 27, 201016 yr Commercial Member Does it work as advertised? I've got the following problem:-KEY_SPOILERS_SET(0-4320) does nothingKEY_SPOILERS_SET(4323-@5000) returns 10062 (or thereabouts - it varies) if I query SPOILERS_POS_LEFT or SPOILERS_POS_RIGHTKEY_SPOILERS_SET(anything above @5000) returns 16383 if I query SPOILERS_POS_LEFT or SPOILERS_POS_RIGHTThe onscreen visuals match the SPOILERS_POS returns. I've looked in both the airfile and the aircraft.cfg file for inspiration (failed!) and I know that the information being entered into the SPOILERS_SET command is only coming from one place, so nothing else is sneakily overriding it.Very puzzled....-Dai
January 27, 201016 yr Dai, I remember an anomoly similar, just donot know the specifics though. ( long time ago, FS02 )Are you setting the spoilers while on the ground?Try querying spoiler_pos with spoilers armed & in the air.Just a bit of input, that's all.Roman FS RTWR SHRS F-111 JoinFS Little Navmap
January 27, 201016 yr Author Commercial Member @Ed: I'll give that a try. KEY_AXIS_SPOILERS_SET didn't work in C but it could work in XML.@Roman: Yes, I'm on the ground. I'm trying to build an AGS (automatic ground spoiler) system and you've made me wonder if I specifically need the KEY_SPOILERS_ARM command. Must try that too.-Dai
January 28, 201016 yr This is a simple auto ground spoiler code. >(L:G/Sactive,bool) if{ (>K:SPOILERS_ARM_ON) } (A:General eng1 throttle lever position, part) 0 < (A:General eng2 throttle lever position, part) 0 < || if{ (>K:SPOILERS_ARM_OFF) (>K:SPOILERS_OFF) } Arms the spoilers on glideslope capture, deploys on ground contact, retracts on reverse thrust. Paul EGLD
January 28, 201016 yr Author Commercial Member This solved it in the end: void setSpoilers(int pos){ if(!pos)trigger_key_event(KEY_SPOILERS_OFF,0); else if(pos>13000)trigger_key_event(KEY_SPOILERS_ON,0); else trigger_key_event(KEY_AXIS_SPOILER_SET,pos); return;} Final tally for spoilers on the ground is this:-1. KEY_SPOILERS_SET is utterly snafu when on the ground.2. KEY_AXIS_SPOILER_SET starts to get unreliable at extreme ranges, hence the SPOILERS_OFF/ON to trap the unreliability.3. KEY_SPOILER_ARM_SET,[value] simply bangs you through to full deployment and ignores [value].4. KEY_SPOILER_ARM_ON does the same.Paul: it would have been nice to have such a simple AGS; unfortunately this aircraft deploys spoilers on RTO, plus the amount of spoiler/speedbrake deployment depends on which hydraulic systems are available. I had to be able to set them to a specific amount.-Dai
Create an account or sign in to comment