#Update - G3000 & Cessna Citation Longitude
1 messages · Page 1 of 1 (latest)
Time to dig into Dev Mode and Behaviors to see the new code being used. I think that code should be simpler now.
Hi all, I'm working on a couple of GTC's for the Longitude and until the release of AAU1 yesterday, the three rotary encoders worked fine.
So, is it 'just' a matter of using the DevMode to check the behaviors and see what new events are available, and add them as presets in Hubhop, to be able to import them in MF?
If that's correct, where can I find the code that needs to be inserted in code field of the preset?
Happy to help bringing the MSFS APIs to HubHop!
Thanks!
Since SU5, a lot of the code is contained in B: events that you can see in Behaviors, Input Events tab. Make sure to uncheck the "Minimize data on Load" and press the "Reload user container" button. Otherwise, you won't see any code.
We don't have access to calling the B: event from Mobiflight, but most times, the underlying code used can be run.
We also don't have any access to O; or I: variables often used for controlling animation and gauges.
Thanks Jaime, they are indeed a B: events. I'll see if I can make them to work
Not working:
- IAS / Mach button
- map range encoder + button
I’ll focus on the GTC buttons first and then see if I can get others to work too, like electronics and autopilot. There is so much great stuff in the Longitude APIs for using in home cockpits. However, it would be easiest if MF would support those B: events etc.
Just for info, the Nav Light and Beacon are now in automated mode, yes you can switch them, but they are powering on by itself depended on aircraft status.
And now you can not find this buttons on Light panel, they are hidden in aircraft setup under Lights section.
It is not a Mobiflight issue, it's Asobo. Nobody has access to those events. Please all members of the community, if you haven't done so, go upvote the Mobiflight wish to Asobo/MS to provide access to all simulator airplane states.
https://forums.flightsimulator.com/t/enhanced-api-to-access-all-aircraft-state-and-trigger-all-cockpit-functions/454608
Hello everyone, my name is Sebastian, I am the creator and maintainer of the Open Source project “MobiFlight” and I want to promote the following request: As a “home cockpit builder” and/or “cockpit tool creator” I have access to all aircraft state and I am able to trigger all available cockpit functions by using a stable, user-friendly and dev...
Wow, got it Jaime and I have immediately upvoted the request.
Voted too...
I’m progressing with the GTC buttons and noticed that the left button is no longer a rotary encoder, but a joystick. Does anybody has a suggestion for a joystick I can use in my home GTC’s?
I found the AZDelivery KY-23 on Amazon. It works with Arduino, but is it also supported by MobiFlight? https://www.amazon.nl/AZDelivery-Joystick-compatibel-Arduino-Inclusief/dp/B07V3HQSVY?language=en_GB
AZDelivery Joystick Breakout Module KY-023 Cabling of the joystick 5V is connected to 5V on the microcontroller GND is connected to GND VRx is connected to A1 VRy is connected to A0 MS is connected to D7 Application: The breakout module for your playful microcontroller project: with our AZDeliver...
Hi @jovial frost ,
From the forum, I understand that you are good at RPN, can you maybe help me out with the below RPN code?
p0 p0 sp0
l0 0 == if{
(O:_PressTime) 0 > if{
(E:SIMULATION TIME, second) (O:_PressTime) - 2 < if{
(>H:AS3000_TSC_Vertical_2_RightKnob_Push) 0 (>O:_PressTime)
} els{
(>H:AS3000_TSC_Vertical_2_RightKnob_Push_Long) 0 (>O:_PressTime)
}
}
}
l0 1 == if{
(E:SIMULATION TIME, second) (>O:_PressTime) p1 (>O:_PressForDuration)
}
This code comes from the Behaviors Debug screen and is used to either switch between COM1 and COM2, or, in case the button is pressed longer than 2 seconds, to swap the Stand by/Active frequency for the currently selected COM radio. I added it in HubHop as the AS3000_TSC_Vertical_2_Right_Inner_Knob_Button preset and, after downloading it in MobiFlight, assigned it to the button of a (dual) rotary encoder. Unfortunately, this does not work; nothing happens with a short and long push of the button.
Can you please have a look at it?
Thanks in advance!
Lex
Hi. First of all, there is currently no long press support in Mobiflight, but there is a way using RPN.
Second, there is no access to O:, I: or B: type variables and events.
I wrote a tutorial for short, long and double press events in the Github wiki
Try this
On press
(E:SIMULATION TIME, second) 2 + (>L:myTimer)
On Release
(E:SIMULATION TIME, second) (L:myTimer) < if{ (>H:AS3000_TSC_Vertical_2_RightKnob_Push) } els{ (>H:AS3000_TSC_Vertical_2_RightKnob_Push_Long) }
Thanks for your prompt reply @jovial frost! You mentioned indeed that currently we cannot access the O:, I: or B: type variables and events, I forgot about that. Still, I felt indeed that with RPN simulating a long push event could be possible. I'll give your code a go.
Please correct your entries in Hubhop. You should have a Press and Release event. Make sure to comment the need to use both in the description field.
Sure @jovial frost, on top of my head, I called them onPress and onRelease. So you want me to call them just …Press and …Release without ‘on’?
yes, please
No worries, just got home, but I’ll probably do it tomorrow. Hope that’s fine
@narrow silo THANKS! for working on the hubhop entries for the GTCs. I was trying to figure how to make the MFD zoom in/out work but couldn't figure out how to find the variables/events. The map zooms work using the new entries...
Very welcome @glad gust ! Great that it works now! I have done most/if not all presets for the Vertical_1 (left PFD) and Vertical_2 (left MFD). I'll explore the existing presets, and after adding any missing presets, I'll continue with the Vertical_3 and _4.
This is done @jovial frost
By the way, it looks like they missed exposing the Joystick button push... Hope this will be fixed
Good job! The GTC Joystick for Map Range +/- is working!
And anyone... you???.... did a IAS button working
Hi I've had the problem with the Longitude since AAU1 that my parking brake on the SD no longer works (PARKING_BRAKES/ BRAKE PARKING POSITION) I've also tried (PARKING_BRAKE_SET/ BRAKE PARKING POSITION) that only works in one direction either on or off?
Hi, you must have something wrong with your config.
This works for me in Mobiflight to toggle parking brakes in the Cessna Longitude
(>K:PARKING_BRAKES)
the standard A: var also works for output
(A:BRAKE PARKING INDICATOR, bool)
I also tested
0 (>K:PARKING_BRAKE_SET)
and
1 (>K:PARKING_BRAKE_SET)
they work as expected