I have 2 problems with the Ardupilot Mega 1.
Since 2 days I am struggling with it.
1. When hovering, it sometimes makes a turn at the yaw axis for
several degrees. It is a quick turn, like jerk for about 20-30degrees.
When I use the terminal test functions and enter compass, it shows me
a lot of good values, and then some lines with "not healthy" and
sometimes wrong values.
When I remove the GPS module, it works fine. Now "not healthy"
messages, and in flight, it does well.
2. When I setup PID values for the first time, I used the channel 6
function to tune the values in flight. This worked very well. Now,
since 2 days, it does not work any more. When I set a value on channel
6 and set the range for example to 3 as minimum and 7 as maximum, than
use the pot on my transmitter to change the value, the value becomes 0
or 7. Nothing between.
Do you have any idea what could cause this problems?
What could I do?
kind regards
Helmut
Replies
Hello Cliff and Mike and the others that are reading this.
It seems, that I am a real donk. After lots of testing and writing to several forums and reading a lot of articles, tody I discovered the reason for the compass not healthy problem.
I red the assembly article in the wiki, as I did on the first time. I setup the APM1. Then I saw this :"Finally, attach your GPS module as shown below (MediaTek module shown). It goes in the connector on the APM board, not the similar one on the IMU shield (that one, which says "No GPS!", is an I2C connector for the optional magnetometer or other I2C sensor)."
The first time I setup the APM1 I did it right, but now, when I unplugged everything and reconnected everything I forgott to connect the gps to the lower board. I connected it to the upper blue board. Now everything is fine and works like a charm.
Sorry for my dullness and sorry for bothering you all.
yaw issues are 9 out of 10 times compass related.
a. disable the compass & gps. if yaw is solid then lots of possibilities. If it still yaws, then it's ESCs, motors, or PIDs. And check in that order (ESC throttle cal, motor axis angles/bad props, yaw rate P). If it flies solid, then it's usually a power or interference issue (especially the 'not healthy' message).
b. if you re-enable the compass and the problem reappears--the not healthy says 2 things:
power, magnetic interference, or i2c interference (yes, it's present with a 900Mhz telemetry), Check in that order.
+ power: ensure the compass is getting 4.985V or higher at the Vref/Gnd pads of the compass module. Anything lower will cause the "not-healthy" issue (had 2 boards with that problem). Also check for cracked/releasing pads--the compass connection is NOT robust. (Also the telem port ground connect is not robust as well!). If you're getting undervolts, then you can check the air speed port or telem port for a good 5V and wire tap them to the compass directly to power it--have fixed one board this way & it's a hack solution...
I doubt the i2C connections are bad, but you may want to check continuity between the SC lines to the back side of the APM (not oil pan) pins.
+ mag interference: take your props off. connect the APM to mission planner, record the compass reading in the HUD disarmed. Arm your motors and power up to 40% throttle. If the compass drifts more than 10degs--mag interference is your problem. Move power wires and ESCs away from the oil pan... repeat until you hardly get any drift.
+ i2c interference: move your RF equipment away from the APM.
Hope that helps...