Suscribe an offset, not a variable ?
-
- Posts: 57
- Joined: Sat Nov 26, 2016 9:58 pm
Suscribe an offset, not a variable ?
Hi there,
I'm looking for a way to makd a Thrustmaster MFD Cougar working with AirManager.
What i wish : use a touch screen under the MFd to display indications. Eg: normal buttons text set to green, and highlighted in red when pressed (so, change an image)
With FSUIPC, i can send to an offset the value of the pressed button. Is it possible to link this offset to Airmanag, instead of a an MSFS variable ?
Not sure to be clear enough, sorry !
I'm looking for a way to makd a Thrustmaster MFD Cougar working with AirManager.
What i wish : use a touch screen under the MFd to display indications. Eg: normal buttons text set to green, and highlighted in red when pressed (so, change an image)
With FSUIPC, i can send to an offset the value of the pressed button. Is it possible to link this offset to Airmanag, instead of a an MSFS variable ?
Not sure to be clear enough, sorry !
Re: Suscribe an offset, not a variable ?
Search for FSUIPC and you'll find your answer(s).
-
- Posts: 57
- Joined: Sat Nov 26, 2016 9:58 pm
Re: Suscribe an offset, not a variable ?
Well, i'm trying, but that's not so clear, as i don't really know what i'm looking for !
A link to an example would be great ...
Thanks for you reply !
A link to an example would be great ...
Thanks for you reply !
-
- Posts: 57
- Joined: Sat Nov 26, 2016 9:58 pm
Re: Suscribe an offset, not a variable ?
Ok, that's not possible :
Sounds like a mystery to me But the answer is no, no offsets, only LVAR's. Offsets are FSUIPC only, we do not want to support FSUIPC, it's a nearly deprecated system
Re: Suscribe an offset, not a variable ?
FSUIPC uses Lvars as well, they're just 'masked' as offsets. Except for some special aircraft like PMDG. But in most cases you can use the Lvar within Air Manager, if you can find it.
Re: Suscribe an offset, not a variable ?
Why even bother with the complication of offsets. AM can read a game controller directly. Details are on the wiki API pages.
Last edited by Sling on Thu Mar 18, 2021 4:58 pm, edited 1 time in total.
Air Manager panels at https://www.experimentalsimavionics.com
Youtube Channel https://www.youtube.com/channel/UC8ZqXX ... kfZMq5BKig
Air Manager API Tutorial Video Series https://youtube.com/playlist?list=PLNr0 ... baT4gJKg5D
Youtube Channel https://www.youtube.com/channel/UC8ZqXX ... kfZMq5BKig
Air Manager API Tutorial Video Series https://youtube.com/playlist?list=PLNr0 ... baT4gJKg5D
-
- Posts: 57
- Joined: Sat Nov 26, 2016 9:58 pm
Re: Suscribe an offset, not a variable ?
@Sling, thanks for your help.
I've tried your code :
it works fine if add a Saïtek controller (like yoke), but AM 4.0 beta 31 crashes when i try to add F16 MFD 1
Regards,
Oliver.
I've tried your code :
Code: Select all
function callback(type, index, value)
if value == true then value = "true"
elseif value == false then value = "false" end
print("Type = " .. type .. ", Index = " .. index .. ", Value = " .. value)
end
list = game_controller_list()
for k, v in pairs(list) do
print(v)
-- if v == "" then game_controller_add(v, callback) end
if v == "F16 MFD 1" then game_controller_add(v, callback) end
end
Code: Select all
INFO - F16 MFD 1
Oliver.
Re: Suscribe an offset, not a variable ?
The joystick API is a bit experimental. Shouldn't crash, but then again we can't promise it won't
Re: Suscribe an offset, not a variable ?
@Ralph
It is still a damn good option !
to @oscarDelta77 , just a thought, are you running - or auto starting, the Thrustmaster software when attempting to use the unit ?
Also, thanks for mentioning the MFD unit - I had completely forgotten about those ! Might need to buy a couple. I looked at them a few years ago and was impressed. Then they were out of sight and out of mind. Also thanks to Tony - @Sling - for bringing up the AM game controller stuff. Bloody Nice ! - I had completely missed that one. What a super option and addition, even if it is early in development.
Joe
Joe. CISSP, MSc.
-
- Posts: 57
- Joined: Sat Nov 26, 2016 9:58 pm
Re: Suscribe an offset, not a variable ?
@Ralph : It's a bit experimental, and it's might be "a must have" soon ! No luck for for me with MFD !
Yes ! i didn't know it was possible ! It's not easy to find a solution as we don't know where and how to dig !Also thanks to Tony - @Sling - for bringing up the AM game controller stuff. Bloody Nice !
@Joe : Well, i don't think so ! Actualy i d'ont need Thrustmaster's sofware, as it can't do what i want. I will make further tests and let you know .to @oscarDelta77 , just a thought, are you running - or auto starting, the Thrustmaster software when attempting to use the unit ?
Oliver.