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
Sep 9
DIY Robocars via Twitter
RT @chr1sa: We've got another virtual @DIYRobocars race tomorrow at 9:00am PT. Two dozen autonomous cars will compete, four at a time. Ther…
Sep 4
DIY Robocars via Twitter
Sep 1
DIY Robocars via Twitter
Aug 31
DIY Robocars via Twitter
Aug 31
sam liked Jimmy Oliver's profile
Aug 25
DIY Robocars via Twitter
RT @ExplorerRobocar: Sometimes, I am really a big kid!! Having fun with my virtual RC car on the @diyrobocars track 😜😉, by using the « AR R…
Aug 24
DIY Robocars via Twitter
RT @grepLeigh: @donkey_car @unity3d @TensorFlow ~1050 episodes into training, my agent learned to erratically drive in the left lane. 🤖😆 ht…
Aug 24
DIY Robocars via Twitter
RT @EclipseCyclone: Sweet! http://Robotec.ai high performance #ROS 2 @unity3d #CycloneDDS bridge for @AutowareFdn @SVLSimulator now…
Aug 24
DIY Robocars via Twitter
RT @a1k0n: My car had a lot of trouble getting around the track at the last @diyrobocars event -- only one actual finished lap during the r…
Aug 24
DIY Robocars via Twitter
RT @SmallpixelCar: This is the run time map https://t.co/VzykOkUt2G
Aug 24
DIY Robocars via Twitter
RT @SmallpixelCar: Made a lot progress on Warm Spring Raceways track. Almost finished one lap. https://t.co/nUVpufZQyP
Aug 24
DIY Robocars via Twitter
RT @AntonioRobotics: Super fun time seeing these autonomous cars race at @circuitlaunch for the @diyrobocars quarterly meet up! The demolit…
Aug 15
DIY Robocars via Twitter
RT @a1k0n: I thought my dumb localization code was still working at the new @circuitlaunch track, but it was just *barely* working. I shoul…
Aug 14
DIY Robocars via Twitter
RT @DAVGtech: Recording of entire in person @diyrobocars race today @circuitlaunch. Fast forward a couple hours to go straight to the racin…
Aug 14
DIY Robocars via Twitter
RT @SmallpixelCar: This is the run time map. Very noisy Lidar signal https://t.co/bAbeVUMi10
Aug 14
More…