Leonard Hall
2f87d8808f
AP_Motors: handle boost in spool up and down the same way
6 years ago
Leonard Hall
4774cb8daf
AP_Motors: improved motor loss redundancy
...
This detects a failed motor on copters with at least 6 motors
and recalculates the mixer to compensate
6 years ago
Randy Mackay
a5c59ce36e
AP_Motors: include boost_throttle in get_motor_mask
7 years ago
Peter Barker
937d8dac97
AP_Motors: remove unneeded initialisations
7 years ago
Andrew Tridgell
bd9df6d0ec
AP_Motors: added DShot to parameter docs
7 years ago
Michael du Breuil
050b8ebb32
AP_Motors: Allow specifying which battery is used for compensation
7 years ago
Michael du Breuil
98e327640d
AP_Motors: Use battery singleton
7 years ago
Andrew Tridgell
e340fac2e0
AP_Motors: avoid float exception for small expo
...
very small values of the thrust expo cause a floating point
exception. As zero is a documented value meaning linear we need to
handle this.
7 years ago
Leonard Hall
d28182435e
AP_Motors: allow for negative thrust expo
...
This allows for motors with a thrust curve that decreases with demand.
7 years ago
Andrew Tridgell
abd0831239
AP_Motors: changed BRUSHED16kHz to BRUSHED
8 years ago
Leonard Hall
9e86732edc
AP_Motors: accept external battery resistance estimate
8 years ago
Dr.-Ing. Amilcar Do Carmo Lucas
1b062d9d29
AP_Motors: Improve the PWM parameters descriptions
8 years ago
Jonathan Challinger
2e07f8824e
AP_Motors: reserve parameter index 38
8 years ago
Dr.-Ing. Amilcar Do Carmo Lucas
9d9ebc91cd
AP_Motors: Use SI units conventions in parameter units
...
Follow the rules from:
http://physics.nist.gov/cuu/Units/units.html
http://physics.nist.gov/cuu/Units/outside.html
and
http://physics.nist.gov/cuu/Units/checklist.html
one further constrain is that only printable (7bit) ASCII characters are allowed
8 years ago
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
8 years ago
Andrew Tridgell
2c4975ba31
AP_Motors: removed cork/push from AP_Motors
...
should be done by vehicle code if needed, so that AUX servos are sent
at the same time
8 years ago
Jacob Walser
507b461388
AP_Motors: Initialize throttle range directly
...
This was causing SITL to hang at boot when motors object is statically allocated.
8 years ago
Lucas De Marchi
ade1876318
AP_Motors: tie esc scaling with set_throttle_range()
...
We need to update the esc scaling from inside the Motors library, that
has access to the MOT_PWM_[MIN|MAX] values. Otherwise even though the
AP_Motors library honors the value for calculations, the RCOutput
drivers that need the scaling to set the real HW scaling will not work.
Right now it scales the value using the throttle_channel's min/max, even
though AP_Motors may be passing values in other range.
8 years ago
Andrew Tridgell
108cbe1dab
AP_Motors: mark tricopter yaw as tricopter only
8 years ago
Andrew Tridgell
2187417d74
AP_Motors: added MOT_SPOOL_TIME
...
this allows for quadplanes to have faster spoolup, which can help with
transitions
8 years ago
Andrew Tridgell
8e3bf71aa9
AP_Motors: allow single, tri and coax to be part of multicopter class
8 years ago
Leonard Hall
a09d4db4fd
AP_MotorsMulticopter: fix battery resistance calculation
8 years ago
Andrew Tridgell
8468add63e
AP_Motors: mark PWM_TYPE as reboot required
8 years ago
Andrew Tridgell
ce517384e1
AP_Motors: support MODE_PWM_BRUSHED16KHZ
8 years ago
Jonathan Challinger
22517422f9
AP_Motors: add option to disable motor PWM output while disarmed
8 years ago
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.
8 years ago
Leonard Hall
bead957a78
AP_MotorsMulticopter: limit hover throttle
8 years ago
Leonard Hall
0a56d69d54
AP_MotorsMulticopter: Use same throttle value used by motors
8 years ago
Randy Mackay
b63666d188
AP_Motors: increase MOT_THST_HOVER parameter description range
...
No functional change
9 years ago
Randy Mackay
4858afae6c
AP_Motors: param description update that MOT_SPIN_MIN should be higher than MOT_SPIN_ARM
9 years ago
Randy Mackay
ad697243b3
AP_MotorsMulticopter: initialise some members
...
This resolves some Covarity warnings at the cost of a small amount of flash
9 years ago
Randy Mackay
e185bab775
AP_MotorsMulticopter: add HOVER_LEARN option to learn but not save
9 years ago
Randy Mackay
ef106e4b0f
AP_Motors: spool_mode moved out of flags struction
...
No functional change
9 years ago
Randy Mackay
71d1818103
AP_MotorsMulticopter: minor comment update
9 years ago
Leonard Hall
02881b59ff
AP_MotorsMulti: float constants
9 years ago
Leonard Hall
bee6c29b89
AP_MotorsMulticopter: current limit keeps battery from sagging below BAT_VOLT_MIN
9 years ago
Leonard Hall
be25ac4acf
AP_MotorsMulticopter: Add current limit time constant variable
9 years ago
Leonard Hall
7e0e0ca874
AP_MotorsMulticopter: battery voltage compensation improvements
9 years ago
Leonard Hall
0ee7b00b0b
AP_MotorsMulticopter: rename _thrust_curve_min to spin_min
9 years ago
Leonard Hall
5cace33ca5
AP_MotorsMulticopter: SPIN_MIN replaces min_throttle
9 years ago
Leonard Hall
2c811364d3
AP_MotorsMulticopter: SPIN_ARM param replaces SPIN_ARMED
9 years ago
Leonard Hall
488f90b39d
AP_Motors: add calc_spin_up_to_pwm to reduce repeated code
9 years ago
Randy Mackay
25778a24e2
AP_MotorsMulticopter: add HOVER_LEARN param
9 years ago
Leonard Hall
4f0db2bc36
AP_Motors: learned THST_HOVER replace THR_MID
...
This holds the estimated thrust required for the vehicle to hover
expressed as a number from 0 to 1. 0 will be equivalent to outputting
SPIN_MIN (which is a number from 0~1 but in the full output range) and 1 is equivalent to SPIN_MAX (also 0~1 but in the full output range)
9 years ago
Leonard Hall
5a8fc6283e
AP_Motors: replace throttle_rpy_mix with throttle_avg
...
AC_AttitudeControl now calculates throttle vs attitude control
prioritisation and simply provides overall maximum throttle (aka
throttle_avg) to the motors library
9 years ago
Andrew Tridgell
a2ed8fb313
AP_Motors: prevent negative thrust
...
this prevents a sqrt of a negative number
9 years ago
Randy Mackay
8d1f50e78f
AP_Motors: rename get_pwm_min to get_pwm_output_min
9 years ago
Randy Mackay
0c225cf498
AP_MotorsMulticopter: fix typo in comments
9 years ago
Randy Mackay
ff93524ba4
AP_Motors: rename MOT_THST_MAX to MOT_SPIN_MAX
...
Also renamed:
MOT_THST_BAT_MIN,MAX to MOT_BAT_VOLT_MIN,MAX
MOT_CURR_MAX to MOT_BAT_CURR_MAX
9 years ago
Randy Mackay
49b14b3cb6
AP_Motors: add PWM_MIN, MAX
...
These parameters allow the motor PWM output range to be different from receiver's throttle input range
Also renamed throttle_pass_through to set_throttle_passthrough_for_esc_calibration and change the method's input to the 0 to 1 range instead of direct PWM value
9 years ago