Leonard Hall
64ba45a683
AP_MotorsMulticopter: add spin_when_armed_low_end_pct
...
returns the spin-when-armed value as a number from 0 to 1 in the range 0 to throttle_min
9 years ago
Leonard Hall
49819d822f
AP_MotorsMulticopter: add get_hover_throttle_as_high_end_pct
...
Returns hover throttle as a number from 0 to 1 in the range from throttle_min to throttle_max
9 years ago
Leonard Hall
e625c105a4
AP_MotorsMulticopter: remove get_throttle_warn
9 years ago
Leonard Hall
3854f2eda7
AP_MotorsMulticopter: rename _throttle_thr_mix_desired to _throttle_rpy_mix_desired
...
No functional change
Also rename _throttle_thr_mix to _throttle_rpy_mix
9 years ago
Leonard Hall
65bbc23a08
AP_MotorsMulticopter: apply_thrust_curve_and_volt_scaling in 0 to 1 range
...
existing equivalent pwm function becomes apply_thrust_curve_and_volt_scaling_pwm
9 years ago
Leonard Hall
cb39f8aab7
AP_MotorsMuticopter: calc_thrust_to_pwm converts thrust in 0 to 1 range to pwm
...
pwm output is always between throttle min and throttle max
9 years ago
Leonard Hall
80ddce103f
AP_Motors: move set_throttle_filter_cutoff declaration
...
No functional change
9 years ago
Leonard Hall
649a8c461d
AP_Motors: remove unused throttle_radio_min, max
...
Moved to AP_MotorsMulticopter
9 years ago
Leonard Hall
e84011603c
AP_Motors: remove unused throttle_pwm_scalar, rpy_pwm_scalar
9 years ago
Leonard Hall
8e1351e474
AP_Motors: init member to resolve compiler warning
9 years ago
Leonard Hall
ed51c7a28d
AP_Motors: replace throttle_control_input with throttle_in
...
throttle_control_input was 0 to 1000 range, throttle_in is 0 to 1
9 years ago
Leonard Hall
c96b91efb6
AP_Motors: add output_to_motors
9 years ago
Leonard Hall
ac579685df
AP_Motors: remove output_armed_not_stabilizing
9 years ago
Leonard Hall
666a92ae2f
AP_Motors: set_throttle accepts 0 to 1 range
9 years ago
Leonard Hall
3c74b4cc69
Motors: add get_roll_thrust which returns roll input in range 0 to 1
...
Also added get_pitch_thrust, get_yaw_thrust
9 years ago
Peter Barker
a66da7be00
AP_Motors: correct parameter documenation
9 years ago
Lucas De Marchi
7d9153feb8
AP_Motors: replace header guard with pragma once
9 years ago
dgrat
5148e41c1a
AP_Math: Cleaned macro definitions
...
Moved Definitions into a separate header. Replaced PI with M_PI and
removed the M_PI_*_F macros.
9 years ago
Jonathan Challinger
9a09a86bb8
AP_Motors: add AP_MOTORS_DENSITY_COMP_DISABLED option
9 years ago
Gustavo Jose de Sousa
c2e3f05dbf
waf: ardupilotwaf: prefix build context methods with ap_
...
It helps to distinguish between things from waf and things from ardupilotwaf.
9 years ago
Gustavo Jose de Sousa
3d22490397
waf: examples: use methods from bld instead of ardupilotwaf
9 years ago
Gustavo Jose de Sousa
d281067bcc
waf: make example binaries be placed in 'examples' dir
...
This commit makes examples' wscripts use ardupilotwaf.example() instead of
ardupilot.program().
9 years ago
Andrew Tridgell
b187a0c6eb
AP_Motors: added quadplane frame type
...
this puts the motors on outputs 5 to 8, to leave the first 4 for the
plane
9 years ago
Randy Mackay
b742ee9cfb
AP_Motors: fix example sketch
9 years ago
Randy Mackay
6c458b07cb
MotorsHeli_RSC: resolve compiler warning re init order
9 years ago
Andrew Tridgell
7c9ee9363b
AP_Motors: added rc_map_mask() function
9 years ago
Andrew Tridgell
dfccf8f713
AP_Motors: also wrap set_freq and enable_ch for motor mapping
9 years ago
Andrew Tridgell
77af00c5e1
AP_Motors: allow arbitrary mapping of channels on multirotors
...
using RCn_FUNCTION with motor1, motor2 etc
9 years ago
Andrew Tridgell
1b682e3c8f
AP_Motors: swash servos are output only
9 years ago
Andrew Tridgell
d31ba2b380
AP_Motors: added rc_write function
...
this is intended to make remapping motors and rescaling output easier
9 years ago
Andrew Tridgell
79c90d37f6
AP_Motors: apply HELI_RSC output type if available
9 years ago
Andrew Tridgell
e1f4814068
AP_Motors: only set output side of range for RSC
9 years ago
Jonathan Challinger
b803907163
AP_Motors: fix example build
9 years ago
Lucas De Marchi
8d252955f5
AP_Motors: don't link unused AP_Curve library
9 years ago
Lucas De Marchi
a096703b06
Global: don't link with AP_Progmem
...
AP_Progmem is not used anymore.
9 years ago
Don Gagne
ed7cd8d3f4
AP_Motors: fix invalid Range meta data
9 years ago
Robert Lefebvre
3a13db9333
AP_MotorsHeli: Add more parameter checks.
9 years ago
Lucas De Marchi
c9d1456a66
AP_Motors: remove unused AP_ADC_AnalogSource
9 years ago
Caio Marcelo de Oliveira Filho
6e7b73610d
waf: add waf support
9 years ago
Lucas De Marchi
2591261af6
Global: rename min and max macros to uppercase
...
The problem with using min() and max() is that they conflict with some
C++ headers. Name the macros in uppercase instead. We may go case by
case later converting them to be typesafe.
Changes generated with:
git ls-files '*.cpp' '*.h' -z | xargs -0 sed -i 's/\([^_[:alnum:]]\)max(/\1MAX(/g'
git ls-files '*.cpp' '*.h' -z | xargs -0 sed -i 's/\([^_[:alnum:]]\)min(/\1MIN(/g'
9 years ago
Andrew Tridgell
47b9f6598a
AP_Motors: allow change to heli rotor speed controls while armed
...
this helps a lot with tuning for gas helis
9 years ago
Caio Marcelo de Oliveira Filho
513f4fe986
AP_Motors: example uses millis/micros/panic functions
9 years ago
Andrew Tridgell
8f4ce7f20b
build: removed all nocore.inoflag files
...
these were APM2 specific
9 years ago
Robert Lefebvre
b89b0d7f9e
AP_MotorsHeli_Single: Move Servo_Test static variables to be class members
9 years ago
Robert Lefebvre
bb7f8c1999
AP_MotorsHeli: Create Servo Test functionality
9 years ago
Robert Lefebvre
eeb544d098
AP_MotorsHeli: Create SV_MAN=5=Oscillate servo setup mode.
9 years ago
Robert Lefebvre
4443ca9602
AP_MotorsHeli: Yaw servo to move when using SV_MAN param for setup.
9 years ago
Robert Lefebvre
c2dff8749e
AP_MotorsHeli: Change SV_MAN=2=Center to output _col_mid_pwm instead of 0 collective
9 years ago
Fredrik Hedberg
212eb85ff2
AP_MotorsHeli: Add min and max collective to manual servo modes
9 years ago
Robert Lefebvre
22729e6927
AP_MotorsHeli: Change servo manual #defines into enum
9 years ago