Cockpitbuilders.com

Main => General Discussion Board. => Topic started by: bindook on August 29, 2013, 04:45:09 AM

Title: Sioc throttle code
Post by: bindook on August 29, 2013, 04:45:09 AM
Hi guy's,
              I need some help getting my throttles working properly. At the moment the throttles are idling at 42 N1  which is to high.
How do I get them down back to 21 N1 ?

I have read the tutorial for it but cant workout how you get the number 2 for this line

IF V0015 <= 2

At idle throttle 1 is at 73 & throttle 2 is at 51

Below is the current code i'm using;
   
// Engine 1 Throttle lever
//-------------------------------------------------------------------------------------------------------

Var 0015, Link IOCARD_ANALOGIC, Input 03, PosL 27, PosC 139, PosR 252 // Throttle 1

//Var 0015, Link IOCARD_ANALOGIC, Input 01, PosL 30, PosC 106, PosR 236 // Throttle 1
{
   IF V0015 <= 2
   {
      V0081 = -4096 // Idle
   }
   ELSE
   {
      L0 = v0015 * 64.25 // 16384 / 215
      IF L0 > 16384
      {
         L0 = 16384
      }
      V0081 = L0
   }
}
Var 0081, Link FSUIPC_OUT, Offset $088c, Length 2 // Engine 1 Throttle lever, –4096 to +16384 = 20480 range

//-------------------------------------------------------------------------------------------------------
// Engine 2 Throttle lever
//-------------------------------------------------------------------------------------------------------

Var 0016, Link IOCARD_ANALOGIC, Input 04, PosL 5, PosC 119, PosR 234 // Throttle 2
//Var 0016, Link IOCARD_ANALOGIC, Input 02, PosL 0, PosC 177, PosR 255 // Throttle 2
{
   IF V0016 <= 2
   {
      V0082 = -4096 // Idle
   }
   ELSE
   {
      L0 = V0016   // - 40  off-set
      L1 = L0 * 69.42 // 77.28  16384 / 212
      IF L1 > 16384
      {
         L1 = 16384
      }
      V0082 = L1
   }
}
Var 0082, Link FSUIPC_OUT, Offset $0924, Length 2 // Engine 2 Throttle lever, –4096 to +16384


Thanks
Michael
Title: Re: Sioc throttle code
Post by: Aerosim Solutions on August 29, 2013, 05:55:59 PM
Hi Michael, I reckon you should bin that SIOC and fit a BU0836X card to solve all your issues. I have a spare card at home if you want to try it out. I use them on all my interfaced products with Leo Bodnar's approval. Set up will take you at least two minutes!!!
Cheers Gwyn
Title: Re: Sioc throttle code
Post by: bindook on August 29, 2013, 08:01:59 PM

  Got it going Gwyn, played around with the code & she idles properly now.

Thanks for the offer but will stick with sioc  as its all working for now.

Michael
Title: Re: Sioc throttle code
Post by: Aerosim Solutions on August 30, 2013, 12:48:32 AM
Fair enough, I'll have to come and have a look soon...
Title: Re: Sioc throttle code
Post by: jackpilot on August 30, 2013, 09:30:23 AM
I may be wrong somewhere but seems to me a TQ can be very simply calibrated with FSUIPC and a simple joystick card  (including reversers,spoilers, flaps, parking brake and FCOs) withourt any programing! :2cw:
Title: Re: Sioc throttle code
Post by: fordgt40 on August 30, 2013, 10:54:56 AM
Jack

Correct, but if you want throttle levers working under A/T, automatic spoilers and trim wheels moving in direct response to actual trim then I believe that you need some programming control

Regards

David
Title: Re: Sioc throttle code
Post by: jackpilot on August 30, 2013, 01:45:33 PM
OOps..of course!
Title: Re: Sioc throttle code
Post by: fordgt40 on August 30, 2013, 01:59:03 PM
No Problem  :) :) :) :) :) :) :)
Title: Re: Sioc throttle code
Post by: bindook on September 01, 2013, 05:06:51 AM
Gwyn ,
            yr welcome to pop over but will have to put that visit on hold, just bought a house in the vines . Move in on the end of November.