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
remote boatimu
#4
(2021-04-02, 01:42 AM)seandepagnier Wrote: 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.

Still, it's what I want to try; if the IMU refresh rate is 100ms I don't mind losing a few millisecs on wifi pingtime. I think I can get boatimu connect to a remote pypilot through configuration of pypilot_client.conf and similar changes (below), but I can't test it now yet. I'll let you know the results, positive or negative. 


Code:
pi@openplotter:/usr/local/lib/python3.7/dist-packages/pypilot-0.23-py3.7-linux-armv7l.egg/pypilot $ diff ~/pypilot/pypilot boatimu.py
37,39c38,42
<         self.client = pypilotClient(server)
<         self.multiprocessing = server.multiprocessing
<         if self.multiprocessing:
---
>         self.client = pypilotClient()
>         #self.multiprocessing = server.multiprocessing
>         if False:
310c313
<         if True:
---
>         if False:
316c319,320
<         self.client = pypilotClient(server)
---
>         self.client = pypilotClient()
342c346,347
<         self.auto_cal = AutomaticCalibrationProcess(client.server)
---
>         self.auto_cal = AutomaticCalibrationProcess(client)
365c370
<         self.imu = IMU(client.server)
---
>         self.imu = IMU(client)
386c391,392
<         if self.imu.multiprocessing:
---
>         if False:
396c402,403
<         if not self.imu.multiprocessing:
---
>         if False:
516c523,524
<     client = pypilotClient(server)
---
>     client = pypilotClient()
Reply


Messages In This Thread
remote boatimu - by ironman - 2021-04-01, 08:34 AM
RE: remote boatimu - by guyh2 - 2021-04-01, 01:14 PM
RE: remote boatimu - by seandepagnier - 2021-04-02, 01:42 AM
RE: remote boatimu - by ironman - 2021-04-02, 04:05 PM
RE: remote boatimu - by seandepagnier - 2021-04-02, 08:55 PM
RE: remote boatimu - by AndyV - 2024-01-26, 05:27 AM
RE: remote boatimu - by ironman - 2021-04-02, 10:23 PM
RE: remote boatimu - by andrewAB - 2021-04-04, 01:10 PM
RE: remote boatimu - by seandepagnier - 2021-04-06, 06:57 PM
RE: remote boatimu - by seandepagnier - 2024-01-27, 11:07 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)