Motor Controller not detected - 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: Motor Controller not detected (/showthread.php?tid=1904) |
Motor Controller not detected - rastam4n - 2019-07-24 Hi all I need some help So I finally installed my hydraulic motor and connected everything together but I am still getting the message that the there is no motor controller connected. I did a bit of trouble shooting and I think I see some errors but I have no idea how to fix them.. also the instructions for installing py.pilot on github give me an error so maybe someone could help me get past this as well? first off I am running an Rpi 3b+ with the moitesseir hat and seans Motor controller I have openplotter 1.2 installed and the correct moitessier hat drivers installed everything seems to be working except I do get a message that says there is no motor controller when I am using the opencpn py.pilot plugin and well the hydraulic pump in not being activated so I believe it... when I run the debug commands I first get this pi@openplotter:~ $ killall python pi@openplotter:~ $ pypilot_boatimu Settings file not found. Using defaults and creating settings file Using settings file RTIMULib.ini Detected MPU9250/MPU9255 at standard address Using fusion algorithm Kalman STATE4 IMU Name: MPU-925x min/max compass calibration not in use Using ellipsoid compass calibration Using accel calibration MPU-925x init complete ^Cgot signal 2 cleaning up8.421886611 heading 79.0645413484 got signal 2 cleaning up got signal 2 cleaning up got signal 15 cleaning up got signal 15 cleaning up why is there no settings file yet? and then I get this pi@openplotter:~ $ pypilot_servo Servo Server Traceback (most recent call last): File "/usr/local/bin/pypilot_servo", line 11, in <module> load_entry_point('pypilot==0.8', 'console_scripts', 'pypilot_servo')() File "/usr/local/lib/python2.7/dist-packages/pypilot-0.8-py2.7-linux-armv7l.egg/pypilot/servo.py", line 680, in main sensors = Sensors(server) NameError: global name 'Sensors' is not defined it seems to me that py.pilot has not been installed correctly? Can anyone shed some light on what may cause these errors and finally I thought I would try to install py.pilot from the github repository I managed to figure out how to install all the dependencies all though some of them were not found? anyhow that i will deal with later but what do I do when I get this error? why is py.pilot not a directory? I am following the instructions but they seem to be missing some steps? pi@openplotter:~ $ git clone --depth 1 https://github.com/pypilot/pypilot_data Cloning into 'pypilot_data'... remote: Enumerating objects: 12, done. remote: Counting objects: 100% (12/12), done. remote: Compressing objects: 100% (9/9), done. remote: Total 12 (delta 0), reused 10 (delta 0), pack-reused 0 Unpacking objects: 100% (12/12), done. pi@openplotter:~ $ cp -rv pypilot_data/* pypilot cp: target 'pypilot' is not a directory RE: Motor Controller not detected - seandepagnier - 2019-07-24 I am planning to add an option to openplotter to upgrade pypilot. RE: Motor Controller not detected - Native2k - 2019-07-31 (2019-07-24, 12:45 AM)rastam4n Wrote: Hi all I need some help It seems you did not clone the pypilot repository. You only cloned pypilont_data do Code: git clone https://github.com/pypilot/pypilot and you should be fine because that creates the pypilot directory wehre you try to copy the data to. After this just follow the instructions from the pypilot README. I had the same problem and updating pypilot from the git repo solved it for me. Good luck. |