Siky737
10-31-2015, 07:40 AM
Hi everybody
I'm trying to build a simple FFB yoke as an alternative to still very expensive
products out there. I'm calling it "simple FFB" because the idea is very simple.
The yoke's axis will freely move and rotate when the aircraft is still. With raising
airspeed, tensors will tighten four bungee cords and build up a tension forcing the
yoke to it's central position.
After some research I decided to buy Opencockpits DCmotors card to do the job.
Although I would like to add more motors in the future for runway vibration, prop
wash effect and other forces, I will begin with simple setup using only one motor
driving the tension of the bungee cords.
I'm quite good with mechanical stuff, basic/advanced understanding of electronics but
newbie to coding. I also understand that most of you guys don't really want to become
a full time tutors when it comes to beginners :cool:
Therefore I set on the long and steep road of SIOC code learning even after very
flustrating realisation that most of the manuals and tutorials available online are
either badly translated or quite advanced to catch up with..
So far I set up my DCmotors card with one pot, one motor and managed to run simple
test script provided within the card's original manual. That pretty much covered the
"very" basics.
Now I am going through the pile of code examples trying to understand
correct procedure and here I really need someone to give me a clue about what to
"write" next.
Very simple description of my application could be "Airspeed Gauge driven by DCmotors
card". Simply one DC motor and potentiometer, turning the motor into certain position
defined by IAS.
Could anyone pleeease give me a hand here?
My code (if we can call it that) :lol:
/////////////////////////////////////////////////////////////////////////////////////////////////
//
// SIOC Simple-FFB Yoke file
// Date 31/10/2015
// v 0.1
//
Var 100, Value 0 // Initialisation
Var 001, name Motor_1_out, Link USB_DCMOTOR, Output 1
Var 002, name Pot_1_value, Link USB_ANALOGIC Input 1, PosL 0, PosC128, PosR 255
Var 003, name IAS_from_FS, Link FSUIPC_IN Offset $02BC, length 4
I'm trying to build a simple FFB yoke as an alternative to still very expensive
products out there. I'm calling it "simple FFB" because the idea is very simple.
The yoke's axis will freely move and rotate when the aircraft is still. With raising
airspeed, tensors will tighten four bungee cords and build up a tension forcing the
yoke to it's central position.
After some research I decided to buy Opencockpits DCmotors card to do the job.
Although I would like to add more motors in the future for runway vibration, prop
wash effect and other forces, I will begin with simple setup using only one motor
driving the tension of the bungee cords.
I'm quite good with mechanical stuff, basic/advanced understanding of electronics but
newbie to coding. I also understand that most of you guys don't really want to become
a full time tutors when it comes to beginners :cool:
Therefore I set on the long and steep road of SIOC code learning even after very
flustrating realisation that most of the manuals and tutorials available online are
either badly translated or quite advanced to catch up with..
So far I set up my DCmotors card with one pot, one motor and managed to run simple
test script provided within the card's original manual. That pretty much covered the
"very" basics.
Now I am going through the pile of code examples trying to understand
correct procedure and here I really need someone to give me a clue about what to
"write" next.
Very simple description of my application could be "Airspeed Gauge driven by DCmotors
card". Simply one DC motor and potentiometer, turning the motor into certain position
defined by IAS.
Could anyone pleeease give me a hand here?
My code (if we can call it that) :lol:
/////////////////////////////////////////////////////////////////////////////////////////////////
//
// SIOC Simple-FFB Yoke file
// Date 31/10/2015
// v 0.1
//
Var 100, Value 0 // Initialisation
Var 001, name Motor_1_out, Link USB_DCMOTOR, Output 1
Var 002, name Pot_1_value, Link USB_ANALOGIC Input 1, PosL 0, PosC128, PosR 255
Var 003, name IAS_from_FS, Link FSUIPC_IN Offset $02BC, length 4