Can anyone point me where to dig into the gimbal code? I am considering building a small gimbal for my FPV quad (see this thread for reference), and would like to use the built in gimbal controls on the APM. However, the way that this simple gimbal works, servo mixing would be required since both servos are used for both axes. I think that it would simply be a change in the math on the servo output - I really wouldn't need to modified how the gimbal control laws operate.
So, in sum, where should I started looking and tweaking? I haven't been able to find anything in the source, but I am somewhat novice in changing this code.
Thanks,
Jonathan
Tags:
Permalink Reply by Jonathan M on December 30, 2012 at 5:26pm Sorry.. this is what I am trying to build: http://www.rcgroups.com/forums/showthread.php?t=1793759
And I want to use my APM2 to control it
Permalink Reply by Luke Olson on January 2, 2013 at 4:29am That's a neat little "gimbal" thing. You can get the source code for ArduCopter from the Google Code site for the project.
http://code.google.com/p/arducopter/downloads/detail?name=ArduCopte...
Most people use the Arduino IDE but there are other options available if you don't like it.
http://arduino.cc/en/main/software
I have tinkered with the source code for troubleshooting a bad APM but not sure where exactly the gimbal code is, but it's there somewhere!
Permalink Reply by Jonathan M on January 6, 2013 at 11:48pm Thanks, I do have the source code. I was hoping for some pointers on where to attack the gimbal code. Maybe it's more of just adding a servo mixer code than modifying the gimbal code.
I am not really a programmer, but I have an idea on how the actual mixing should work. I would think that there is already existing code that should exist since the Arduplane project for sure would have servo mixing.
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.671 members
1280 members
8 members
182 members
15 members
© 2013 Created by Chris Anderson.
Powered by
