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
Rudder calibration not working
#18
Hi sean, Thanks for the ideas. I tried the rudder sensor on my old autopilot, works fine there so nothing wrong with the sensor. Connected back to pypilot but the motor controller just seems not to detect it any more after the pypilot software update.

I noticed there are two sets of rudder configuration in the pypilot.conf file, one starting with "servo.rudder" and the other set starting with just "rudder.". Is that as it should be? which set should I revert to defaults, or both? Once I have reverted them, how do I make sure that change has been saved onto the motor controller? Is there a way to read the saved settings from the motor controller so I can check whether the .conf file has been copied over to it?

I don't think there should be any need to add resistors and things because the rudder sensing was working without additional resistors before I did the software update.

I ran the script you suggested, got this (note the "using default servo calibration" warning... is that normal?):

Code:
tc@box:/mnt/mmcblk0p2/tinypilot/pypilot/pypilot$ python servo.py
Servo Server
loading servo calibration /home/tc/.pypilot/servocalibration
WARNING: using default servo calibration!!
failed to open (u'/dev/serial/by-id/usb-1a86_USB2.0-Serial-if00-port0', 4800) for nmea data
connected to gpsd
arduino servo found on [u'/dev/ttyAMA0', 38400]
serialprobe success: /home/tc/.pypilot/servodevice [u'/dev/ttyAMA0', 38400]
voltage: 13.42 current 0.0 ctrl temp 20.96 motor temp False rudder pos False flags SYNC
voltage: 13.41 current 0.0 ctrl temp 20.96 motor temp False rudder pos False flags SYNC
voltage: 13.41 current 0.0 ctrl temp 20.96 motor temp False rudder pos False flags SYNC
voltage: 13.42 current 0.0 ctrl temp 20.96 motor temp False rudder pos False flags SYNC
voltage: 13.42 current 0.0 ctrl temp 20.97 motor temp False rudder pos False flags SYNC
voltage: 13.42 current 0.0 ctrl temp 20.97 motor temp False rudder pos False flags SYNC
voltage: 13.42 current 0.0 ctrl temp 20.97 motor temp False rudder pos False flags SYNC
voltage: 13.42 current 0.0 ctrl temp 20.97 motor temp False rudder pos False flags SYNC
gpsd is using device /dev/ttyUSB0
found gps on gpsd /dev/ttyUSB0
voltage: 13.42 current 0.0 ctrl temp 20.97 motor temp False rudder pos False flags SYNC
voltage: 13.42 current 0.0 ctrl temp 20.97 motor temp False rudder pos False flags SYNC
voltage: 13.42 current 0.0 ctrl temp 20.97 motor temp False rudder pos False flags SYNC
nmea ready for connections
listening on port 20220 for nmea connections
voltage: 13.42 current 0.0 ctrl temp 20.97 motor temp False rudder pos False flags SYNC
voltage: 13.42 current 0.0 ctrl temp 20.97 motor temp False rudder pos False flags SYNC
voltage: 13.42 current 0.0 ctrl temp 20.97 motor temp False rudder pos False flags SYNC
voltage: 13.42 current 0.0 ctrl temp 20.97 motor temp False rudder pos False flags SYNC
voltage: 13.42 current 0.0 ctrl temp 20.97 motor temp False rudder pos False flags SYNC
voltage: 13.42 current 0.0 ctrl temp 20.97 motor temp False rudder pos False flags SYNC
voltage: 13.42 current 0.0 ctrl temp 20.97 motor temp False rudder pos False flags SYNC
voltage: 13.42 current 0.0 ctrl temp 20.97 motor temp False rudder pos False flags SYNC
voltage: 13.42 current 0.0 ctrl temp 20.97 motor temp False rudder pos False flags SYNC
voltage: 13.42 current 0.0 ctrl temp 20.97 motor temp False rudder pos False flags SYNC
voltage: 13.42 current 0.0 ctrl temp 20.97 motor temp False rudder pos False flags SYNC
voltage: 13.42 current 0.0 ctrl temp 20.97 motor temp False rudder pos False flags SYNC
voltage: 13.42 current 0.0 ctrl temp 20.97 motor temp False rudder pos False flags SYNC
voltage: 13.42 current 0.0 ctrl temp 20.97 motor temp False rudder pos False flags SYNC
voltage: 13.42 current 0.0 ctrl temp 20.97 motor temp False rudder pos False flags SYNC
voltage: 13.42 current 0.0 ctrl temp 20.97 motor temp False rudder pos False flags SYNC

Any ideas? Thanks!

...Also, since running the opencpn android app the max slew has gone back to 98 again and still keeps reverting to that after I edit it, even with the updated software. Is there any way at all that I can force the pypilot to save the current contents of the pypilot.conf onto the motor controller after editing it manually? I still have no way to edit the slew other than editing the .conf file manually because that option is missing in macos plugin and always goes to 98 in the android plugin. I spent a lot of time trying to get the config tools working in macos and found most of the dependencies but I'm not there yet.
Reply


Messages In This Thread
Rudder calibration not working - by syohana - 2019-07-20, 10:16 PM
RE: Rudder calibration not working - by syohana - 2019-07-21, 11:04 PM
RE: Rudder calibration not working - by syohana - 2019-07-22, 08:50 PM
RE: Rudder calibration not working - by syohana - 2019-07-22, 10:15 PM
RE: Rudder calibration not working - by syohana - 2019-07-23, 12:16 AM
RE: Rudder calibration not working - by syohana - 2019-07-24, 08:23 PM
RE: Rudder calibration not working - by syohana - 2019-07-24, 10:12 PM
RE: Rudder calibration not working - by syohana - 2019-07-29, 11:27 PM
RE: Rudder calibration not working - by syohana - 2019-08-01, 12:12 AM
RE: Rudder calibration not working - by syohana - 2019-08-10, 10:44 AM
RE: Rudder calibration not working - by syohana - 2019-08-10, 11:11 PM
RE: Rudder calibration not working - by syohana - 2019-09-14, 09:26 PM
RE: Rudder calibration not working - by syohana - 2019-09-15, 12:17 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)