I'm trying to use a Logitech Dual Action USB Gamepad to control my ArduCopter over telemetry. When I start APM 1.1.35 with no connection to the ArduCopter, the joystick screen shows correct operation. When I connect to the copter over either USB or TCP, the joystick screen suddenly starts displaying incorrect values for all of the joystick params. This persists after re-loading the ArduCopter firmware. Clearly I have screwy settings embedded somewhere, but I can't figure out where. Help?

Views: 992

Reply to This

Replies to This Discussion

check the documentation make sure what you think is channel 3 is really channel 3, that signal + and - are connected right, then measure pwm output voltage with a multimeter, it should change with ch(x)out. plug in different servos....oh one more thing check that the power rail does not dip, measure Vout, the 5V that is powering the servo
ah and in MP disable failsave to be sure its not kicking in.

has anyone got the tophat switch to control the camera? if so how thanks

Yeah, just set the hat's axes to Ch5/6/7 whatever in Mission Planner. Did this after installing Logitech Profiler though.

@rocketgeek, after checking Amazon for reviews of the Logitech gamepad, I saw this review which may explain some behavior. (other than that, I am just beginning to explore using a joystick, so I can't answer technical questions on this topic.)

thank you mohammed

Reference:

check the documentation make sure what you think is channel 3 is really channel 3, that signal + and - are connected right, then measure pwm output voltage with a multimeter, it should change with ch(x)out. plug in different servos....oh one more thing check that the power rail does not dip, measure Vout, the 5V that is powering the servo
ah and in MP disable failsave to be sure its not kicking in.

 

Thanks for the tips :), got it working. What I did was this:

1. I opened parameters and switched FS_GCS_ENABL=1 (it was =0)

2. I enabled the joystick and it worked, but radio didn't work at the same time.

3. I disabled the joystick but radio didn't work after that either

4. I opened parameters again and switched FS_GCS_ENABL=0 (it was=1)

5. After that everything worked again Joystick and Radio (only joystick when joystick enabled, only radio when joystick disabled)

So I was basically able to use Joystick and Radio with both setups FS_GCS_ENABL 1 or 0

After further testing.....

It seems that I have to change the FS_GCS_ENABL parameter to 1 or 0 to get the Joystick working, it seems like the write params/read params procedure somehow activates the Joystick.

I also had to turn the pitch to reverse on joystick setup to get the elevator working right way. With normal radio the reverse is not needed...

Is it always sure that the parameter is really activated in APM when it is changed?

Are you flying without a radio? This happens if there is no radio connected. If you are, you need to override the radio_trim() in code.

This joystick thing is now very confusing???

I have radio connected. When I enable joystick and move it the ch(x)in changes at the same time as the ch(x)out. So what is wrong with this system? If ch(x)out changes why doesn't the servos move? What prevents the movements of the servos?

@Veikko:  This link does not currently answer your questions. I am posting the link here to help tie "joystick" threads together on DIY Drones.

Hi, thanks for the info but I think it doesn't give me the solution. When I move the joystick the ch(x) output values move from about 1090 to 1900 and about 1500 in the middle. I really don't understand why the servos are not moving? How is it possible that I'm able to change the modes with the Joystick button but not able to move the servos? 

RSS

Social Networking

Contests

Season Two of the Trust Time Trial (T3) Contest has now begun. The fourth round is an accuracy round for multicopters, which requires contestants to fly a cube. The deadline is April 14th.

A list of all T3 contests is here

Advertisement

© 2013   Created by Chris Anderson.   Powered by

Badges  |  Report an Issue  |  Terms of Service