I haven’t had time to fly for a while so I’ve forgot some of the details about this problem. But I would really like to “debug” my copter today. So what I’m looking for is some advice on how to do it, and what more information I can supply here.
Sonar:
I’m using the MB1200 XL-MaxSonar. It was working great for a while then suddenly it stopped. I’ve tried it over multiple versions of the firmware still nothing. When I turn on the altitude hold it just stops and falls out of the sky. No clue way.
Compass:
I’m also having a lot of problems with the compass, it looks like it forgets what’s north, some kind of disturbance. So no chance of loitering. I’ve tried to get help before but not yet solved it
Any one?
Replies
Any help would be appreciated, now flying v2.3
Ok now i tried running the test found in the library folder, you can see the output in the shared folder.
Baro:
No erros with the logic analyzer
Mag:
Still no errors with the logic analyzer
Ok forget the (while motors are running), looks like I can get errors any time. But as of now it looks like they might be coming from the baro. I guess this will be a pain to replace. Any one got experience with this type of problem?? Or toughs on what might be causing this problem? Or if any one has run a logic analyzer on the I2C bus, have you been seeing errors?
I think the only time i did not have these problems was back when I was using the ArduPirates code. (that might just have been luck)
If you want to see the output it's under the link above.
motorrunning_error1.ols
OK so since the baro and compass is acting up it's pretty clear that this must be something on the I2C bus (I think). So I hooked up a logical analyzer, to see what was going on. If you want to see the result visit the link under. Have not had time to really dig in to it, but at least there is no errors. You can see bought the mag and baro data in the capture.
I also added images of the capture, for those not using OLS
data: https://spideroak.com/browse/share/MagAnalyz/0a98ufg90jodg
software: http://gadgetfactory.net/logicsniffer/index.php?n=LogicSniffer.Down...
Hi again
Finally had some time to work on my copter, and it got even more confusing.
As you guys suggested I resoldered all the connections for the sonar, still same problem.
I also replaced the magnetometer with a new one and resolderd the connections. But still have the same problems.
Everything else is working great no problems at all. Checked for shorts could not find any after visual inspection