Joystick Button Configuration

I have an old joystick hooked up and am just using it for the buttons. (eventually want to build a custom panel for a GCS)

I have it figured out to use the buttons to Arm/Disarm and Change the modes, but I was hoping there would be more options to select from. I want to use the Joystick buttons to do some of then things you can set Ch7 and Ch8 outputs to do. Like enable, the GeoFence, or turn on Simple and Super Simple mode, or reset to the Armed Yaw, etc. 

Is there any way to map a joystick button to these functions? I realize a button is momentary, while a TX switch is on-off, but I was hoping there still might be a way. For example push a button once to enable simple mode, and push it again to disable it. 

Any help would be appreciated. 

Thanks,

Tom

You need to be a member of diydrones to add comments!

Join diydrones

Email me when people reply –

Replies

  • I think the answer might be to use a Python Script with Mission Planner. Autohotkey could then be setup to run the script.

    Cheers,

    Sam

  • Sorry Tom, I thought this would be a bit easier. The only keyboard short-cuts that I've found are as follows:

    • F12 – disconnect or connect from/to USB or Telemetry
    • F5 – Refresh parameters
    • F2 – change to Flight Data tab
    • F3 – change to Flight Planner tab
    • F4 – change to Configuration tab
    • F5 – Refresh parameter list
    • CTL-G Nmea Output
    • CTL-W Wizard config interface

    I guess it would be a fairly easy update but my programming skills are worse than my piloting skills.

    Sam

  • Tom,

    You could set up macros using Autohotkey. As long as there is a keyboard function or sequence of keyboard functions for whatever you are trying to do, you should be able to write a short script with Autohotkey to accomplish the action.

    There are alternatives, but Autohotkey is quite powerful.

    Sam

    • Is there some documentation as to what keyboard function are available in Mission Planner?

This reply was deleted.

Activity

DIY Robocars via Twitter
How to use the new @donkey_car graphical UI to edit driving data for better training https://www.youtube.com/watch?v=J5-zHNeNebQ
Monday
DIY Robocars via Twitter
RT @SmallpixelCar: Wrote a program to find the light positions at @circuitlaunch. Here is the hypothesis of the light locations updating ba…
Saturday
DIY Robocars via Twitter
RT @SmallpixelCar: Broke my @HokuyoUsa Lidar today. Luckily the non-cone localization, based on @a1k0n LightSLAM idea, works. It will help…
Thursday
DIY Robocars via Twitter
@gclue_akira CC @NVIDIAEmbedded
Nov 23
DIY Robocars via Twitter
RT @luxonis: OAK-D PoE Autonomous Vehicle (Courtesy of zonyl in our Discord: https://discord.gg/EPsZHkg9Nx) https://t.co/PNDewvJdrb
Nov 23
DIY Robocars via Twitter
RT @f1tenth: It is getting dark and rainy on the F1TENTH racetrack in the @LGSVLSimulator. Testing out the new flood lights for the racetra…
Nov 23
DIY Robocars via Twitter
RT @JoeSpeeds: Live Now! Alex of @IndyAChallenge winning @TU_Muenchen team talking about their racing strategy and open source @OpenRobotic…
Nov 20
DIY Robocars via Twitter
RT @DAVGtech: Live NOW! Alexander Wischnewski of Indy Autonomous Challenge winning TUM team talking racing @diyrobocars @Heavy02011 @Ottawa…
Nov 20
DIY Robocars via Twitter
Incredible training performance with Donkeycar https://www.youtube.com/watch?v=9yy7ASttw04
Nov 9
DIY Robocars via Twitter
RT @JoeSpeeds: Sat Nov 6 Virtual DonkeyCar (and other cars, too) Race. So bring any car? @diyrobocars @IndyAChallenge https://t.co/nZQTff5…
Oct 31
DIY Robocars via Twitter
RT @JoeSpeeds: @chr1sa awesomely scary to see in person as our $1M robot almost clipped the walls as it spun at 140mph. But it was also awe…
Oct 29
DIY Robocars via Twitter
RT @chr1sa: Hey, @a1k0n's amazing "localize by the ceiling lights" @diyrobocars made @hackaday! It's consistently been the fastest in our…
Oct 25
DIY Robocars via Twitter
RT @IMS: It’s only fitting that @BostonDynamics Spot is waving the green flag for today’s @IndyAChallenge! Watch LIVE 👉 https://t.co/NtKnO…
Oct 23
DIY Robocars via Twitter
RT @IndyAChallenge: Congratulations to @TU_Muenchen the winners of the historic @IndyAChallenge and $1M. The first autonomous racecar comp…
Oct 23
DIY Robocars via Twitter
RT @JoeSpeeds: 🏎@TU_Muenchen #ROS 2 @EclipseCyclone #DDS #Zenoh 137mph. Saturday 10am EDT @IndyAChallenge @Twitch http://indyautonomouschallenge.com/stream
Oct 23
DIY Robocars via Twitter
RT @DAVGtech: Another incident: https://t.co/G1pTxQug6B
Oct 23
More…