Pypilot calibration fails - Printable Version +- OpenMarine (https://forum.openmarine.net) +-- Forum: Pypilot (https://forum.openmarine.net/forumdisplay.php?fid=17) +--- Forum: General discussion (https://forum.openmarine.net/forumdisplay.php?fid=18) +--- Thread: Pypilot calibration fails (/showthread.php?tid=3935) |
Pypilot calibration fails - kniven - 2022-02-25 Hi all. I'm trying to get my tinypilot to work. Since last time I used it, I have been trying some attempts to reinstall/build an updated version from GIT. This fails, however, and I have been rebuilding version (0.31, I believe) from the /pypilot folder on my toinypilot. When trying to run various scripts, I get some sort of error message. Typically: Code: tc@pypilot:~$ pypilot_calibration Code: tc@pypilot:~$ pypilot Any activation of the AP fails due to various overcurrent and rudder out of range messages... Any ideas where to start troubleshooting? Code: tc@pypilot:~$ pypilot_boatimu RE: Pypilot calibration fails - kniven - 2022-02-25 Code: $ ssh pypilot RE: Pypilot calibration fails - seandepagnier - 2022-02-25 The hint is: ModuleNotFoundError: No module named 'wx' Did you install python wx support either via apt or pip? What kind of rudder feedback and motor controller is connected? RE: Pypilot calibration fails - kniven - 2022-02-26 Thanks Sean. I will explain: 1: I ordered a new Tinypilot,, and the "large" motor controller from you, in September last year. You had to deviate from your typical setup, due to missing hardware (Quote: "What has happened is I no longer have any mpu9255 sensors, so switched to icm20948. The stable software doesn't support it, so I need to use new software." 2: I installed the AP on my boat. The boat is a Beneteau Oceanis 331, with a L&S hydraulic drive. The feedback sensor is from the previous AP, a B&G Network Pilot. There is also a clutch valve connected for bypassing the pump for manual steering. Everything worked perfectly fine, and the sailing performance was impressive! I was however, not able to fully connect to my SignalK data for wind input etc. so I deciced to try to upgrade to the latest version on Github. Thats when the troble started. I used the instructions from the wiki: Code: cd 3: The build (version 0.32) seemed to successfully complete, but when rebooting the AP, it never seems to fully complete the startup sequence. 4: Then I decided to try to download the latest image (https://pypilot.org/images/tinypilot_2021_11_16.img.xz) from here . So from here, everything originally on my SD card was lost. 5: With the new image, the AP boots correctly, but I'm having issues with the rudder feedback setup. Not able to get it setup correctly. 6: Your question, about whether I installed python wx support. The answer is that I have not (deliberately) tried to install any such module. So here I am. I'm sure there is an easy fix to all this. Just need some guidance. Is there something in the original setup (that you sent in september (v 0.31)) that was specifically customized to my TP, due to the off-spec icm20948? Or have I been fiddling with anything that makes my AP unhappy, even when downloading the latest code from git? Do you suggest that I download a new image file, and start from there? Best regards, Leif RE: Pypilot calibration fails - seandepagnier - 2022-02-26 (2022-02-26, 08:50 AM)kniven Wrote: Thanks Sean. I will explain:Correct, you need a more recent image version 0.3 and later Quote:2: I installed the AP on my boat. The boat is a Beneteau Oceanis 331, with a L&S hydraulic drive. The feedback sensor is from the previous AP, a B&G Network Pilot. There is also a clutch valve connected for bypassing the pump for manual steering. Everything worked perfectly fine, and the sailing performance was impressive! I was however, not able to fully connect to my SignalK data for wind input etc. so I deciced to try to upgrade to the latest version on Github. Thats when the troble started. I used the instructions from the wiki:Hmm strange. In this case, the step to take is check the log in /var/log/pypilot/current. Alternately stop pypilot service: $ sudo sv d pypilot then run pypilot directly and check the output $ pypilot Quote:4: Then I decided to try to download the latest image (https://pypilot.org/images/tinypilot_2021_11_16.img.xz) from here . So from here, everything originally on my SD card was lost.OK. There is no gui on tinypilot. I had thought you were installing pypilot on openplotter or another linux machine and trying to run the calibration scripts. For example: pypilot_calibration <tinypilot_ip> Quote:So here I am. I'm sure there is an easy fix to all this. Just need some guidance. Is there something in the original setup (that you sent in september (v 0.31)) that was specifically customized to my TP, due to the off-spec icm20948? Or have I been fiddling with anything that makes my AP unhappy, even when downloading the latest code from git?Can you try using that same image, and connecting to the web. For example http://192.168.1.102 From here it should be possible to calibrate the rudder feedback. That image should support rudder feedback without issues, maybe it just wasn't calibrated? Alternately, you could use the pypilot_calibration script, or even the opencpn plugin to calibrate the rudder feedback. It should also be possible using the remote control and lcd screen. So generally 4 methods. I am sorry about the issues you had upgrading, if you can check the log it would give hints, but the image you downloaded should be "ok" RE: Pypilot calibration fails - kniven - 2022-02-28 Thanks Sean. I'm away from my boat this week, but I will try in some days. BTW: I did manage to connect via the web-interface. And when trying to set the extremities of the rudder sensor, the reported position seemed correct +-30 degrees. But the error messages still indicated various issues. Will report back later this week. RE: Pypilot calibration fails - kniven - 2022-03-08 I managed to solve my problem, by rewriting the image. Will try to build from github anytime soon. RE: Pypilot calibration fails - vincenthure - 2023-11-18 (2022-02-25, 08:12 PM)seandepagnier Wrote: The hint is: How do you install python wx on tinylinux for tinypilot? Because I get the same bug (v 0.42) ! RE: Pypilot calibration fails - seandepagnier - 2023-11-19 wx doesnt run on tinypilot normally... it can but this requires using x and typically it is commandline only. pypilot_calibration is a python script gui interface to pypilot. You should run this locally on whatever computer you are using, or just use the web interface or opencpn plugin which both support the same features. |