OpenMarine
Pypilot in OpenPlotter 4 released - 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: Pypilot in OpenPlotter 4 released (/showthread.php?tid=5334)

Pages: 1 2 3


Pypilot in OpenPlotter 4 released - Sailoog - 2024-04-14

openplotter-pypilot v4.x.x beta is released. You can download OpenPlotter 4 beta here: https://forum.openmarine.net/showthread.php?tid=5060

Tested on Raspberry Pi 5. I ported the code to Debian bookworm and fixed some dependencies. Everything works as expected, but pypilot HAT still will not work. As you know, the new Raspberry 5 does not support the old GPIO libraries and all code must be adapted to new libraries.

@Sean, I have ported all code of openplotter v4 to gpiod. After reviewing the pypilot code, I see that you can also use the gpiod python binding to replace RPi.GPIO. It has edge detection, pull up/down, bouncetime and all you need and it will work on new and old Raspberries. Some examples: https://github.com/brgl/libgpiod/tree/master/bindings/python/examples

Test an report here as usual please, thanks.


RE: Pypilot in OpenPlotter 4 released - SailAlpha - 2024-04-15

Hello,

Updated I2C, GPIO and installed Pypilot to a "Starting" version of OpenPlotter 4 from 12-29-23.

After reboot, I2C, GPIO and Shutdown management are "service not running" when doing "Checking OpenPlotter".

I'll track down more info and post this here.


RE: Pypilot in OpenPlotter 4 released - PaddyB - 2024-04-15

Not a typical installation but IMU wouldn't start. Assuming this is because I have 2 i2c busses & the imu is connect to bus 6, with RTIMULib.ini edited to >

# I2C Bus (between 0 and 7)
I2CBus=6

Is it possible to edit the RTIMULib.ini file openplotter pypilot uses on my installation?


RE: Pypilot in OpenPlotter 4 released - Sailoog - 2024-04-15

(2024-04-15, 08:33 AM)PaddyB Wrote: Not a typical installation  but IMU wouldn't start. Assuming this is because I have 2 i2c busses & the imu is connect to bus 6, with RTIMULib.ini edited to >

# I2C Bus (between 0 and 7)
I2CBus=6

Is it possible to edit the RTIMULib.ini file openplotter pypilot uses on my installation?

yes, you will find RTIMULib.ini in /home/pi/.pypilot


RE: Pypilot in OpenPlotter 4 released - Sailoog - 2024-04-15

(2024-04-15, 03:29 AM)SailAlpha Wrote: Hello,

Updated I2C, GPIO and installed Pypilot to a "Starting" version of OpenPlotter 4 from 12-29-23. 

After reboot, I2C, GPIO and Shutdown management are "service not running" when doing "Checking OpenPlotter".

I'll track down more info and post this here.

Not related to openplotter-pypilot v4 but let's see what is going on.

Are all the apps updated from openplotter-settings?

Did you change the user name while SD creation or after?


RE: Pypilot in OpenPlotter 4 released - TVR - 2024-04-15

(2024-04-15, 03:29 AM)SailAlpha Wrote: Hello,

Updated I2C, GPIO and installed Pypilot to a "Starting" version of OpenPlotter 4 from 12-29-23. 

After reboot, I2C, GPIO and Shutdown management are "service not running" when doing "Checking OpenPlotter".

I'll track down more info and post this here.

I saw exactly the same. I opened and refreshed the I2C and GPIO apps, and turned shutdown management off and back on, and everything went back to normal. Perhaps it would have gone back to normal by itself if I'd been a bit more patient?


RE: Pypilot in OpenPlotter 4 released - Sailoog - 2024-04-15

@Sean, I forgot, if you use gpiod do not install from debian packages, install from pip to get the latest version.


RE: Pypilot in OpenPlotter 4 released - seandepagnier - 2024-04-15

I am going to try to pull the latest image you posted today. Once I have this for openplotter I will try on the pi5 and get pypilot hat working on that with the gpio.


RE: Pypilot in OpenPlotter 4 released - PaddyB - 2024-04-15

(2024-04-15, 11:24 AM)Sailoog Wrote:
(2024-04-15, 08:33 AM)PaddyB Wrote: Not a typical installation  but IMU wouldn't start. Assuming this is because I have 2 i2c busses & the imu is connect to bus 6, with RTIMULib.ini edited to >

# I2C Bus (between 0 and 7)
I2CBus=6

Is it possible to edit the RTIMULib.ini file openplotter pypilot uses on my installation?

yes, you will find RTIMULib.ini in /home/pi/.pypilot

Great, thanks. Seems o be running OK & managed not to loose the accell calibration but openplotter app says it can't see it. 
Works though, which is the main thing Cool
[Image: 9xtvlOX.png]


RE: Pypilot in OpenPlotter 4 released - Sailoog - 2024-04-16

Is the IMU detected if you press "Refresh" in openplotter-pypilot?