This shows you the differences between two versions of the page.
Last revision Both sides next revision | |||
troubleshooting [2018/09/27 17:42] 73.128.99.196 created |
troubleshooting [2018/09/27 17:53] 73.128.99.196 |
||
---|---|---|---|
Line 3: | Line 3: | ||
First completely disable the autotpilot from the openplotter gui. | First completely disable the autotpilot from the openplotter gui. | ||
- | [code] | + | <code> |
$ ps aux | grep python | $ ps aux | grep python | ||
- | [/code] | + | </code> |
- | Make sure there is no pypilot running | + | Make sure there is no pypilot running. You can usually kill it with |
+ | <code> | ||
+ | $ killall python | ||
+ | </code> | ||
+ | Take care because this command will kill all python processes | ||
+ | Now, to test only the imu sensors to ensure they are working correctly | ||
+ | <code> | ||
$ pypilot_boatimu | $ pypilot_boatimu | ||
+ | </code> | ||
- | You should see pitch roll yaw working | + | You should see pitch roll yaw working. Stop with Ctrl-c |
- | + | ||
- | next try: | + | |
+ | To test the motor controller | ||
+ | <code> | ||
$ pypilot_servo | $ pypilot_servo | ||
+ | </code> | ||
+ | You should see voltage current etc. Stop again with Ctrl-c | ||
- | You should see voltage current etc | + | Finally, try |
- | + | <code> | |
- | next try: | + | |
$ pypilot | $ pypilot | ||
+ | </code> | ||
- | + | If there are still no errors the autopilot should be working. Leaving this command running, in another terminal try: | |
- | If there are still no errors, in another terminal try: | + | <code> |
$ pypilot_control | $ pypilot_control | ||
$ pypilot_calibration | $ pypilot_calibration | ||
+ | </code> | ||
- | etc... | ||
If these fail to connect for some reason, pass them 127.0.0.1 (one | If these fail to connect for some reason, pass them 127.0.0.1 (one | ||
time should be enough after that they remember) | time should be enough after that they remember) | ||
+ | <code> | ||
$ pypilot_calibration 127.0.0.1 | $ pypilot_calibration 127.0.0.1 | ||
+ | </code> | ||
- | + | Report any errors or issues to the [[http://forum.openmarine.net/forumdisplay.php?fid=17|forum]] | |
- | Let me know how it goes, and if you get any error messages. | + |