#Update - G3000 & Cessna Citation Longitude

1 messages · Page 1 of 1 (latest)

frosty saffron
#

Hello, there is out a update for G3000 & Cessna Citation Longitude.
Some things are not working in MobiFlight, as assumed 😉

And where the heck should I adjust the one of trims before flight?
Because I have "No Takeoff" of plane🤔

And also, almost everything is new, so... Learn again to flight this 🤓

jovial frost
#

Time to dig into Dev Mode and Behaviors to see the new code being used. I think that code should be simpler now.

narrow silo
#

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!

jovial frost
#

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.

narrow silo
#

Thanks Jaime, they are indeed a B: events. I'll see if I can make them to work

frosty saffron
#

Not working:

  • IAS / Mach button
  • map range encoder + button
narrow silo
#

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.

frosty saffron
#

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.

jovial frost
# narrow silo I’ll focus on the GTC buttons first and then see if I can get others to work too...

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

narrow silo
#

Wow, got it Jaime and I have immediately upvoted the request.

clear storm
#

Voted too...

narrow silo
#

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?

narrow silo
#

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

narrow silo
#

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

jovial frost
#

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) }

narrow silo
#

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.

jovial frost
narrow silo
#

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’?

jovial frost
#

yes, please

narrow silo
#

No worries, just got home, but I’ll probably do it tomorrow. Hope that’s fine

glad gust
narrow silo
#

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.

narrow silo
#

By the way, it looks like they missed exposing the Joystick button push... Hope this will be fixed

frosty saffron
#

Good job! The GTC Joystick for Map Range +/- is working!

frosty saffron
#

And anyone... you???.... did a IAS button working

copper root
#

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?

jovial frost
#

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