ZIBO speed breaks
Re: ZIBO speed breaks
Hello
I'm not capable to integrate map function on this code:
function sb(val)
xpl_dataref_write("laminar/B738/flt_ctrls/speedbrake_lever","FLOAT",val)
end
hw_adc_input_add("HW_PORT_A0",sb)
Can you help me.
Thx again
I'm not capable to integrate map function on this code:
function sb(val)
xpl_dataref_write("laminar/B738/flt_ctrls/speedbrake_lever","FLOAT",val)
end
hw_adc_input_add("HW_PORT_A0",sb)
Can you help me.
Thx again
Re: ZIBO speed breaks
Why are you using HW_PORT_A0?
- Keith Baxter
- Posts: 4674
- Joined: Wed Dec 20, 2017 11:00 am
- Location: Botswana
Re: ZIBO speed breaks
Hi
There is a speed brake HW instrument in the store. Uses a sh90
Keith
There is a speed brake HW instrument in the store. Uses a sh90
Keith
AMD RYZEN 9 5950X CPU, Corsair H80I cooler, ASUS TUF GAMING B550-PLUS AMD Ryzen Mother Board, 32Gb ram Corsair Vengeance 3000Mh, MSI GTX960 4G graphics card
Re: ZIBO speed breaks
Ok.I shall look.still I need this map func to calibrate also the throttle becouse I use only 90 degree of the potentiometer and I start with 0 value after lets say 30% of travel
- Keith Baxter
- Posts: 4674
- Joined: Wed Dec 20, 2017 11:00 am
- Location: Botswana
Re: ZIBO speed breaks
Hi,
OK I will knock up something for you later this evening.
Keith
AMD RYZEN 9 5950X CPU, Corsair H80I cooler, ASUS TUF GAMING B550-PLUS AMD Ryzen Mother Board, 32Gb ram Corsair Vengeance 3000Mh, MSI GTX960 4G graphics card
Re: ZIBO speed breaks
Thx Keith.
With help from everyone(almost you and "formula one" I finished throttle quadrant for Zibo with servos for throttles and it works just fine.it remain only to calibrate the throttle,flaps and speed breaks(I used potentiometer for speed break)
Thx again
With help from everyone(almost you and "formula one" I finished throttle quadrant for Zibo with servos for throttles and it works just fine.it remain only to calibrate the throttle,flaps and speed breaks(I used potentiometer for speed break)
Thx again
- Keith Baxter
- Posts: 4674
- Joined: Wed Dec 20, 2017 11:00 am
- Location: Botswana
Re: ZIBO speed breaks
Hi,
Here is a quick and easy for your speed brake lever.
You can add extra points into the interpolate table to suite your needs.
The first value is the potentiometer value. The second value is the value you write to the sim.
Let me know how you get along.
Keith
Here is a quick and easy for your speed brake lever.
You can add extra points into the interpolate table to suite your needs.
The first value is the potentiometer value. The second value is the value you write to the sim.
Code: Select all
--Zibo 737 MTU - SPEED-BRAKE LEVER
--*************************************************************************************--
--** LEVER FUNCTION **--
--*****************************************X*******************************************--
-- Create interpolate settings in ascending order
local sb_settings = { {0,0},
{0.3,0},
{0.5,0.8},
{1,1}}
-- Create a ADC input
hw_adc_input_add("autobrake", function(value)
local brake_var = interpolate_linear(sb_settings,value)
xpl_dataref_write("laminar/B738/flt_ctrls/speedbrake_lever","FLOAT", brake_var)
end)
Keith
AMD RYZEN 9 5950X CPU, Corsair H80I cooler, ASUS TUF GAMING B550-PLUS AMD Ryzen Mother Board, 32Gb ram Corsair Vengeance 3000Mh, MSI GTX960 4G graphics card
Re: ZIBO speed breaks
Thx. I shall try Monday
- Keith Baxter
- Posts: 4674
- Joined: Wed Dec 20, 2017 11:00 am
- Location: Botswana
Re: ZIBO speed breaks
No problem.
I will do the flaps lever shortly. Same principle. You will just have to add the pot values.
Keith
AMD RYZEN 9 5950X CPU, Corsair H80I cooler, ASUS TUF GAMING B550-PLUS AMD Ryzen Mother Board, 32Gb ram Corsair Vengeance 3000Mh, MSI GTX960 4G graphics card
- Keith Baxter
- Posts: 4674
- Joined: Wed Dec 20, 2017 11:00 am
- Location: Botswana
Re: ZIBO speed breaks
Hi,
Here is your flaps lever code. All you have to do is change the pot values
Keith
Here is your flaps lever code. All you have to do is change the pot values
Code: Select all
--Zibo 737 MTU - FLAPS LEVER
--*************************************************************************************--
--** FLAPS LEVER FUNCTION **--
--*****************************************X*******************************************--
-- Create interpolate settings in ascending order
local flap_settings = {{0.0,0},
{0.1,0},
{0.2,0.125},
{0.3,0.25},
{0.4,0.375},
{0.5,0.5},
{0.6,0.625},
{0.7,0.75},
{0.8,0.825},
{1.0,1}}
-- Create a ADC input
hw_adc_input_add("flaps", function(value)
-- This print statement will give you your pot value for your flaps settings table above
print("Pot value is "..value)
local flap_var = interpolate_linear(flap_settings,value)
xpl_dataref_write("laminar/B738/flt_ctrls/flap_lever","FLOAT", flap_var)
end)
AMD RYZEN 9 5950X CPU, Corsair H80I cooler, ASUS TUF GAMING B550-PLUS AMD Ryzen Mother Board, 32Gb ram Corsair Vengeance 3000Mh, MSI GTX960 4G graphics card