Randy Mackay
a5c59ce36e
AP_Motors: include boost_throttle in get_motor_mask
7 years ago
Randy Mackay
f85e84cc89
AP_Motors: add override keyword to get_motor_mask
7 years ago
Randy Mackay
f536c53fa6
AP_MotorsMatrix: minor format fix
7 years ago
Peter Barker
937d8dac97
AP_Motors: remove unneeded initialisations
7 years ago
Michael du Breuil
a5b8279ea4
AP_Motors: Remove unused ADC include
7 years ago
bnsgeyer
0f75866042
AP_Motors: Tradheli-corrected get_motor_mask method
7 years ago
bnsgeyer
dec8c5de77
AP_Motors: convert heli code to use SRV_Channels
...
this converts the heli code to use the SRV_Channels output
functions. It does not change behaviour, but removes the last vehicle
type that did its own servo output calculations. This change also
fixed servo initialization conflicts.
Note that this also allows helis to be setup with more than one
channel for a particular output (eg. two separate channels for tail
servo if they are wanted). This isn't likely to be used much, but does
make heli consistent with other vehicle types
7 years ago
Jacob Walser
24e21b57ca
AP_Motors: add output_test_num api for motor testing
7 years ago
Jacob Walser
abcb845af5
AP_Motors: refactor output_test -> output_test_seq
7 years ago
Jacob Walser
9ce9f95692
AP_Motors: make output_test signatures consistent and ensure override
...
specifier on derived classes
7 years ago
ChristopherOlson
1709c258bf
AP_Motors:TradHeli - fix metadata for H_COL_CTRL_DIR
7 years ago
Andrew Tridgell
4e414c02f5
AP_Motors: use scaled actuators for single and coax frames
...
this allows for multiple servos with the same motor function
7 years ago
Andrew Tridgell
216bab4de4
AP_Motors: fixed default motor functions for single and coax copter
...
should be enabling motors 5 and 6 to match docs and SITL
7 years ago
bnsgeyer
b20ebc6540
AP_Motors: Tradheli- removes unnecessary code from swash servo trim bug fix
7 years ago
Jacob Walser
e5bd6e289e
AP_Motors: Add current limiting to 6DOF motors for Sub
7 years ago
bnsgeyer
c8488e3333
AP_Motors: Tradheli - swashplate servo trim fix for heli single and dual frames
7 years ago
ChristopherOlson
9aa685a6d8
AP_Motors:TradHeli - single rotor only - add support for H3-140 swashplates.
...
Also changes the old definition to H3 for swashplates with fixed control radius and adjustable servo position.
7 years ago
ChristopherOlson
f073c58f68
AP_Motors:TradHeli - add support for reverse collective swashplates
7 years ago
Andrew Tridgell
819de4acd5
AP_Motors: don't scale oneshot125 in AP_Motors
...
handle it in the HAL backends, to allow for correct resolution
7 years ago
Andrew Tridgell
80a1688361
AP_Motors: make a singleton
...
this is used by AP_ESCSerial
7 years ago
Andrew Tridgell
bd9df6d0ec
AP_Motors: added DShot to parameter docs
7 years ago
Andrew Tridgell
e55d3a0834
AP_Motors: fix mask passed to rc_set_freq
...
the full motor mask must be supplied to work correctly for oneshot and
dshot
7 years ago
Andrew Tridgell
2c84d77306
AP_Motors: setup for DShot output modes
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
bnsgeyer
690e8fd3f4
AP_Motors: TradHeli - Changed RSC mode 3 to a spline fit throttle curve
7 years ago
ChristopherOlson
96793a3ae7
AP_Motors:TradHeli - DDVP Ramp/Runup
...
Change to ramp and runup DDVP tail rotor to prevent torque pitching the frame and provide runup in sync with main
rotor like a mechanically driven tail.
Fix some comments and remove indents found in whitespace in AP_MotorsHeli.cpp and AP_MotorsHeli.h
7 years ago
night-ghost
3165d72647
AP_Motors: reduce unnecessary multiple call of get_compensation_gain()
7 years ago
bnsgeyer
7a9e424977
AP_Motors: added comments to indicate parameter indices previously used by RSC_PWM_MIN, RSC_PWM_MAX, and RSC_PWM_REV
7 years ago
Andrew Tridgell
2c73b374f5
AP_Motors: protect against writes to NULL servo_aux
...
if user changes parameter while setting up it could crash
7 years ago
Andrew Tridgell
bdb9f062ae
AP_Motors: removed unused pwm parameters for heli
7 years ago
bnsgeyer
ac2e933358
AP_Motors: Tradheli - Fixed Directdrive Variable Pitch Feature
7 years ago
Leonard Hall
0a10deb3f7
AP_Motors: Fix gain scaling on Throttle Average Max and reduce additional gain on low throttle for Single and Coax.
7 years ago
Leonard Hall
eb6ab53f6c
AP_Motors: fix optimum thrust calcs
7 years ago
Hiroshi Takey (hiro2233)
aa6f66f29b
AP_Motors: Updated Motor example.
7 years ago
bnsgeyer
63bafa2c7f
AP_Motors: Tradheli- fixes servo_test function for Dual Heli frame
7 years ago
Andrew Tridgell
6358081b18
AP_Motors: apply tailsitter min spin to both motors
7 years ago
Andrew Tridgell
878d2e2563
AP_Motors: fixed tailsitter use of SPIN_MIN
7 years ago
bnsgeyer
37ea64513d
AP_Motors: TradHeli - fixed servo test function
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
Andrew Tridgell
45d6f3bf75
AP_Motors: fixed motor channel handling
7 years ago
Andrew Tridgell
fc237ee9a0
AP_Motors: merge fixed from rebase
7 years ago
Andrew Tridgell
efea83e424
AP_Motors: fixed MotorsMatrix set_update_rate()
7 years ago
Andrew Tridgell
1e62b5d5c7
AP_Motors: many to one mapping of motors
...
this allows multiple outputs for one motor number
7 years ago
Andrew Tridgell
03e1f6967f
AP_Motors: removed enable() API
...
all output channels are already enabled by SRC_Channels::enable_aux_servos()
7 years ago
Andrew Tridgell
c8b6be6736
AP_Motors: fixed scaling of servo outputs
...
thanks to bnsgeyer for noicing this in issue #6977
this will break existing dual-heli setups, but there are so few people
flying them so far that I think it is a worthwhile change
7 years ago
ChristopherOlson
7e086e8c4d
AP_Motors: Fix DDFP so tail motor doesn't start without Channel 8 high
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
e1f8e7bc58
AP_Motors: cope with H vs X frame in HeliQuad
7 years ago
Andrew Tridgell
09c3eeaf0c
AP_Motors: improved heli-quad yaw control
7 years ago