Commit Graph

983 Commits

Author SHA1 Message Date
Randy Mackay 088a49abbf Copter: remove APM1, APM2 support 2015-03-13 16:41:03 +09:00
Randy Mackay fbfc94cf69 Copter: remove GPS glitch and failsafe
The EKF failsafe now captures all failures that could lead to a bad
position including GPS glitches and a bad compass meaning we do not need
this protection in the main flight code.
2015-03-13 16:40:46 +09:00
Randy Mackay 6f6847c025 Copter: use only InertialNav_EKF
remove calls to unsupported functions including ignore_next_error,
set_altitude, etc.
2015-03-13 16:40:37 +09:00
Randy Mackay d7f624be39 Copter: remove baro_glitch protection 2015-03-13 16:40:27 +09:00
Leonard Hall c537c38646 Copter: add update_throttle_low_comp
sets the priority of throttle vs attiude control so that attitude is
favoured (i.e. high throttle-low-comp) during dynamic flight while
throttle is favoured when vehicle may be landing.
2015-03-10 12:20:24 +09:00
Leonard Hall d5bbe6de03 Copter: remove TRIM_THROTTLE
throttle_trim is replaced by throttle_average which is initialised to
the throttle_mid parameter value at startup
2015-03-06 14:02:19 +09:00
Leonard Hall c78480e14f Copter: rename loiter_pos to pos_xy
Also renamed throttle_rate to vel_z, throttle_accel to accel_z
2015-03-06 14:02:17 +09:00
Leonard Hall e232867661 Copter: move LOITER_RATE to 2-axis PI controller
Also rename LOITER_RATE to VEL_XY for parameters, definitions, variables
2015-03-06 14:02:15 +09:00
Leonard Hall 8ba195a3a2 Copter: add Mot and Rate dataflash logging 2015-03-06 14:02:07 +09:00
Randy Mackay bae424fa88 Copter: pass in loop_rate to motors constructor 2015-03-03 15:48:37 +09:00
Andrew Tridgell 7c975808f8 Copter: provide terrain height to rangefinder
used for power saving
2015-02-23 14:15:14 +11:00
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