Randy Mackay
8c488ebd87
Copter: use common Log_Write_Camera
...
pair programmed with Craig Elder
2014-06-17 14:11:39 +10:00
Randy Mackay
11e08e1492
DataFlash: common Log_Write_Camera
...
pair programmed with Craig Elder
2014-06-17 14:11:36 +10:00
Randy Mackay
8c48b65175
Copter: bug fix to remove home variable
...
pair programmed with Craig Elder
2014-06-11 12:01:48 +09:00
Randy Mackay
d0194b7a9d
Copter: remove home variable
...
home has moved to ahrs
saves 15 bytes of RAM
2014-06-11 11:05:15 +09:00
Randy Mackay
5c305989b9
Copter: set home alt to absolute alt
2014-06-11 11:04:52 +09:00
Randy Mackay
09fc777ab9
Copter: slow motors after landing in AUTO
...
This resolves an issue in which the vehicle could tip over if the pilot
did not reduce the throttle to zero soon after landing in AUTO mode
2014-06-10 22:56:53 +09:00
Randy Mackay
0c9a496262
AC_AttControlHeli: add ATC_RATE_FF_ENAB parameter
...
Because this class inherits from AC_AttitudeControl library this new
parameter must be added here as well
2014-06-10 21:25:33 +09:00
Jason Short
a873942f73
Fix to restore Gimbal control after Mission with ROI
2014-06-10 20:03:05 +09:00
Randy Mackay
810c87969c
Copter: Ch7/8 switch to enable/disable feed forward and accel limiting
2014-06-10 20:03:04 +09:00
Randy Mackay
46f25c52a4
AC_AttControl: allow enabling/disabling feedforward and accel limiting
2014-06-10 20:03:02 +09:00
Randy Mackay
a2f54fdf2c
AC_WPNav: smooth waypoint by freezing feed-forward and allowing overshoot
...
First part of this fix is freezing the position controller's xy-axis
feed foward as we transition to the new segment.
Second part is work-around for straight line segments in that we allow
the target point to actually overshoot the end of the segment by up to
2m if the segment is a "fast waypoint". Ideally we would instead notice
the waypoint has been completed and take any left over time or distance
and move our target along the track towards the next waypoint but that
would require a much larger change to allow the wpnav lib to hold the
next two waypoints.
2014-06-10 20:03:01 +09:00
Randy Mackay
ce85d1f6b2
AC_WPNav: use curr pos target as spline origin
...
We only use the current target position as origin if the waypoint
controller is active (i..e has been used in the past 1 second). This is
consistent with how we initialise straight line waypoints
2014-06-10 20:02:59 +09:00
Randy Mackay
130eb07d48
AC_AttControl: angle_ef_roll_pitch_rate_ef_yaw supports zero yaw accel
2014-06-10 20:02:58 +09:00
hazyhxj
f2d3fed612
Add name to GTI_Success.txt
...
this is just a test
2014-06-10 20:02:56 +09:00
Randy Mackay
02b4b21f67
AC_AttControl: disable feed forward by default
...
Can be re-enabled by setting ATC_RATE_FF_ENAB parameter to 1
2014-06-10 20:02:55 +09:00
Randy Mackay
b57c0dabf6
AC_AttControl: check accel_rp_max instead of rate_bff_ff_enabled
...
We use the accel_rp_max, accel_y_max to check whether to apply accel
limiting or not. This is related to separate from the
body-frame-feed-forward.
2014-06-10 20:02:54 +09:00
Randy Mackay
91b1d20b70
Heli: integrate AttControl's set_yaw_target_to_current_heading
2014-06-10 20:02:52 +09:00
Randy Mackay
08801eebf2
Copter: integrate AttControl's set_yaw_target_to_current_heading
2014-06-10 20:02:51 +09:00
Randy Mackay
2bb30b3ef9
AC_AttControl: add set_yaw_target_to_current_heading method
2014-06-10 20:02:49 +09:00
Randy Mackay
d9c966c927
AC_AttControl: RATE_FF_ENAB param to disable rate feed forward
2014-06-10 20:02:48 +09:00
Randy Mackay
4d4c7a2118
AC_AttControl: move freeze_ff to flags structure
2014-06-10 20:02:46 +09:00
Randy Mackay
a662f87ffb
AC_AttControl: remove resolved To-Do
...
This To-Do is resolved by heli flight modes calling the
relax_bf_rate_controller method
2014-06-10 20:02:45 +09:00
Randy Mackay
7f734f38d6
AC_AttControl: add earth frame angle constraints
...
This should help recovery time if pilot switches out of ACRO (into
Stabilize, AltHold, etc) while inverted
2014-06-10 20:02:43 +09:00
Randy Mackay
698cf934b8
AC_AttControl: formatting fixes
2014-06-10 20:02:42 +09:00
lthall
2bb63857fa
AC_AttControl: clean up stabilize
2014-06-10 20:02:40 +09:00
lthall
c24d293e1b
AC_AttControl: zero _accel_xyz_max stops feed forward
...
Also added place holder for turning off feed forward.
2014-06-10 20:02:39 +09:00
lthall
babe655b8f
Copter: Remove acro acceleration slew todo
...
It has already been done :)
2014-06-10 20:02:37 +09:00
lthall
8bbce7e658
AC_PosControl: freeze feed forward for alt control in Auto
2014-06-10 20:02:36 +09:00
lthall
922026c15c
AC_AttControl: rate compensation for yaw
2014-06-10 20:02:34 +09:00
lthall
0d87298221
AC_PosControl: freeze feed forward and vector fixes
2014-06-10 20:02:33 +09:00
Randy Mackay
4221833028
Copter: flip records starting attitude
...
Previously flip relied on the attitude controller not updating the earth
frame target during the flip which can't be guaranteed. Safer for flip
to maintain it's own copy of the original attitude .
2014-06-10 20:02:32 +09:00
Randy Mackay
75c328a752
TradHeli: integrate init_targets rename to relax_bf_rate_controller
2014-06-10 20:02:30 +09:00
Randy Mackay
77d5d682c1
Copter: integrate init_targets rename to relax_bf_rate_controller
...
Also remove unnecessary init_targets from flight mode init functions.
2014-06-10 20:02:29 +09:00
Randy Mackay
5209598459
AC_AttControl: rename init_targets to relax_bf_rate_controller
2014-06-10 20:02:27 +09:00
lthall
1bdde31f6b
Copter: Fix zero throttle flip issue Stabilize
...
The problem is that the init_targets is intended to ensure the
controller doesn't build up the I term when the throttle is low. Because
it is poorly named (or used) it have been written to do something else.
Here I change it to do what the code is trying to use it to do.
2014-06-10 20:02:01 +09:00
Andrew Tridgell
105382bf21
Plane: release 3.0.4beta2
2014-06-07 20:52:08 +10:00
Andrew Tridgell
94876dccb1
autotest: added Ballarat to autotest locations
2014-06-07 20:52:08 +10:00
Randy Mackay
915dad2da4
AC_Circle: use fast_atan2 to calc bearing from center
...
This does not save much time because it's only called at initialisation
2014-06-06 18:51:09 +09:00
Randy Mackay
f23e94707c
AC_WPNav: use fast_atan2 for bearing calcs
2014-06-06 18:51:08 +09:00
Randy Mackay
083f2898a9
Copter: use fast_atan2 for bearings to home and next WP
2014-06-06 18:51:06 +09:00
Randy Mackay
919b0ea29b
CPUInfo: add fast_atan2
2014-06-06 18:51:05 +09:00
David Dewey
17374ff5e8
AP_Math: fast_atan2
...
This is 126us per call vs 199us on the AVR. it is accurate to about
0.28 degrees
Committed by rmackay9 but contribution is from David Dewey
2014-06-06 18:50:41 +09:00
Randy Mackay
f5f206b055
Copter: set inav alt to zero when arming
2014-06-06 18:42:45 +09:00
Ju1ien
28ce66f314
INav: clear historic z-axis position estimate when set_altitude called
2014-06-06 18:42:42 +09:00
Ju1ien
abd1370b2c
Copter: flag stays landed unless pilot raises throttle
2014-06-06 18:42:30 +09:00
Valentin Brossard
9fcfea5404
Copter: accept DO_CHANGE_SPEED outside of missions
...
https://github.com/diydrones/ardupilot/issues/1095
2014-06-06 16:13:22 +09:00
Ju1ien
fd9502d3fa
Copter: Improve surface tracking dynamics
...
This little fix will allow much higher sonar_gain without the
oscillating effect it used to bring.
2014-06-06 15:32:49 +09:00
Randy Mackay
4f75cbcce0
AutoTest: fix error reporting for copter AVC mission
2014-06-06 11:42:57 +09:00
Randy Mackay
efd6d6dc70
AC_WPNav: spline div by zero fix
...
Also add check for straight line navigation to ensure speed is not
reduced below zero when it hits the leash limit
Also minor formatting changes
2014-06-05 22:23:38 +09:00
lthall
0912bec8f5
Spline div zero and leash limit fix
2014-06-05 22:23:35 +09:00