Andrew Tridgell
134d8b941b
AP_Motors: added betaflight-x-reversed frame type
5 years ago
Mark Whitehorn
68dcab3edb
AP_Motors: add copter tailsitter differential torque frames
5 years ago
Gone4Dirt
98a4335af4
AP_Motors: Added support for autorotation
5 years ago
Bill Geyer
63d9b47530
AP_Motors: make init_targets_on_arming global
5 years ago
Leonard Hall
4a1a5e81ea
AP_Motors: Add variable to record the final thrust value
...
Add Throttle_Out for other frames
5 years ago
Leonard Hall
036b47ec56
AP_Motors: Add seperate roll and pitch limits
6 years ago
Leonard Hall
0bb9db5139
AP_Motors: add feedforward input to mixers
6 years ago
Leonard Hall
77f8ec9f43
AP_Motors: formatting fixes
6 years ago
1iggy2
7323a5da9d
AP_Motors: Added Octo I frame
6 years ago
Peter Barker
1e606cdc5b
AP_Motors: make desired spool state and spool state enum-classes
...
This will help avoid getting the enumerations mixed up
6 years ago
Tom Pittenger
3bbd80a5de
AP_Mount: unify singleton naming to _singleton and get_singleton()
6 years ago
Andrew Tridgell
cf8b059531
AP_Motors: added 3 more motor orders for X quads
...
- betaflight X
- DJI X
- clockwise X
6 years ago
bnsgeyer
ac87b3e1e5
AP_Motors: spool state moved from multi to parent
...
Also rename SPIN_WHEN_ARMED to GROUND_IDLE
6 years ago
IamPete1
c82f158b56
AP_Motors: add get roll factor
6 years ago
Andrew Tridgell
d907c5757d
AP_Motors: added PlusRev motors type
...
this is a plus frame with reversed motor direction, needed for quad in
Morse simulator
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
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
abcb845af5
AP_Motors: refactor output_test -> output_test_seq
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
80a1688361
AP_Motors: make a singleton
...
this is used by AP_ESCSerial
7 years ago
Andrew Tridgell
2c84d77306
AP_Motors: setup for DShot output modes
7 years ago
Michael du Breuil
98e327640d
AP_Motors: Use battery singleton
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
55d5fe843e
AP_Motors: added Heli_Quad backend
...
supporting collective pitch quadcopters
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
murata
66fc49889b
AP_Motors: add dodeca-hexa
8 years ago
Andrew Tridgell
1ad5e1db4e
AP_Motors: integrate AP_MotorsHeli_Dual
...
fixed issues with combining with Heli_Single
8 years ago
Rustom Jehangir
237ba87ca4
AP_Motors: New AP_Motors6DOF used by Sub
8 years ago
Andrew Tridgell
1a74b7fc0c
AP_Motors: started on tailsitter support
8 years ago
Andrew Tridgell
af44e9fdbd
AP_Motors: added frame type 11 for Y6 to match FireFly6
...
using same motor output mapping as AvA
8 years ago
Andrew Tridgell
638f1364be
AP_Motors: adapt to new RC_Channel API
8 years ago
Randy Mackay
bdfb12123f
AP_Motors: fix frame-type enum for Y6B
...
Also remove unused NEW_PLUS
8 years ago
Randy Mackay
7be0f437a9
AP_Motors: consolidate matrix multicopters
...
AP_MOTORS_x_FRAME definitions moved to motor_frame_type enum
init function and now accepts frame-class and type to perform initial motor setup
set_frame_class_and_type allows real-time changing of motor setup
initialised_ok flag and accessor records whether setup was successful
8 years ago
Randy Mackay
41189758b8
AP_Motors: move some functions to protected
...
Also minor formatting fix
8 years ago
Andrew Tridgell
ce517384e1
AP_Motors: support MODE_PWM_BRUSHED16KHZ
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
Andrew Tridgell
e9e3a3f491
AP_Motors: added get_pwm_type()
9 years ago
Andrew Tridgell
66c4995c9d
AP_Motors: added get_desired_spool_state()
9 years ago
Andrew Tridgell
bc7488e2f2
AP_Motors: fixed typos
9 years ago
Randy Mackay
a1b573ed0a
AP_Motors: rename throttle_ave_max to throttle_avg_max
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
255bda9f9c
AP_Motors: allow setting of loop rate
...
this allows for SCHED_LOOP_RATE in copter
9 years ago
Leonard Hall
b3fcab8044
AP_Motors: minor comment fix
9 years ago
Randy Mackay
72b86a3f99
AP_Motors: remove unused stabilizing flag
...
Also initialise some members to resolve converity warnings
9 years ago
Randy Mackay
e41f798ba1
AP_Motors: remove unused set_stabilizing
9 years ago
Andrew Tridgell
fd7c87e629
AP_Motors: allow enabling oneshot on a subset of motors
9 years ago