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:
  • 1 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Pypilot web browser interface showing not connected
#5
In the original openplotter pypilot i had the motor controller connected. i could move the mpu9250 and the multimeter connected to the controller a/b would show voltage change. But no web interface as per this thread.

I did the git update on openplotter-pypilot.

I add the device and connection under openplotter->serial

Status:
pypilot Server: Connected
Servo Flags:
Autopilot Errors: no motor controller!
Web Server Latency: 5.4 ms

BUT when i goto pypilot->serial and add the /dev/ttyOP_pypilot which i created above...

pypilot Server: Disconnected
Servo Flags:
Autopilot Errors: no motor controller!
Web Server Latency: 6.2 ms

pypilot server is no longer accessible and still no motor controller.

It is most likely a serial connect to the controller issue.
I am using a usb to serial adapter cp2101. (was working before git update)
Here are some logs.

==> /var/log/daemon.log <==
Oct 24 11:53:12 pi4 pypilot[25439]: autopilot start 3224.213305151
Oct 24 11:53:12 pi4 pypilot[25439]: ERROR loading wind.py cannot import name 'HeadingOffset' from 'pypilot.autopilot' (/usr/local/lib/python3.7/dist-packages/pypilot/autopilot.py)   cannot import name 'HeadingOffset' from 'pypilot.autopilot' (/usr/local/lib/python3.7/dist-packages/pypilot/autopilot.py)
Oct 24 11:53:12 pi4 pypilot[25439]: loading servo calibration /home/pi/.pypilot/servocalibration
Oct 24 11:53:12 pi4 pypilot[25439]: WARNING: using default servo calibration!!
Oct 24 11:53:12 pi4 pypilot[25439]: Available Pilots: ['basic', 'absolute', 'simple']
Oct 24 11:53:12 pi4 pypilot[25439]: warning: failed to open special file /dev/watchdog0 for writing
Oct 24 11:53:12 pi4 pypilot[25439]:          cannot stroke the watchdog
Oct 24 11:53:12 pi4 pypilot[25439]: Settings file not found. Using defaults and creating settings file
Oct 24 11:53:12 pi4 pypilot[25439]: Failed to open settings file for saveDetected MPU9250/MPU9255 at standard address
Oct 24 11:53:12 pi4 pypilot[25439]: Failed to open settings file for saveUsing fusion algorithm Kalman STATE4
Oct 24 11:53:12 pi4 pypilot[25439]: min/max compass calibration not in use
Oct 24 11:53:12 pi4 pypilot[25439]: Using ellipsoid compass calibration
Oct 24 11:53:12 pi4 pypilot[25439]: Using accel calibration
Oct 24 11:53:12 pi4 pypilot[25439]: autopilot init complete 3224.379114806
Oct 24 11:53:12 pi4 pypilot[25439]: serialprobe found more devices by path
Oct 24 11:53:12 pi4 pypilot[25439]: serialprobe removing gps device /dev/serial/by-path/platform-fd500000.pcie-pci-0000:01:00.0-usb-0:1.1:1.0-port0
Oct 24 11:53:12 pi4 pypilot[25439]: serialprobe removing gps device /dev/serial/by-path/platform-fd500000.pcie-pci-0000:01:00.0-usb-0:1.3:1.0-port0
Oct 24 11:53:12 pi4 pypilot[25439]: Traceback (most recent call last):
Oct 24 11:53:12 pi4 pypilot[25439]:   File "/usr/local/bin/pypilot", line 11, in <module>
Oct 24 11:53:12 pi4 pypilot[25439]:     load_entry_point('pypilot==0.32', 'console_scripts', 'pypilot')()
Oct 24 11:53:12 pi4 pypilot[25439]:   File "/usr/local/lib/python3.7/dist-packages/pypilot/autopilot.py", line 450, in main
Oct 24 11:53:12 pi4 pypilot[25439]:     ap.iteration()
Oct 24 11:53:12 pi4 pypilot[25439]:   File "/usr/local/lib/python3.7/dist-packages/pypilot/autopilot.py", line 332, in iteration
Oct 24 11:53:12 pi4 pypilot[25439]:     self.servo.poll()
Oct 24 11:53:12 pi4 pypilot[25439]:   File "/usr/local/lib/python3.7/dist-packages/pypilot/servo.py", line 559, in poll
Oct 24 11:53:12 pi4 pypilot[25439]:     device_path = serialprobe.probe('servo', [38400], 5)
Oct 24 11:53:12 pi4 pypilot[25439]:   File "/usr/local/lib/python3.7/dist-packages/pypilot/serialprobe.py", line 242, in probe
Oct 24 11:53:12 pi4 pypilot[25439]:     if enumerate_devices():
Oct 24 11:53:12 pi4 pypilot[25439]:   File "/usr/local/lib/python3.7/dist-packages/pypilot/serialprobe.py", line 203, in enumerate_devices
Oct 24 11:53:12 pi4 pypilot[25439]:     scanned_devices = scan_devices()
Oct 24 11:53:12 pi4 pypilot[25439]:   File "/usr/local/lib/python3.7/dist-packages/pypilot/serialprobe.py", line 147, in scan_devices
Oct 24 11:53:12 pi4 pypilot[25439]:     allowed_devices[path]['realpath'] = realpath
Oct 24 11:53:12 pi4 pypilot[25439]: KeyError: '/dev/ttyOP_pypilot'
Oct 24 11:53:12 pi4 pypilot[25439]: Error in atexit._run_exitfuncs:
Oct 24 11:53:12 pi4 pypilot[25439]: Traceback (most recent call last):
Oct 24 11:53:12 pi4 pypilot[25439]:   File "/usr/lib/python3.7/multiprocessing/popen_fork.py", line 28, in poll
Oct 24 11:53:12 pi4 pypilot[25439]:     pid, sts = os.waitpid(self.pid, flag)
Oct 24 11:53:12 pi4 pypilot[25439]:   File "/usr/local/lib/python3.7/dist-packages/pypilot/autopilot.py", line 195, in cleanup
Oct 24 11:53:12 pi4 pypilot[25439]:     raise KeyboardInterrupt # to get backtrace on all processes
Oct 24 11:53:12 pi4 pypilot[25439]: KeyboardInterrupt
Oct 24 11:53:12 pi4 pypilot[25439]: closing autopilot
Oct 24 11:53:12 pi4 systemd[1]: pypilot.service: Main process exited, code=exited, status=1/FAILURE
Oct 24 11:53:12 pi4 systemd[1]: pypilot.service: Failed with result 'exit-code'.
Oct 24 11:53:13 pi4 systemd[1]: openplotter-pypilot-read.service: Service RestartSec=2s expired, scheduling restart.
Oct 24 11:53:13 pi4 systemd[1]: openplotter-pypilot-read.service: Scheduled restart job, restart counter is at 1163.
Oct 24 11:53:13 pi4 systemd[1]: Stopped openplotter-pypilot-read.
Oct 24 11:53:13 pi4 systemd[1]: Started openplotter-pypilot-read.

Regards,
Dennis
Reply


Messages In This Thread
RE: Pypilot web browser interface showing not connected - by zzzdgr - 2021-10-24, 05:56 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)