Jonathan Challinger
4a397a8d67
AC_PosControl: Protect from divide-by-zero in get_stopping_point_xy
10 years ago
Randy Mackay
1754cacf3c
AC_PosControl: remove completed to-do comments
10 years ago
Randy Mackay
cf3b2be99c
AC_PosControl: 4hz filter on z-axis velocity error
11 years ago
Randy Mackay
665f353416
AC_PosControl: 2hz filter on accel error
...
Replaced hard-coded filter with LowPassFilter class allowing the
filter's to be 2hz on both APM and Pixhawk
11 years ago
Randy Mackay
1362bdc338
AC_PosControl: smooth take-off with accel PID's I term
...
This avoids an instantaneous jump in throttle during take-off by loading
the accel PID's I term with the expected change in throttle level
11 years ago
Randy Mackay
70568225a6
AC_PosControl: init members to resolve compiler warnings
11 years ago
Randy Mackay
9233bbab14
AC_PosControl: cast fabs to float to resolve compiler warnings
11 years ago
Jonathan Challinger
762bb3e6e8
AC_AttitudeControl: Limit _pos_target.z to below alt_max before computing error
11 years ago
Jonathan Challinger
5f66027ba3
AC_AttitudeControl: Fixup some minor mistakes in AC_PosControl
11 years ago
Randy Mackay
82ed70b25e
AC_PosControl: add xyz velocity controller
...
Velocity controller interpretsthe velocity requests as
desired velocities (i.e. feed forward). These are then used to update
the target position and also added to the target velocity.
Also renamed the set_desired_velocity() function to
set_desired_velocity_xy() to make clear only lat and lon axis are
updated.
11 years ago
Randy Mackay
4d4c7a2118
AC_AttControl: move freeze_ff to flags structure
11 years ago
lthall
8bbce7e658
AC_PosControl: freeze feed forward for alt control in Auto
11 years ago
lthall
0d87298221
AC_PosControl: freeze feed forward and vector fixes
11 years ago
Randy Mackay
2b0f142a17
AC_PosControl: fix typo in D-filter definition
11 years ago
Randy Mackay
29ca7a10df
AC_PosControl: set alt hold accel control D term filter
11 years ago
Randy Mackay
c13db680b7
AC_PosControl: remove reset_I_xy
...
lean_angles_to_accel is now used to load the position rate I terms based
on vehicle's initial roll and pitch angle
11 years ago
Randy Mackay
cd8b1f278c
AC_PosControl: remove unused _cos_yaw variable
...
Also removed _sin_yaw, _cos_pitch, _step saving a total of 17bytes of
RAM
Also made get_speed_up, get_speed_down, lean_angles_to_accel functions
const
11 years ago
Randy Mackay
0819e05896
AC_PosControl: lean_angles_to_accel added for smooth initialisation
...
init_xy_controller also added to capture initialisation all in one place
11 years ago
lthall
21c93e48ab
AC_PosControl: include vel error when get_stopping_point_z
...
Pair programmed with Randy
11 years ago
Randy Mackay
a1f1dd8059
AC_PosControl: add is_active_z method
...
Consolidated z-axis timeout checks to save 4bytes of RAM
Added POS_CONTROL_ACTIVE_TIMEOUT_MS to make timeout consistent
11 years ago
Randy Mackay
937e9ea687
AC_PosControl: add set_target_to_stopping_point_xy method
...
Fixed bug in get_stopping_point_xy in which it would update Z-axis
target if vehicle was moving less than 10cm/s horizontally
11 years ago
Randy Mackay
9f63de9b59
AC_PosControl: set_speed_z accepts positive descent speeds
11 years ago
Randy Mackay
098f8169b0
AC_PosControl: add keep_xy_I_terms method
...
Stops horizontal PID's I terms from being reset when the controller is
next updated
11 years ago
Ju1ien
6c71569775
AC_PosControl: update_xy_controller allows not resetting I term
11 years ago
Randy Mackay
09a35cf90f
AC_PosControl: bugfix for freezing I-term build-up
11 years ago
Randy Mackay
e565ee6d33
AC_PosControl: stop I term build-up when motors at max
11 years ago
Randy Mackay
6f6c9e2585
AC_PosControl: bug fix to vertical speed limit
...
Vehicle was not reaching target climb or descent rate because of
incorrectly defaulted acceleration
11 years ago
Randy Mackay
7e376bc517
PosControl: update_pos_controller renamed to update_xy_controller
11 years ago
Randy Mackay
90e205c905
AC_PosControl: replace safe_sqrt with pythagorous2
11 years ago
Randy Mackay
dd45647626
AC_PosControl: update some comments re leash lengths
11 years ago
Holger Steinhaus
345115fddd
AC_PosControl: fixed leash length calc for descent speed
11 years ago
jschall
024855014f
AC_PosControl: update _pos_error if it is being limited
...
This fixes a bug that causes 10hz throttle noise.
11 years ago
Randy Mackay
9130c88f15
AC_PosControl: throttle rate to simple P controller
11 years ago
Randy Mackay
94fb9c4274
AC_PosControl: replace APM_PI with AC_P
11 years ago
Randy Mackay
8b8d6a8e01
AC_PosControl: use trig values from ahrs
11 years ago
Randy Mackay
551836c49d
AC_PosControl: make some methods const
11 years ago
Randy Mackay
26b257c8ba
AC_AttControl: alternative get_stopping_point_z
11 years ago
Randy Mackay
1b8791a142
AC_PosControl: remove debug
11 years ago
Randy Mackay
de34359808
AC_PosControl: recalculate leash when speed or accel modified
11 years ago
Randy Mackay
80ae3dca2e
AC_PosControl: remove debug
11 years ago
Randy Mackay
bbcf8cc84c
AC_PosControl: add horizontal pos control
11 years ago
Randy Mackay
3ce1c0a9d5
AC_PosControl: add get_alt_error method
11 years ago
Randy Mackay
8988b48ad8
AC_PosControl: add init take-off
11 years ago
Randy Mackay
dcac124105
AC_PosControl: add throttle controller
11 years ago
Randy Mackay
05bb943a69
AC_AttControl: first draft of PosControl class
11 years ago
Randy Mackay
c9415a08f1
AC_WPNav: use ahrs trig values
11 years ago
Randy Mackay
5767aa47d9
AC_WPNav: reduce leash length for stopping
...
We now limit the target stopping point to 1x the xy leash length while
previously it was 2x. This is justified because this limit is only used
when the copter is travelling at higher speeds but at higher speeds air
drag tends to make the copter stop more quickly naturally.
11 years ago
Randy Mackay
952afd296e
Copter: initialise waypoint leash length
...
Without this initialisation the first RTL could be too aggressive as it
tries to stop too suddenly
11 years ago
Andrew Tridgell
30fffa5854
AC_WPNav: fixed some build warnings
11 years ago
Tobias
c3309d909c
AC_WPNav: make more member pointers const
11 years ago