Developer

Joystick control of ArduPlane not working

Hi Guys,

I was trying to setup a Logitech Attack3 joystick for manual control of my APM running the latest ArduPlane 2.4 firmware.

I'd like to mention that I have NO R/C system connected to the APM (I don't even own one). Perhaps this is the problem. If it is so, I think you guys might be able to provide me with a solution with the below problem.

I opened Mission Planner after attaching the joystick and opened the joystick panel. After setting it up, all the axes worked perfectly. I had previously calibrated the joystick in Windows.

But, when I connect to the APM via through Xbee @ 57600 baud, the joystick control stops working. The values in the panel revert and freeze. No joystick inputs are taken. APM status tab shows all the R/C override channels to be permanently set at 1500 PWM. Tried via USB and same problem.

One important thing here, the buttons keep working even after connecting, probebly because they are not overriding the R/C channels.

I have to close and reopen Mission Planner to get joystick functions back, but only till the APM is not connected.

Please HELP!!

Kabir

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

Join diydrones

Email me when people reply –

Replies

  • Has there been any update on this? I am having a very similar issue.

    I have an Xbox 360 controller, and a 3DR radio. I do own a RC transmitter though.

    The issue is similar though: the joystick shows full range on all axes, but when I connect via 3DR radio or USB the range is greatly reduced (eg, roll: 1452-1504) on some axes (not all, and it seems to be random). RC control does not seem to be able to override it.

    I've tried this on multiple computers as well.

  • Developer

    Just an update for you guys, Joystick control works perfectly with Micheal's mods in the code.

    A problem that I seem to have, even after calibrating the joystick in windows and in MP via Radio Calibration, there seems to some dead zone around the servos. I manually set the dead zone to 1 on all the channels, but if 1 elevon channel gets fixed, the other gets messed up.

    In auto mode, the elevons are in their mean position, but switching to manual (joystick) deflects any one elevon by 8 - 9 degrees.

    Setting all the MAX-MIN value to 2000-1000 and trim to 1500 results in the same problem. This is a recent problem, and had not happened before. 

    Would appreciate any help on this.

  • Monroe,

    Thanks for all the help, I'll buy all the bits this week and report back in a next weekend to see if the setup works :-)

  • Monroe,

    Thanks for the quick reply. I'm getting rid of my rc and I am going to try to get 10km from the 3DR radio's i seen somewhere that they have already got 7.6km+

    If I reduce the telemetry refresh will this slow down the tracking on my Antenna tracker? 

    Thanks for all the help again 

  • Is this the correct way to set up the APM 1 for joystick control only? My RC isn't great anymore and i would like to swap over to just using the joystick but didn't know how to do it.

    Do you just edit the code in the arduino interface?

  • Were you able to get it working without a R/C? I have only a joystick and do not even own a radio either. I have the same problem as you.

  • Developer

    to use it without a transmitter you will need to override a few things. mainly the radio trim

     

    in system.pde line 320

    trim_radio(); needs to be removed so the trim center point dont change each reboot.

     

    you will also need to manual put start and end point on all the first 4 radio channels.

    RC1_MIN = 1000

    RC1_MAX = 2000

    RC1_TRIM = 1500

    NOTE you can overdrive servos if your not carefull with these values 

    if you do that for all channels you should be able to control it using the joystick without any rc.

This reply was deleted.

Activity

DIY Robocars via Twitter
RT @chr1sa: Donkeycar 4.4 released with tons of new features, including path learning (useful with GPS outdoors), better Web and Lidar supp…
Nov 27, 2022
DIY Robocars via Twitter
RT @NXP: We are already biting our nails in anticipation of the #NXPCupEMEA challenge! 😉 Did you know there are great cash prizes to be won…
Nov 24, 2022
DIY Robocars via Twitter
RT @gclue_akira: レースまであと3日。今回のコースは激ムズかも。あと一歩 #jetracer https://t.co/GKcEjImQ3t
Nov 24, 2022
DIY Robocars via Twitter
UC Berkeley's DIY robocar program https://roar.berkeley.edu/
Nov 24, 2022
DIY Robocars via Twitter
RT @chr1sa: The next @DIYRobocars autonomous car race at @circuitlaunch will be on Sat, Dec 10. Thrills, spills and a Brazilian BBQ. Fun…
Nov 24, 2022
DIY Robocars via Twitter
RT @arthiak_tc: Donkey car platform ... Still training uses behavioral cloning #TCXpo #diyrobocar @OttawaAVGroup https://t.co/PHBYwlFlnE
Nov 20, 2022
DIY Robocars via Twitter
RT @emurmur77: Points for style. @donkeycar racing in @diyrobocars at @UCSDJacobs thanks @chr1sa for taking the video. https://t.co/Y2hMyj1…
Nov 20, 2022
DIY Robocars via Twitter
RT @SmallpixelCar: Going to @diyrobocars race at @UCSDJacobs https://t.co/Rrf9vDJ8TJ
Nov 8, 2022
DIY Robocars via Twitter
RT @SmallpixelCar: Race @diyrobocars at @UCSDJacobs thanks @chr1sa for taking the video. https://t.co/kK686Hb9Ej
Nov 8, 2022
DIY Robocars via Twitter
RT @PiWarsRobotics: Presenting: the Hacky Racers Robotic Racing Series in collaboration with #PiWars. Find out more and register your inter…
Oct 23, 2022
DIY Robocars via Twitter
RT @Hacky_Racers: There will be three classes at this event: A4, A2, and Hacky Racer! A4 and A2 are based around UK paper sizing and existi…
Oct 23, 2022
DIY Robocars via Twitter
Oct 23, 2022
DIY Robocars via Twitter
Oct 19, 2022
DIY Robocars via Twitter
Oct 18, 2022
DIY Robocars via Twitter
RT @NeaveEng: Calling all UK based folks interested in @diyrobocars, @f1tenth, @donkey_car, and similar robot racing competitions! @hacky_r…
Oct 13, 2022
DIY Robocars via Twitter
RT @araffin2: 🏎️ After hours of video editing, I'm happy to share a best of my Twitch videos on learning to race with RL. 🏎️ Each part is…
Oct 13, 2022
More…