How do I switch between transponder "modes" in mobiflight?

I’ve been sometimes forgetting to turn the transponder on during flight so I’ve connected up a mega I had laying around with mobiflight to see if I can do two things.

  1. Display if transponder is “on” (which to me means ALT), If on (state 4) I have this outputting to a simple LED. Simple but it works. No problem here.
  2. Turn the transponder “on”(state 4 alt) or “off” (stdby) with a simple toggle switch so I don’t have to use the mouse to manipulate the soft keys on the G1000. All I am finding are offsets that manipulate the frequency of the transponder, not mode. How do I get around this?

I’m, not at home to look it up atm, but look into the mobiflight WASM module folder in your community folder under SimObjects (I think). Somewhere in there will be an events.txt file and it has every Mobiflight even listed, including the commands you’re specifically looking for.

At least I THINK they’ll work. I know they’re used by my Air Manager KT76 Transponder for my C172. Not sure if that will work with the G1000.

Thanks. I found this under KT76C. “TransponderALT#(>H:TransponderALT)”

I’m not sure what to do with this.

I kind of figured a clever way out within mobiflight although it has one potential flaw.

I have this momentary tact switch set up on a breadboard and I created three inputs specifically for this button within mobiflight. The first input hits softkey 8(xpdr) on press then softkey 5(alt) on release. The second input presses softkey 11(back) on release to back out of the xpdr menu. The third input hits softkey 8 then 3 on release with a precondition that the transponder is already on. This allows me to toggle the transponder on and off with just one tact button. This seems to work but of course there’s the obvious part where you have to be on the “outer” softkey menu on the PFD otherwise you may end up hitting unwanted keys. This is what it looks like. https://www.youtube-nocookie.com/embed/s_P3aP1k7Io

I think it would be handier to just set up a series of 12 push buttons and use Mobiflight to assign them to softkeys 1-12. That way you could control all your G1000 softkey functions.

Man, it gets complicated when you have external hardware. Glad I went the Air Manager route. It simplifies things greatly.

Hey that’s a cool idea for using the onPress/onRelease events!

Naturally. I intend to have some sort of “controller” set up for the G1000 as you suggest eventually to rely less on the mouse. I anticipate this will be the biggest project for me yet so I’m just sticking with the important functions I use commonly for right now. Already have the electrical panel and throttle quadrant built.

Up until then I had never used the events, going into this I didn’t know what people used them for.

well typically you want to connect buttons and assign different input actions - for onPress and onRelease. Typically a button would have one event assigned, eg for onRelease. Switches often have two actions assigned, light on on onPress, light off onRelease - or something similar