Peter Barker
7377b3f8f2
ArduCopter: allow compilation with HAL_LOGGING_ENABLED false
2024-01-17 18:25:55 +11:00
Leonard Hall
5d5ccc8c78
Copter: Update ACRO to use rate parameters and update expo function
2021-09-23 20:03:53 +09:00
Leonard Hall
f3dc47ce3d
Copter: Add units to the AC_AttitudeControl Library
2021-09-09 08:01:14 +09:00
Leonard Hall
a1ad194abd
Copter: seperate kinimatic shaping from pid limit setting
2021-07-10 20:25:05 +09:00
Leonard Hall
3b0a870504
Copter: Rename set_yaw_target_to_current_heading
2021-05-26 16:03:05 +09:00
Leonard Hall
e294991b08
Copter: Fix before squash
2021-05-24 20:13:37 +10:00
Leonard Hall
4bae8f03a4
Copter: Use PosControl fixes
2021-05-24 20:13:37 +10:00
Randy Mackay
67e15f8d07
Copter: autotune entry checks moved to init
2021-05-03 20:23:27 -04:00
Tatsuya Yamaguchi
c42681f4f2
Copter: add exit() method to Mode class
2021-04-26 09:56:34 +09:00
Peter Barker
1e0f106ed4
Copter: make AutoTune object private state to ModeAutoTune
2021-03-30 11:23:10 +11:00
Tatsuya Yamaguchi
f4eed612d7
Copter: add allows_autotune function to Mode class
2021-03-23 22:48:20 +11:00
Tatsuya Yamaguchi
0cce5699b2
Copter: change from control_mode to flightmode
2021-03-23 22:48:20 +11:00
bnsgeyer
c75848435e
Copter: fix heli land detector and incoporate reset_I_smoothly
2020-12-21 23:33:48 -05:00
Peter Barker
afa153fb6f
Copter: remove wrapper for get_avoidance_adjusted_climbrate
...
Only the modes are interested in this - there's no point having it on
the Copter object.
2020-08-22 08:31:25 +09:00
Peter Barker
5ece75a09a
Copter: AC_AutoTune writes events itself now
2019-11-01 14:47:52 +08:00
Peter Barker
b4537bebd8
Copter: move control_mode_t into being Mode::Number enum class
...
Fixes this compiler error:
In file included from ../../ArduCopter/sensors.cpp:1:
In file included from ../../ArduCopter/Copter.h:195:
../../ArduCopter/mode.h:1291:9: fatal error: declaration shadows a variable in the global namespace [-Wshadow]
AUTO, // after A and B defined, pilot toggle the switch from one side to the other, vehicle flies autonomously
^
../../ArduCopter/defines.h:38:5: note: previous declaration is here
AUTO = 3, // fully automatic waypoint control using mission commands
^
1 error generated.
2019-09-13 13:12:08 +09:00
Peter Barker
676d75c391
Copter: correct namespacing of Copter modes
...
This makes us look like Rover and Plane in terms of namespacing for the
Mode classes, and removes a wart where we #include mode.h in the middle
of the Mode class.
This was done mechanically for the most part.
I've had to remove the convenience reference for ap as part of this.
2019-06-11 09:18:22 +09:00
Peter Hall
3fe63d5bc0
Copter: only save autotune gains if disarmed in autotue
2019-05-07 09:23:50 +10:00
Peter Barker
46a6f45e4a
Copter: adjust for desired spool state and spool state renames
2019-04-14 12:18:03 +09:00
Peter Barker
e744df585c
Copter: avoid int32_t<->float conversions
2019-03-01 12:09:58 +11:00
Peter Barker
3521d98b52
Copter: move handling Write_Event into AP_Logger
2019-02-04 09:30:07 +09:00
Peter Barker
6fc76a32af
GLOBAL: use AP::logger() and strip redundant Log_ from methods
2019-01-18 18:08:20 +11:00
Peter Barker
b47733142f
GLOBAL: rename DataFlash_Class to AP_Logger
2019-01-18 18:08:20 +11:00
Leonard Hall
2ddb3f6697
Copter: desired-ground-idle replaces spin-when-armed
2019-01-15 11:41:44 +09:00
Andrew Tridgell
b897551e0b
Copter: log PIDs at full rate during AUTOTUNE twitch
2018-12-22 15:10:23 +11:00
Andrew Tridgell
89d54767b1
Copter: convert to use AC_AutoTune library
...
this maintains existing behaviour
2018-12-18 10:34:42 +09:00
Peter Barker
e02a645354
Copter: use fabsf() instead of labs()
...
wrap_180_cd returns a float
substracting a float from an int32 returns a float
2018-10-16 10:17:12 +11:00
Michael du Breuil
7e1ed948f5
Copter: Cope with AC_PosControl renaming
2018-09-20 15:15:45 -07:00
Peter Barker
214adc121f
Copter: mode_autotune: factor out common filter reset code
2018-08-21 08:45:59 +09:00
Peter Barker
9c72a8ecc7
Copter: simplify autotune's filter value determination
2018-07-31 13:37:43 +09:00
Peter Barker
f4be542169
Copter: autotune: raise priorities of autotune success and param saved
...
Closes #8734
2018-06-30 11:40:39 +09:00
Randy Mackay
a38507623d
Copter: autotune minor comment fix
2018-04-12 20:51:37 +09:00
Randy Mackay
1b38a377ff
Copter: autotune replace 1 with true
2018-04-12 20:51:37 +09:00
Leonard Hall
7204d46ccb
Copter: Autotune - Fix low angle P issue
2018-04-12 20:51:37 +09:00
Leonard Hall
5c1d895f82
Copter: autotune announce only while tuning
2018-04-06 14:48:28 +09:00
Leonard Hall
83fac326a4
Copter: autotune check for vel overshoot in angle P
...
this change reduces the chance of over tuned angle P
2018-04-06 14:48:28 +09:00
Ebin
d8f56b3511
ArduCopter: changed signature for get_pilot_desired_lean_angles()
...
Removes first two redundant input parameters, makes fn non static, makes fn const
2018-03-19 17:51:39 +09:00
Leonard Hall
8ac653cabf
Copter: AutoTune integrate renamed use_sqrt_controller
2018-03-16 13:50:57 +09:00
Leonard Hall
93de23e7c4
Copter: get-pilot-desired-lean-angles accepts another angle-max
2018-03-16 13:50:57 +09:00
Leonard Hall
9544b1763b
Copter: replace smoothing gain with AC_AttitudeControl::set_input_tc
2018-03-16 13:50:57 +09:00
Peter Barker
bb9af3b79d
Copter: autotune: correct compilation when logging disabled
2018-02-27 07:43:13 +09:00
Andrew Tridgell
0ed75052f8
Copter: enable parameters inside mode objects
...
this adds FHLD_* parameters for FlowHold mode. It is a large patch as
it needs to disentagle the mode class to enable it to be used in
Parameters.h
2018-02-08 17:36:33 +11:00
Peter Barker
ab7a9c9073
Copter: use zero_throttle_and_relax_ac in poshold, drift and autotune
2018-02-02 14:59:16 +09:00
Peter Barker
996115c0d3
Copter: eliminate MAIN_LOOP_SECONDS macro
2018-01-20 15:35:58 +11:00
Randy Mackay
c3fbf2671c
Copter: rename control_xx.cpp files to mode_xx.cpp
2017-12-12 10:39:26 +09:00