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
Pypilot setup procedure?
#8
Ironman, the high level functional overview is super helpful for beginners so thanks a million for that and the workbook. I’ve followed your updated process. Enabled mdns but there’s no access request to approve. If I understand things correctly I shouldn’t need to manually add the connections in Pypilot if I’m using mdns but I tried it both ways and nothing. I then attempted to update Pypilot as shown in step 7 but “python setup.py build” returned a request to update python to version 3. I got it updated by blindly following a process I googled but now I get a file not found error shown in the screen grab. Below that is the terminal dump from before I tried updating Pypilot. I’m so far in the weeds  Big Grin

   

pi@openplotter:~ $ pypilot
loading servo calibration /home/pi/.pypilot/servocalibration
WARNING: using default servo calibration!!
Settings file RTIMULib.ini loaded
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
Loaded Pilots: ['learning', 'basic', 'absolute', 'simple', 'wind']
warning: failed to open special file /dev/watchdog0 for writing
         cannot stroke the watchdog
connected to gpsd
autopilot failed to read imu at time: 1616175732.210111
I2C read error from 12, 16 - Failed to read compass fuse ROM
ERROR: IMU Init Failed, no inertial data available
autopilot failed to read imu at time: 1616175732.380395
autopilot failed to read imu at time: 1616175732.5212145
autopilot failed to read imu at time: 1616175732.661924
autopilot failed to read imu at time: 1616175732.8027282
autopilot failed to read imu at time: 1616175732.944327
autopilot failed to read imu at time: 1616175733.08571
autopilot failed to read imu at time: 1616175733.2271347
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
autopilot failed to read imu at time: 1616175733.3687413
autopilot failed to read imu at time: 1616175733.5101938
I2C read error from 12, 16 - Failed to read compass fuse ROM
ERROR: IMU Init Failed, no inertial data available
autopilot failed to read imu at time: 1616175733.6516252
autopilot failed to read imu at time: 1616175733.7929516
autopilot failed to read imu at time: 1616175733.9345188
pypilot_server: bind failed; already running a server?
nmea ready for connections
nmea_bridge: bind failed.
got signal 17 cleaning up
Traceback (most recent call last):
  File "/usr/local/bin/pypilot", line 11, in <module>
got signal 15 cleaning up
got signal 15 cleaning up
Process gpsProcess-5:
    load_entry_point('pypilot==0.16', 'console_scripts', 'pypilot')()
  File "/usr/local/lib/python3.7/dist-packages/pypilot-0.16-py3.7-linux-armv7l.egg/pypilot/autopilot.py", line 395, in main
Process Process-3:
got signal 15 cleaning up
Process Process-1:
got signal 15 cleaning up
connect failed to localhost:21311
    ap.run()
  File "/usr/local/lib/python3.7/dist-packages/pypilot-0.16-py3.7-linux-armv7l.egg/pypilot/autopilot.py", line 214, in run
Process Process-2:
    self.iteration()
  File "/usr/local/lib/python3.7/dist-packages/pypilot-0.16-py3.7-linux-armv7l.egg/pypilot/autopilot.py", line 320, in iteration
    time.sleep(self.boatimu.period/10)
  File "/usr/local/lib/python3.7/dist-packages/pypilot-0.16-py3.7-linux-armv7l.egg/pypilot/autopilot.py", line 107, in cleanup
    raise KeyboardInterrupt # to get backtrace on all processes
KeyboardInterrupt
got signal atexit cleaning up
Traceback (most recent call last):
  File "/usr/lib/python3.7/multiprocessing/process.py", line 297, in _bootstrap
    self.run()
  File "/usr/lib/python3.7/multiprocessing/process.py", line 99, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/local/lib/python3.7/dist-packages/pypilot-0.16-py3.7-linux-armv7l.egg/pypilot/boatimu.py", line 85, in imu_process
    time.sleep(1)
  File "/usr/local/lib/python3.7/dist-packages/pypilot-0.16-py3.7-linux-armv7l.egg/pypilot/autopilot.py", line 107, in cleanup
    raise KeyboardInterrupt # to get backtrace on all processes
KeyboardInterrupt
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/dist-packages/pypilot-0.16-py3.7-linux-armv7l.egg/pypilot/server.py", line 209, in HandleRequests
    self.server_socket.bind(('0.0.0.0', self.port))
OSError: [Errno 98] Address already in use

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.7/multiprocessing/process.py", line 297, in _bootstrap
    self.run()
  File "/usr/lib/python3.7/multiprocessing/process.py", line 99, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/local/lib/python3.7/dist-packages/pypilot-0.16-py3.7-linux-armv7l.egg/pypilot/pipeserver.py", line 146, in pipe_server_process
    server.HandleRequests()
  File "/usr/local/lib/python3.7/dist-packages/pypilot-0.16-py3.7-linux-armv7l.egg/pypilot/server.py", line 212, in HandleRequests
    time.sleep(1)
  File "/usr/local/lib/python3.7/dist-packages/pypilot-0.16-py3.7-linux-armv7l.egg/pypilot/autopilot.py", line 107, in cleanup
    raise KeyboardInterrupt # to get backtrace on all processes
