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
Lost the option to select GPS mode
#1
Hi!

Been having some fun with this awesome little project the last couple of weeks, ups and downs.

Took me some time to figure out one of my main problems, the IMU. (Now using a MPU-6050 with HMC5883).

After that was sorted out I did some trials with PID tuning and everything was working great. I could create routes with opencpn on my laptop that was connected via the pypilot plugin and pypilot followed with great accuracy! What a time to be alive!
Both GPS mode and Compass mode was working without any issues.


A couple of days later while doing further tuning at sea, I noticed that I can no longer activate GPS mode. Everywhere I try, web-ui, pypilot plugin/client from opencpn, I can only select Compass mode.
The Pypilot plugin in opencpn doesn't even list anything else except Compass.

I've ran out of ideas to try and wonder if anyone can help me get the GPS mode working.
Tried the oldest and the newest tinypilot images, clean setup. And just to try rule it out, I replaced the Rasberry Pi Zero. (As it wasn't the same now as when everything was working)

My setup is a custom one (used parts from my early autopilot attempts + drones and other projects)
XY-160D motor controller (vnh2sp30 in motor.ino on arduino nano).
* custom IMU with a MPU-6050 and a connected HMC5883
* linear actuator (no potentiometer/feedback)
* PI Zero W

Logs from console (running pypilot interactively)

Code:
autopilot start 1418.13315
ERROR loading wind.py cannot import name 'HeadingOffset'   cannot import name 'HeadingOffset'
ERROR loading gps.py cannot import name 'HeadingOffset'   cannot import name 'HeadingOffset'
imu process 4189
made imu process realtime
Using settings file RTIMULib.ini
Settings file RTIMULib.ini loaded
Detected MPU9150 at standard address
Using fusion algorithm Kalman STATE4
IMU Name: MPU-9150
min/max compass calibration not in use
Using ellipsoid compass calibration
Using accel calibration
warning, failed to make calibration process idle, trying renice
nmea process 4196
listening on port 20220 for nmea connections
loading servo calibration /home/tc/.pypilot/servocalibration
WARNING: using default servo calibration!!
gps process 4198
Detected MPU-6050 with HMC5883
Available Pilots: ['simple', 'basic', 'absolute']
warning: failed to open special file /dev/watchdog0 for writing
        cannot stroke the watchdog
pypilotServer process 4201
autopilot init complete 1419.668622
servo probe ('/dev/serial/by-id/usb-FTDI_FT232R_USB_UART_AI02PMX6-if00-port0', 38400) 1419.699065
MPU9150 init complete
server/client is running too _slowly_ 0.06582600000001548
server setup has 5 pipes
server add socket ('127.0.0.1', 55400)
imu rate set to rate 20
read imu running too _slowly_ 0.05076099999996586 0.05
setting initial gyro bias [0.38, -2.105, -0.173]
imu rate set to rate 20
server add socket ('127.0.0.1', 55402)
server add socket ('192.168.14.74', 49464)
arduino servo found ['/dev/serial/by-id/usb-FTDI_FT232R_USB_UART_AI02PMX6-if00-port0', 38400]
serialprobe success: /home/tc/.pypilot/servodevice ['/dev/serial/by-id/usb-FTDI_FT232R_USB_UART_AI02PMX6-if00-port0', 38400]
EEPROM SIGNATURE ok
too long write pipe 0.02442002296447754 pypilotServer pipe0[1] 698
server add socket ('127.0.0.1', 55404)
server, remove socket ('127.0.0.1', 55402)
server, remove socket ('127.0.0.1', 55404)
read imu running too _slowly_ 0.029142999999976382 0.05
gpsd connected
GPSD devices []
server add socket ('127.0.0.1', 55408)
server add socket ('127.0.0.1', 55410)
sensors is running too _slowly_ 0.34602499999982683
signalk process 4197
signalkread token eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJkZXZpY2UiOiJweXBpbG90LTI1MTcwMjk3NDg5IiwiaWF0IjoxNjI4MjQ0MjkyLCJleHAiOjE2NTk4MDE4OTJ9.64SjpKncbuBgWYlyWYfFQ9JCkl9TOO-4OOVpBPRgG6s
nmea client invalid value 192.168.7.65.77777
calibration loaded, starting 4188
read imu running too _slowly_ 0.026904999999942447 0.05
read imu running too _slowly_ 0.030866000000060012 0.05
read imu running too _slowly_ 0.02627800000004754 0.05
read imu running too _slowly_ 0.025616000000127315 0.05
read imu running too _slowly_ 0.03086099999995895 0.05
Reply


Messages In This Thread
Lost the option to select GPS mode - by tax - 2022-08-04, 12:59 PM
RE: Lost the option to select GPS mode - by tax - 2022-08-04, 08:29 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)