Commit Graph

1010 Commits

Author SHA1 Message Date
Randy Mackay
276b2dcf5e Copter: move lost copter check to separate function
Also run from scheduler instead of from arm/disarm stick checks
Run at 10hz instead of 1hz
soundalarm_counter to uint8
Disable if equivalent aux switch is setup
Remove SEVERITY_LOW message because the GCSs never print these anyway
2015-04-29 00:05:03 +09:00
Julien Dubois
b7a6e3bf2c Copter: fix update_thr_average to run at 100hz
Committed by Randy on Julien's behalf
2015-04-28 22:44:59 +09:00
Tom Pittenger
66c7090f00 Copter: fix compile warnings by converting .f to .0f 2015-04-24 14:24:52 +09:00
Randy Mackay
37e8d1a338 Copter: PosController alt limit from fence and EKF 2015-04-24 10:58:03 +09:00
Paul Riseborough
133b8f5ad7 Copter: Allow EKF to pull data from range finder object 2015-04-24 10:56:53 +09:00
Niels Joubert
704e75d140 ArduCopter: Remove kruft from old RTK driver 2015-04-24 08:01:32 +10:00
Randy Mackay
bfd24801ea Copter: minor format fix 2015-04-21 21:47:19 +09:00
Arthur Benemann
7cf883a61c Copter: increase the telemetry receive function rate to 400Hz
gimbal loop runs at 100Hz so to respond in time the gcs_check_input must run at a faster rate, the process are asyncronus
2015-04-21 21:45:31 +09:00
Randy Mackay
a27f383612 Copter: remove duplicate IMU/ATT logging
Previously IMU and ATT data could be logged at both a high rate
and a low rate.  This patch makes it skip the low rate logging
if the high rate is enabled
2015-04-20 13:49:09 +09:00
Randy Mackay
dfb720bab6 Copter: rename FULL_IMU logging to IMU_FAST
This naming is consistent with the earlier ATTITUDE_FAST option and
clarifies that it's the rate that's increased rather than the content.
2015-04-20 13:49:04 +09:00
Randy Mackay
2dbff9c544 Copter: remove scheduler table for 100hz CPUs
We only support high performance CPUs capable of 400hz
2015-04-20 13:49:01 +09:00
Peter Barker
5a45de5e00 Copter: IMU full-rate logging LOG_BITMASK flag 2015-04-20 13:48:58 +09:00
Randy Mackay
1c6c03b0eb Copter: firmware back to V3.3-dev 2015-04-18 11:51:53 +09:00
Jonathan Challinger
9a025024b5 Copter: use LowPassFilterVector3f for land detector accel filter 2015-04-17 10:46:56 +09:00
Jonathan Challinger
eafbd94d51 Copter: run land detector at 400hz 2015-04-17 10:46:53 +09:00
Leonard Hall
93d5c39248 Copter: add filter for the land detector
Individual access filtering will be replaced with a single 3-axis low pass
filter in the near future
2015-04-16 21:00:48 +09:00
Jonathan Challinger
e5a6023827 Copter: pass inertial_nav to fence 2015-04-14 16:10:03 +09:00
Randy Mackay
5a4039d99c Copter: version to APM:Copter 3.3-rc1 2015-04-12 09:21:44 +09:00
Randy Mackay
b0c777259f Copter: update home constantly while disarmed 2015-04-09 10:57:06 +09:00
Randy Mackay
2bec00e1c5 Copter: set ahrs home from ekf location 2015-04-09 10:57:02 +09:00
Randy Mackay
74b98b89d0 Copter: remove dcm check 2015-03-27 00:04:37 -07:00
Randy Mackay
522ef8f91f Copter: rename MOT df msg to MOTB
This will slightly reduce confusion with the MOT message from AC3.1.5
that eventually became RCOUT
2015-03-18 21:25:45 +09:00
Randy Mackay
b679fd0be0 Copter: log RATE with ATT 2015-03-18 21:25:42 +09:00
Randy Mackay
e6c3f4f97b Copter: move aux switch enum to defines.h 2015-03-17 21:18:49 +09:00
Robert Lefebvre
97cd3614eb Copter: Change Aux Switch function list to enum. 2015-03-17 21:18:46 +09:00
Robert Lefebvre
a5af151a91 Copter: Initial expansion of Aux Switch to Ch7-12 2015-03-17 21:18:41 +09:00
Víctor Mayoral Vilches
79e152cd93 Copter: Update compass to the new interface 2015-03-13 18:46:16 +11:00
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