Michelle Rossouw
2cbcb2be87
Blimp: Code cleanups
4 years ago
Michelle Rossouw
ded488fd9f
Blimp: Remove most commented out code and other cleanups
4 years ago
Michelle Rossouw
b98bbcb678
Blimp: initial implementation of blimp vehicle type
4 years ago
Andy Piper
8d2f2443a2
Copter: add air mode aux function
5 years ago
Peter Barker
d5b1f1651e
Copter: remove unneeded set_range calls on RC Aux channels
...
This isn't an exhaustive list of channels used for auxillary input, so
that makes this wrong.
RC_Channel goes off the raw get_radio_in values, so setting these is a
pointless and potentially confusing state change.
Also, Plane and Rover don't do this - so things are more consistent
after this.
5 years ago
Randy Mackay
8724e2f160
Copter: minor comment change
5 years ago
Andrew Tridgell
328fff8585
Copter: fixed RC failsafe handling for no RC receiver
...
this stops us using uninitialised values in modes like circle which
can operate either with or without RC input. If we didn't have a RC
receiver attached then they would use a maximum yaw rate (which
produces quite a spectacular result for a tuned up racing quad)
5 years ago
Randy Mackay
eb433508f1
Copter: esc cal startup check moved outside rc output init
...
this ensures we don't accidentally enter esc calibration during motor test
6 years ago
Peter Barker
cd2ec1f57f
Copter: remove set_default_dead_zone statement with no effect
...
This is immediately undone in the unconditional code below the #if
6 years ago
Peter Barker
3b33f4ca4d
Copter: add floating-point-constant designators
6 years ago
Peter Barker
c7e21d95ef
Copter: move Log_Write_Error into library
6 years ago
IamPete1
ba3d1bc6c7
Copter: move E-stop state to SRV_Channel
6 years ago
Randy Mackay
f5208b1664
Copter: minor format fix
6 years ago
Peter Barker
450052aa80
Copter: rewrite read_radio for clarity
7 years ago
Peter Barker
a30cdf6806
Copter: eliminate failsafe.rc_override_active
...
Use RC_Channels::has_active_overrides() instead
7 years ago
Peter Barker
ec6c59faa3
Copter: move handling of disable-gcs-rc-overrides-channel-option up
7 years ago
Peter Barker
e7e56dde7a
Copter: move handling of RC switches into RC_Channel
7 years ago
Michael du Breuil
5825222818
Copter: Remove redundant throttle channel setting
7 years ago
Andrew Tridgell
2425c65e74
Copter: implement 'air-mode' for copter
...
this implements what betaflight calls 'air-mode'. This gives attitude
control when throttle is at zero, allowing for zero-throttle maneuvers,
plus keeping the copter level on the ground.
This was already implemented if an interlock switch was setup, but it
should also work with an arming switch. If using an arming switch then
throttle should not be considered zero as long as the arming switch
hasn't gone low.
7 years ago
Michael du Breuil
91a48a5040
Copter: Support new RC_Channels::read_input()
7 years ago
Michael du Breuil
d96919ed21
Copter: Use RC_Channels instead of hal.rcin
7 years ago
Pierre Kancir
50c3ed1460
Copter : allow rc_override input at start
...
found by chobitsfan
7 years ago
Andrew Tridgell
af4f0c29ba
Copter: enable TMODE (ToyMode) support
...
this is for the skyviper button based transmitter control
7 years ago
Andrew Tridgell
0d0f1d264b
Copter: fixed order of motor setup
7 years ago
Andrew Tridgell
c4b0d7bc35
Copter: removed calls to motors->enable()
7 years ago
Andrew Tridgell
8cf8f3a288
Copter: fixed collective input with H_SV_MAN=1 for heli
...
when H_SV_MAN=1 we do direct pass-thru so the user can test swash
range. The problem is that it uses norm_input() for throttle, which
depends on RC3_TRIM. Nowhere else in heli or copter do we depend on
RC3_TRIM, so the user gets a misleading idea of behaviour when testing
their swash.
7 years ago
Randy Mackay
010dc103be
Copter: increase RC input deadzones for roll pitch and yaw
...
Copter-3.5 testing resulted in a significant number of users reporting various issues like poshold and autotune were not functioning because their RC inputs were straying out of the deadzones
8 years ago
Pierre Kancir
436d0f8c84
ArduCopter: radio fix passthrough range on heli/coax/single
8 years ago
Randy Mackay
caa2148e45
Copter: move esc calibration startup check to after servo function initialisation
8 years ago
Andrew Tridgell
2ba6e7af35
Copter: fixed aux servos in RC failsafe
...
we should always output to channels
8 years ago
Randy Mackay
032bfad79f
Copter: move rc input check to esc_calibration_startup_check
...
No functional change
8 years ago
Randy Mackay
1bfbf0d43f
Copter: enable motors at end of initialisation
8 years ago
Lucas De Marchi
a589a84e32
ArduCopter: just call set_throttle_range()
...
Now set_throttle_range in AP_Motors does the right thing, calling out
the RCOutput method.
8 years ago
Randy Mackay
a25f51c893
Copter: delay up to 2sec for first radio pulse
...
Pixracer boards can take 1 second (or possibly longer) to start reading RC input. This ensure we see the user's high throttle to indicate the user wants to perform the ESC calibration
8 years ago
Peter Barker
ab13b3beaf
Copter: make rc checks verbose on failure
8 years ago
Peter Barker
bd6ffc025e
Copter: start conversion to AP_Arming_Copter
8 years ago
Andrew Tridgell
0f6d0c5ba9
Copter: combined tri, single, coax and multicopter into a single build
...
this allows copter to be just 2 builds, one for heli, and one for
everything else
8 years ago
Andrew Tridgell
5a87ae3f01
Copter: use new SRV_Channels API
8 years ago
Randy Mackay
12d024e0c6
Copter: rename FRAME to FRAME_TYPE
...
This unifies the plane and copter parameter names
8 years ago
Randy Mackay
217757fdc8
Copter: default FRAME_CLASS
8 years ago
Randy Mackay
0ac00dbfd6
Copter: add FRAME_CLASS parameter
8 years ago
Leonard Hall
0523570c5f
Copter: reduce dead zone for roll, pitch and yaw input
8 years ago
Leonard Hall
0a6714f4ae
Copter: rename variable ROLL_PITCH_YAW_INPUT_MAX
...
No functional change
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
9205416695
Copter: setup default safety mask based on motor mask
8 years ago
Andrew Tridgell
f18e0dadc9
Copter: added optional AdvancedFailsafe for copter and heli
9 years ago
Leonard Hall
e9d8a28ec0
Copter: AP_Motor's throttle_hover replaces throttle_average
9 years ago
Leonard Hall
dec9323127
Copter: remove THR_MIN
...
Equivalent is AP_Motors SPIN_MIN
9 years ago
Randy Mackay
6a1bdebf25
Copter: remove THR_MAX definition for changing throttle input range
...
We do not support changing the throttle input range from it's expected 0 ~ 1000
9 years ago
Andrew Tridgell
86d8450666
Copter: use loop rate for copter
...
this allows for SCHED_LOOP_RATE below 400 in SITL for copter
9 years ago