This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Motor Controller not detected
#1
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

Reply
#2
I am planning to add an option to openplotter to upgrade pypilot.
Reply
#3
(2019-07-24, 12:45 AM)rastam4n Wrote: 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


It seems you did not clone the pypilot repository. You only cloned pypilont_data
do 

Code:
git clone https://github.com/pypilot/pypilot
[url=https://github.com/pypilot/pypilot][/url]
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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)