Commit Graph

972 Commits

Author SHA1 Message Date
Andrew Tridgell
191d803968 Copter: make PERF info message into a STATUSTEXT message
this makes it appear properly in tlogs. Also show both min and max
loop times
2015-02-16 10:02:53 +11:00
Randy Mackay
77d8f88e45 Copter: fence, rtl, land use alt-above-home 2015-02-12 15:08:00 +09:00
Randy Mackay
e081b9d1c7 Copter: home is set becomes three state 2015-02-12 15:00:50 +09:00
Randy Mackay
f4c392c64d Copter: pre_arm_checks returns success or failure
This makes the pre-arm check function consist with the other arming
check functions
2015-02-02 22:31:11 +09:00
Randy Mackay
64af4ff923 Copter: rename set_servos_4 to motors_output 2015-02-02 22:31:08 +09:00
Robert Lefebvre
8e8ec09740 Copter: update pos_control alt_max from fence at 1hz 2015-01-30 14:13:49 +09:00
Randy Mackay
f91fb9a4e8 Copter: rename frsky_telemetry_send function 2015-01-29 14:05:14 +11:00
Randy Mackay
34503de18e Copter: integrate SerialManager
Remove serial0, serial1 baud and protocol parameters
Pass serial_manager to GCS, GPS, mount, FrSky_telem objects during init
call SerialManager init_console on startup
use SerialManager's set_block_writes_all
2015-01-29 14:05:14 +11:00
Randy Mackay
c51ba8cd03 Copter: integrate mount frontend-backend restructure
initialise mount on startup
use Mount::has_pan_control method
Remove calls to unimplemented mount.configure_cmd
Remove call to update_mount_type which will be handled from within mount
lib
2015-01-29 13:57:18 +11:00
Randy Mackay
58ac9de94b Copter: update home position when disarmed
This resolves the issue in which the vehicle's position jumped back to
it's home location when disarmed and using the EKF.  This also makes
copter consistent with plane.
2015-01-22 14:39:50 +09:00
Randy Mackay
e94693e8ac Copter: remove unused throttle integrator 2015-01-21 14:38:06 +09:00
Robert Lefebvre
b8822a42b6 Copter: Change Compass logging to new DataFlash method that handles instances. 2015-01-21 14:37:52 +09:00
Randy Mackay
4059e02a8c Copter: move ch6 tuning to tuning.pde 2015-01-16 15:12:58 +09:00
Andrew Tridgell
c151f24672 Copter: updates for new AP_Baro API 2015-01-09 11:50:55 +11:00
Robert Lefebvre
20fce5c9ff Copter: Move landing gear code into new file 2015-01-07 11:58:20 +09:00
Robert Lefebvre
fd61c3179a Copter: Remove relay pointer from LandingGear object 2015-01-07 11:58:18 +09:00
Robert Lefebvre
e10e020062 Copter: Add Landing Gear functionality to main code 2015-01-07 11:58:16 +09:00
Staroselskii Georgii
84a15304a1 Copter: added AK8963 support 2015-01-07 08:41:13 +11:00
Andrew Tridgell
c784ee717b Copter: update for new OptFlow API 2015-01-03 14:16:33 +11:00
Randy Mackay
b6bcf841e1 Copter: remove second camera mount 2014-12-16 21:26:20 +09:00
Randy Mackay
aba829678a Copter: optflow instantiation format change
No functional change
2014-12-08 14:58:26 +09:00
Randy Mackay
c93c7af20c Copter: move update_optflow to sensors.pde
No functional change
2014-12-08 14:58:25 +09:00
Randy Mackay
67fdfffc2a Copter: remove OF_Loiter PIDs and tuning 2014-12-08 14:58:18 +09:00
priseborough
9e7709fa09 Copter: Expand EKF speed limit public method to handle control limits 2014-12-06 18:16:50 +11:00
priseborough
9844dacf40 Copter: Add EKF ground speed limit to loiter speed control
This is required to prevent the speed controller saturating the optical flow sensor during low altitude flying.
2014-12-06 18:16:50 +11:00
priseborough
715d64dce9 Copter: Check for new optical flow updates at 200Hz
Supports use of higher flow read rates if required.
2014-12-06 18:16:48 +11:00
priseborough
468c83c074 Copter : Check for new optical flow readings every 10ms
The driver polls the sensor asynchronously every 100 msec, so we need to continually check for new data.
2014-12-06 18:16:48 +11:00
priseborough
45c007d216 Copter : Correct comment on required optical flow update rate 2014-12-06 18:16:47 +11:00
priseborough
a72b6b179b Copter : Modify EKF optical flow data interface 2014-12-06 18:16:46 +11:00
priseborough
311206017c Copter : Update EKF optical flow data interface
Makes it compatible with the new PX4Flow interface
2014-12-06 18:16:46 +11:00
priseborough
27f9289391 Copter : Add range finder measurements to EKF optical flow data 2014-12-06 18:16:44 +11:00
priseborough
635e593d55 Copter : temporary mods to test use of flow sensor internal gyro data 2014-12-06 18:16:44 +11:00
priseborough
34249ffa42 Copter : EKF optical flow fusion support preliminary changes
Assumes optflow sensor has been modified to push data at a low rate, eg 10Hz
and velocity data is angular velocity, not linear velocity
2014-12-06 18:16:44 +11:00
priseborough
20e715aa13 Copter : Remove ADNS3080 flow sensor support 2014-12-06 18:16:43 +11:00
priseborough
5ef2208017 Copter: Change flow sensor read sample rate to 10Hz 2014-12-06 18:16:43 +11:00
Randy Mackay
7be78621f4 Copter: run_nav_updates at 50hz on Pixhawk, 25hz on APM2
Based on work by Jon Challinger (see earlier commit)
2014-12-05 14:01:16 +09:00
Jonathan Challinger
203b713f0d Copter: run_nav_updates at 100hz on pixhawk 2014-12-05 14:01:14 +09:00
Randy Mackay
8a61f5acd2 Copter: add comments to control switch debouncing 2014-10-31 15:48:28 +09:00
Jonathan Challinger
5c8b39562f Copter: rework control switch debouncing 2014-10-31 15:30:27 +09:00
Jonathan Challinger
b0594e8d56 Copter: supply wp_nav with attitude_control 2014-10-31 15:23:54 +09:00
Andrew Tridgell
4c0351a76a Copter: convert to new AP_InertialSensor API 2014-10-24 12:10:38 +11:00
Randy Mackay
f6ff1742d5 Copter: landing detector checks baro climb rate
Barometer climb rate must be -150cm/s ~ +150cm/s
This threshold is generous because we already use the inertial
navigation climb rate so this is just to catch cases where inertial nav
is very incorrect in it's climbrate estimates
2014-10-22 17:29:14 +09:00
Andrew Tridgell
c3d839456b Copter: support logging while disarmed 2014-10-17 16:29:59 +09:00
Randy Mackay
6becb1a722 Copter: add DCM check of yaw error
Triggers an "ekf" failsafe if the DCM yaw error is > 60deg
2014-10-16 17:22:14 +09:00
Randy Mackay
aa3e34a44a Copter: move update_optflow to sensors.pde
Also slightly shorten function name
2014-10-15 16:36:36 +09:00
Randy Mackay
717e63f47a Copter: instantiate optflow on Pixhawk
Run sensor reads from scheduler
2014-10-15 16:35:40 +09:00
Randy Mackay
992ce9b69c Copter: remove nav_guided structure
This has been replaced by guided_limit structure
2014-10-13 21:40:26 +09:00
Jonathan Challinger
96f50b7cd7 Copter: add throttle_zero state 2014-10-08 20:54:19 +09:00
Jonathan Challinger
fa9d10e59b Copter: log CURR message at 10hz 2014-10-08 20:49:36 +09:00
Randy Mackay
b9977a1115 Copter: add land_complete_maybe flag 2014-09-19 16:43:15 +09:00