KeyboardInterrupt
got signal 17 cleaning up
Error in atexit._run_exitfuncs:
Traceback (most recent call last):
Traceback (most recent call last):
  File "/usr/lib/python3.7/multiprocessing/popen_fork.py", line 28, in poll
  File "/usr/lib/python3.7/multiprocessing/process.py", line 297, in _bootstrap
    self.run()
  File "/usr/lib/python3.7/multiprocessing/process.py", line 99, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/local/lib/python3.7/dist-packages/pypilot-0.16-py3.7-linux-armv7l.egg/pypilot/gpsd.py", line 66, in gps_process
    self.read(pipe)
  File "/usr/local/lib/python3.7/dist-packages/pypilot-0.16-py3.7-linux-armv7l.egg/pypilot/gpsd.py", line 39, in read
    gpsdata = self.gpsd.next()
  File "/usr/local/lib/python3.7/dist-packages/gps/gps.py", line 301, in next
    return self.__next__()
  File "/usr/local/lib/python3.7/dist-packages/gps/gps.py", line 292, in __next__
    if self.read() == -1:
  File "/usr/local/lib/python3.7/dist-packages/gps/gps.py", line 281, in read
    status = gpscommon.read(self)
  File "/usr/local/lib/python3.7/dist-packages/gps/client.py", line 115, in read
    frag = self.sock.recv(8192)
    pid, sts = os.waitpid(self.pid, flag)
  File "/usr/local/lib/python3.7/dist-packages/pypilot-0.16-py3.7-linux-armv7l.egg/pypilot/autopilot.py", line 107, in cleanup
    raise KeyboardInterrupt # to get backtrace on all processes
  File "/usr/local/lib/python3.7/dist-packages/pypilot-0.16-py3.7-linux-armv7l.egg/pypilot/autopilot.py", line 107, in cleanup
KeyboardInterrupt
    raise KeyboardInterrupt # to get backtrace on all processes
KeyboardInterrupt
Traceback (most recent call last):
  File "/usr/lib/python3.7/multiprocessing/process.py", line 297, in _bootstrap
    self.run()
  File "/usr/lib/python3.7/multiprocessing/process.py", line 99, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/local/lib/python3.7/dist-packages/pypilot-0.16-py3.7-linux-armv7l.egg/pypilot/calibration_fit.py", line 589, in CalibrationProcess
    client = pypilotClient(on_con, 'localhost', autoreconnect=True)
  File "/usr/local/lib/python3.7/dist-packages/pypilot-0.16-py3.7-linux-armv7l.egg/pypilot/client.py", line 98, in __init__
    connection.connect((host, port))
  File "/usr/local/lib/python3.7/dist-packages/pypilot-0.16-py3.7-linux-armv7l.egg/pypilot/autopilot.py", line 107, in cleanup
    raise KeyboardInterrupt # to get backtrace on all processes
KeyboardInterrupt
closing autopilot
Reply


Messages In This Thread
Pypilot setup procedure? - by SimonLew - 2021-03-19, 02:23 AM
RE: Pypilot setup procedure? - by ironman - 2021-03-19, 07:08 AM
RE: Pypilot setup procedure? - by ironman - 2021-03-19, 10:51 AM
RE: Pypilot setup procedure? - by hreuver - 2021-03-19, 12:24 PM
RE: Pypilot setup procedure? - by ironman - 2021-03-19, 04:23 PM
RE: Pypilot setup procedure? - by ironman - 2021-03-19, 06:14 PM
RE: Pypilot setup procedure? - by seandepagnier - 2021-03-19, 07:18 PM
RE: Pypilot setup procedure? - by SimonLew - 2021-03-19, 10:00 PM
RE: Pypilot setup procedure? - by ironman - 2021-03-19, 10:32 PM
RE: Pypilot setup procedure? - by SimonLew - 2021-03-20, 12:18 AM
RE: Pypilot setup procedure? - by ironman - 2021-03-20, 01:09 AM
RE: Pypilot setup procedure? - by SimonLew - 2021-03-20, 02:16 AM
RE: Pypilot setup procedure? - by ironman - 2021-03-20, 07:18 AM
RE: Pypilot setup procedure? - by SimonLew - 2021-03-20, 02:36 PM
RE: Pypilot setup procedure? - by xfactor99 - 2021-03-20, 03:56 PM
RE: Pypilot setup procedure? - by hreuver - 2021-03-20, 04:25 PM
RE: Pypilot setup procedure? - by SimonLew - 2021-03-20, 05:02 PM
RE: Pypilot setup procedure? - by ironman - 2021-03-20, 10:01 PM
RE: Pypilot setup procedure? - by SimonLew - 2021-03-20, 10:22 PM
RE: Pypilot setup procedure? - by SimonLew - 2021-03-21, 03:20 PM
RE: Pypilot setup procedure? - by seandepagnier - 2021-03-21, 04:24 PM
RE: Pypilot setup procedure? - by SimonLew - 2021-03-21, 08:37 PM
RE: Pypilot setup procedure? - by seandepagnier - 2021-03-22, 07:51 PM
RE: Pypilot setup procedure? - by SimonLew - 2021-03-31, 03:08 AM

Forum Jump:


Users browsing this thread: 2 Guest(s)