Posts: 214
Threads: 22
Joined: Jun 2019
Reputation:
14
How could I make pypilot use the imu data of a remote boatimu? pypilot_boatimu seems to ignore ~/.pypilot/pypilot_client.conf
I have my tinypilot built into a tiller pilot, including the imu, but when the tiller pilot is not in position, it seems the calibration gets messed up, despite locking the calibration when I swing it out of position. I want to replace my boat's commercial electronic compass anyway with an additional tinypilot connecting to openplotter's signalk database. So it would be great if my autopilot-pypilot could use the IMU data from that additional boatimu.
Thx!
Posts: 2
Threads: 0
Joined: Dec 2020
Reputation:
0
This is something I am very interested in as I want to split off the IMU from the auto pilot - primarily for redundancy and the ability to perhaps in the future build one of the ZED-F9 GNSS modules capable of millimetre 3D-fixes & RPY & heading accuracy that is just mind-blowing.
Looking at the code, it's not straightforward but it is possible - I'm still learning Python as all my previous programming (inc a drone IMU) has been with C & AVR Assembler
Posts: 1,169
Threads: 14
Joined: Jun 2016
Reputation:
29
I don't think using a remote imu is a good idea or intended because of the lag between reading the sensors and reacting with the motor.
Instead, consider fixing a tinypilot to the boat in a good location (not inside tillerpilot) Then use a remote on the tiller pilot. The options for a remote:
1) 433mhz remote. I have built and have the source code and schematic for this. You can use universal 433mhz remotes
2) wifi remote. based on esp32 this gives the same display as the tinypilot with configuration abilities but connects over wifi. I have two size screens working, these are ttgo display variety
3) tinypilot in remote mode. You can use a second tinypilot and connect to the wifi of the master tinypilot. This gives the same function as #2, but is higher cost because a raspberry pi is used instead of esp32. The advantage is, it could be a backup if the primary fails if you have inertial sensors, otherwise you do not need inertial sensors for this pi.
Posts: 214
Threads: 22
Joined: Jun 2019
Reputation:
14
Ok that's a very clear and convincing argument. Thx.
This ideosyncretic idea stems from my requirement to have a pypilot that is 100% interchangeable with my backup, commercial tiller pilot, both electrically and UI-wise. If pypilot would fail, i simply swap it. This has not happened over the last year, which is testament to the design! The remote imu idea is an attempt to optimise that concept, because an imu that regularly swings out of position is hard to properly calibrate.
Posts: 3
Threads: 1
Joined: Jul 2020
Reputation:
0
Hi Sean
Are you selling the esp32 WiFi remotes?
Thanks
Andrew