Peter Barker
bccfd98d0e
AP_Motors: allow compilation with HAL_LOGGING_ENABLED false
2024-01-17 18:25:55 +11:00
Michael du Breuil
9e32456003
AP_Motors: Add a seprate spool down time, if it's 0 use spool up time
2023-10-03 08:04:56 +09:00
Iampete1
ab4777de14
AP_Motors: move thrust linerization to its own class
2023-04-18 09:32:22 +10:00
Iampete1
7c92340b42
AP_Motors: add getters for example
2023-04-04 09:25:15 +10:00
Peter Hall
bbb9e66196
AP_Motors: add method for scripting to set external limit flags
2023-03-07 10:12:30 +11:00
Leonard Hall
67205f8114
AP_Motors: Support changing update period
2022-12-13 17:10:06 +11:00
Iampete1
d5082e25e8
AP_Motors: output_motor_mask mask to uint16_t
2022-11-29 10:53:59 +11:00
Iampete1
e72e5a2751
AP_Motors: add pre-arm check
2022-09-07 17:54:16 +10:00
Iampete1
c1a9f75034
AP_Motors: params always use set method
2022-08-03 13:43:48 +01:00
Iampete1
43832649ec
AP_Motors: convert to 32 bit motor mask
2022-05-22 12:07:37 +10:00
Iampete1
86578d5cec
AP_Motors: add local loging of MOTB
2022-01-18 10:18:10 +11:00
Iampete1
d16be50e57
AP_Motors: add PWM min and max param conversion function
2021-10-11 22:19:17 -04:00
Iampete1
14dfac42e7
AP_Motors: remove use of external PWM min and max
2021-10-11 22:19:17 -04:00
Iampete1
0c1fe0b373
AP_MotorsMulticopter: add inverse thrust_to_actuator and thrust curve functions
2021-10-01 22:04:51 +01:00
Andy Piper
513aa592e4
AP_Motors: add accessors for turtle mode
2021-08-12 19:00:51 +09:00
Sergey Bokhantsev
ef95bf088c
AP_Motors: Constrain get_throttle_hover value with allowed range
2021-04-01 13:06:02 +09:00
Patrick José Pereira
bdc14c60fb
AP_Motors: Add missing const in member functions
...
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2021-02-03 18:45:14 +11:00
Andrew Tridgell
c504e2db04
AP_Motors: added disable_yaw_torque() method
...
this is used for tilt-vectored quadplanes to use only vectoring for
yaw control. This avoids some nasty transition issues
2020-12-16 08:45:11 +11:00
Iampete1
681f45c4e0
AP_MotorsMulticopter: make thrust to actuator public
2020-11-18 19:33:21 +11:00
Randy Mackay
bff978570f
AP_MotorsMulticopter: fixup check_mot_pwm_params
...
fix _pwm_max is positive check
returns true if params are valid
constify method
2020-01-30 10:01:54 +09:00
ashvath
d97fdcac31
Copter: function for mot_pwm checks
2020-01-30 08:29:56 +09:00
Andrew Tridgell
37566d079f
AP_Motors: support direct rate outputs for multicopters
2019-10-25 17:11:56 +11:00
Leonard Hall
6e8413f122
AP_Motors: Use safety timer to enable pwm before spool up
2019-10-16 08:46:49 +11:00
Peter Barker
1e606cdc5b
AP_Motors: make desired spool state and spool state enum-classes
...
This will help avoid getting the enumerations mixed up
2019-04-14 12:18:03 +09:00
Randy Mackay
1fa335a77b
AP_Motors: actuator_spin_up renamed to include _to_ground_idle
2019-01-21 20:55:07 +09:00
Randy Mackay
e2bd502b83
AP_Motors: minor format fixes
2019-01-21 20:13:43 +09:00
Matt
3d3f06cacb
AP_Motors: Add actuator output slew time to multicopters
...
Adds slew time limiting for throttling up and throttling down to multicopters. New parameters MOT_SLEW_UP_TIME and MOT_SLEW_DN_TIME added. 0 = disabled, no slew limiting. Valid values are 0 to 0.5 seconds. Also reworked functions related to linearization and PWM conversion to make more flexible throughout the code.
2019-01-21 20:07:58 +09:00
bnsgeyer
10572c2f9b
AP_Motors: remove unused defines from multicopter
2019-01-15 11:41:44 +09:00
bnsgeyer
ac87b3e1e5
AP_Motors: spool state moved from multi to parent
...
Also rename SPIN_WHEN_ARMED to GROUND_IDLE
2019-01-15 11:41:44 +09:00
IamPete1
c26948ef59
AP_Motors: multicopter apply diffential thrust in forward flight
2019-01-15 10:19:19 +11:00
Peter Barker
f2070da335
AP_Motors: add override keyword where required
2018-11-08 11:30:12 +11:00
Randy Mackay
a5c59ce36e
AP_Motors: include boost_throttle in get_motor_mask
2018-08-27 10:35:02 +09:00
Jacob Walser
e5bd6e289e
AP_Motors: Add current limiting to 6DOF motors for Sub
2018-04-29 17:16:34 -04:00
Michael du Breuil
050b8ebb32
AP_Motors: Allow specifying which battery is used for compensation
2018-03-27 22:12:21 +01:00
Leonard Hall
9e86732edc
AP_Motors: accept external battery resistance estimate
2017-06-06 14:57:04 +09:00
Andrew Tridgell
46d9a1dcb5
AP_Motors: fixed tricopter tail servo in fwd flight
...
in quadplane forward flight the with tilt-tricopter tail servo needs to
be at its trim position. Thanks to Marco for noticing this.
2017-05-09 08:59:00 +09:00
Andrew Tridgell
bdc4320fe8
AP_Motors: added MOT_BOOST_SCALE
...
this is to support boost motors for copters, such as having a petrol
motor for extra lift on a multicopter
The scaling factor allows the user to control how much of the lift is
generated from the booster and how much from the main multicopter
motors
2017-05-08 11:02:55 +10:00
Andrew Tridgell
2187417d74
AP_Motors: added MOT_SPOOL_TIME
...
this allows for quadplanes to have faster spoolup, which can help with
transitions
2017-02-14 09:23:17 +09:00
Randy Mackay
a14265359f
Copter: reduce default MOT_THST_HOVER to 0.35
2017-02-07 11:20:25 +09:00
Andrew Tridgell
8e3bf71aa9
AP_Motors: allow single, tri and coax to be part of multicopter class
2017-01-12 17:39:37 +11:00
Jonathan Challinger
22517422f9
AP_Motors: add option to disable motor PWM output while disarmed
2016-11-21 10:49:21 +09:00
Mathieu OTHACEHE
152edf7189
Global: remove mode line from headers
...
Using a global .dir-locals.el file is a better alternative than
reincluding the same emacs header in every file of the project.
2016-10-24 09:42:01 -02:00
Leonard Hall
bead957a78
AP_MotorsMulticopter: limit hover throttle
2016-10-15 11:27:53 +09:00
Andrew Tridgell
bc7488e2f2
AP_Motors: fixed typos
2016-07-01 15:35:29 +10:00
Randy Mackay
e185bab775
AP_MotorsMulticopter: add HOVER_LEARN option to learn but not save
2016-06-18 11:55:49 +09:00
Randy Mackay
a2ffd9ec7d
AP_MotorsMulticopter: fix comment for get_throttle_limit function
2016-06-18 11:55:49 +09:00
Randy Mackay
ef106e4b0f
AP_Motors: spool_mode moved out of flags struction
...
No functional change
2016-06-18 11:55:49 +09:00
Randy Mackay
71d1818103
AP_MotorsMulticopter: minor comment update
2016-06-18 11:55:49 +09:00
Randy Mackay
818965fa57
AP_MotorsMulticopter: output_to_motors and output_logic become protected
2016-06-18 11:55:49 +09:00
Leonard Hall
be25ac4acf
AP_MotorsMulticopter: Add current limit time constant variable
2016-06-18 11:55:49 +09:00