Commit Graph

9 Commits

Author SHA1 Message Date
Tarik Agcayazi 2bb8294685 AP_Winch: Fix baud rate handling
Correct baud rate is 38400. Confirmed with manufacturer, and with a winch on v1.02. Also confirmed w/ manufacturer that newest winches on v1.04 also use 38400. Removed if statement forcing baud rate of 115200 to be consistent with documentation, and to avoid issues in future if manufacturer changes baud rate again.
2023-03-04 07:59:23 +09:00
Peter Barker 8ccd0ccd3a AP_Winch: add and use AP_WINCH_ENABLED 2023-03-03 20:59:06 +11:00
Peter Barker a963826ba0 AP_Winch: tidy includes of SRV_Channel.h 2023-01-25 22:30:55 +11:00
Peter Barker 6a0250bc85 AP_Winch: stop libraries including AP_Logger.h in .h files
AP_Logger.h is a nexus of includes; while this is being improved over
time, there's no reason for the library headers to include AP_Logger.h
as the logger itself is access by singleton and the structures are in
LogStructure.h

This necessitated moving The PID_Info structure out of AP_Logger's
namespace.  This cleans up a pretty nasty bit - that structure is
definitely not simply used for logging, but also used to pass pid
information around to controllers!

There are a lot of patches in here because AP_Logger.h, acting as a
nexus, was providing transitive header file inclusion in many (some
unlikely!) places.
2022-04-08 19:18:38 +10:00
murata 7897807a78 AP_Winch: Change from division to multiplication 2022-03-16 18:41:52 +11:00
Iampete1 6e4ae3898d AP_Winch: use floats for get/set output scaled 2021-10-20 18:29:58 +11:00
Randy Mackay 1c1caa9374 AP_Winch: correct Daiwa line lengtha and speed scaling 2020-09-09 11:56:00 +09:00
Randy Mackay b84423c110 AP_Winch_Daiwa: fixes from peer review
simplify constructor
init calls backend init
fixup parsing to remove unnecessary INT32_MAX/MIN check
fixup comments
2020-08-07 21:55:07 +09:00
Randy Mackay b0eb375920 AP_Winch: add daiwa driver 2020-08-07 21:55:07 +09:00