(2021-07-12, 11:39 AM)Mark_OzzMaker Wrote: Below is what I did to get it working.
I am sure that sometime in the future this will not be needed as it will be in the main image.
- burn the openplotter image to sd card 2020-12-16-OpenPlotter-v2-Starting.img
- enable i2c interface with sudo raspi-config
- open OpenPlotter settings app and install I2C and PyPilot
- the updates need to be downloaded and installed, go to terminal window and enter the below commands;
- sudo apt-get update
the above may fail, still continue
- sudo apt-get install libqt4-dev cmake -y
- git clone https://github.com/seandepagnier/RTIMULib2.git
- git clone https://github.com/pypilot/pypilot.git
- cd RTIMULib2/Linux/
- mkdir build
- cd build/
- cmake ..
- make -j4
- sudo make install
- sudo ldconfig
- cd ../python/
- python3 setup.py build
- sudo python3 setup.py install
- cd ~/pypilot/
- sudo python3 setup.py install
run the above command twice
- Open PyPilot, it should now have detected the IMU
(2022-02-10, 01:50 PM)Sailoog Wrote: You could use berryGPS by serial as long as you do not connect anything to the NMEA 0183 input in the PICAN but you could use the berryGPS and the PICAN NMEA 0183 output at the same time.
I do not have any of these devices so this is all guesswork...
Update successful, but following the procedure above now breaks pypilot.
Starting fresh again and keeping a closer eye on where it fails:
Install latest starting image
-> OK
Setting up system (country, language, keyboard, wifi etc.)
sudo apt-get update --allowreleaseinfo-change
-> OK
Enable I2C
Install latest OP packages (signalk, I2C, pypilot) from OP settings, OP settings updated as part of process
-> signalk OK
-> i2c OK, able to add pressure/temperature sensor and send to signalk
-> pypilot OK, opens from Openplotter menu
-> IMU not detected by pypilot (as expected at this stage)
Continuing procedure above (skipping step 1 as already updated) step 2 to 9
-> OK, pypilot opens from OP menu
-> IMU not detected by pypilot (as expected at this stage)
Continuing step 10 - 16
-> pypilot no longer available from menu
Reinstall pypilot from OP installer
-> OK, pypilot opens from OP menu
-> IMU not detected by pypilot (as expected at this stage)
Conclusion 1:
The python commands step 10 - 16 above breaks pypilot, incompatible after Raspi Buster update?
Conclusion 2:
Wait for OPv3, hoping BerryGPS-IMU v4 is supported in new version of pypilot
For the gps I would prefer to get the I2C and gpsd route working, I plan on connecting an external gps to PICAN-M NMEA 0183 interface as secondary source.
Cheers