Commit Graph

98 Commits

Author SHA1 Message Date
Jonathan Challinger
0dbe94c9a1 Copter: set motor air density ratio 2015-04-29 14:36:17 +09:00
Randy Mackay
6e623bce28 Copter: remove optical flow init failure message
the sensor only becomes healthy once it has received data which will
take a few seconds after initialisation meaning this failure message
will always be displayed even when the sensor is fine.
2015-04-24 10:58:07 +09:00
Randy Mackay
5e359c977f Copter: replace range finder health with status 2015-04-24 10:57:30 +09:00
Paul Riseborough
133b8f5ad7 Copter: Allow EKF to pull data from range finder object 2015-04-24 10:56:53 +09:00
Randy Mackay
d7f624be39 Copter: remove baro_glitch protection 2015-03-13 16:40:27 +09:00
Leonard Hall
8eedb2c040 Copter: sent battery voltage and current to motors 2015-03-03 15:48:26 +09:00
Randy Mackay
02d0b05926 Copter: minor format fix 2015-01-22 14:40:05 +09:00
Andrew Tridgell
c151f24672 Copter: updates for new AP_Baro API 2015-01-09 11:50:55 +11:00
Randy Mackay
3ccc61c163 Copter: use battery.has_current method 2014-12-31 15:22:49 +09:00
Randy Mackay
c93c7af20c Copter: move update_optflow to sensors.pde
No functional change
2014-12-08 14:58:25 +09:00
priseborough
a72b6b179b Copter : Modify EKF optical flow data interface 2014-12-06 18:16:46 +11:00
Randy Mackay
b2badee172 Copter: reset baro glitch after baro init 2014-11-09 13:34:17 -08:00
Randy Mackay
5104d5f0fe Copter: re-order init_sonar
No functional change.
2014-10-31 20:40:24 +09: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
aa3e34a44a Copter: move update_optflow to sensors.pde
Also slightly shorten function name
2014-10-15 16:36:36 +09:00
Randy Mackay
3201a8dbca Copter: integrate optflow_enable param move to optflow class 2014-10-15 16:35:43 +09:00
Jonathan Challinger
fa9d10e59b Copter: log CURR message at 10hz 2014-10-08 20:49:36 +09:00
Randy Mackay
14d80910ec Copter: integrate EPM ver2 2014-09-17 21:13:35 +09:00
Randy Mackay
b8f98aba8f Copter: fix baro glitch resolved message in dataflash
Caught by Julien Dubois, thanks!
2014-08-04 09:11:21 +09:00
Randy Mackay
7cc1501dc6 Copter: integrate baro glitch protection 2014-07-28 22:16:20 +09:00
Andrew Tridgell
a4b9b989b7 Copter: convert to new AP_RangeFinder API 2014-07-08 15:08:18 +10:00
Andrew Tridgell
0cbe64bc5e Copter: use Log_Write_Baro()
this gives the raw pressure and temperature, which is useful for
analysis, plus allows for more accurate log replay
2014-02-19 09:22:45 +11:00
Andrew Tridgell
24f2ac20de Copter: removed HIL_MODE_ATTITUDE
this really can't work any more, as AHRS can't support it
2014-02-15 05:29:46 +11:00
Randy Mackay
8f5585423c Copter: use ahrs trig values 2014-02-08 18:16:49 +09:00
Randy Mackay
8a29d63d89 Copter: faster baro calibration when arming
using update_calibration() instead of the full calibrate() cuts
1.5seconds of the arming time
2014-01-15 23:28:24 +09:00
Randy Mackay
9f2f44f0f6 Copter: integrate shrunken optflow 2014-01-09 12:31:53 +09:00
Lukasz
cb17a5bdb6 Copter: Add RSSI_RANGE parameter
Added ability to rescale rssi input voltage. Useful for receivers like
FrSky which have 3.3V output.
2013-12-17 22:38:39 +09:00
Randy Mackay
32f53624d6 Copter: rename low_battery to failsafe.battery 2013-10-13 13:52:52 +09:00
Randy Mackay
9435eb4a15 Copter: remove unused flags and consolidate ap and ap_system 2013-10-08 15:25:14 +09:00
Randy Mackay
dab4f032f9 Copter: integrate BattMonitor 2013-10-03 11:16:28 +09:00
Randy Mackay
a53d28e018 Copter: remove support for dmp ahrs 2013-09-27 10:42:49 +09:00
Randy Mackay
c5bd1a76ed Copter: comment update re low battery event 2013-09-12 22:41:28 +09:00
Randy Mackay
8e0cacad39 Copter: disable low battery events when usb connected 2013-09-09 21:27:05 +09:00
Randy Mackay
2696e160e6 Copter: surface tracking improvement
Separate correction speeds for pilot input vs altitude-above-ground
errors to allow slower correction to sonar signals.
Change SONAR_GAIN parameter to be altitude error -> desired speed.  This
means it should be set 10x larger than before.
Replace hard-coded sonar cut-off percentage of 70% with
SONAR_RELIABLE_DISTANCE_PCT.
Reduce sonar cut-off percentage to 60%.
Add desired sonar altitude to dataflash log's CTUN message.
2013-08-19 09:52:59 +09:00
Jonathan Challinger
b21bc5a85a Copter: Fixed bug in battery current integration 2013-06-26 17:22:37 +09:00
Randy Mackay
d1791bab76 Copter: fix barometer cli test 2013-05-25 12:21:29 +09:00
Andrew Tridgell
c44fd42349 Copter: fixed RSSI reading on PX4
needed for different analog input scaling
2013-05-13 15:19:05 +10:00
Andrew Tridgell
0d027b7a23 Copter: updates for new compass API 2013-05-02 12:48:14 +10:00
Andrew Tridgell
82c604dd67 Copter: more constrain fixes 2013-04-22 13:26:49 +10:00
Andrew Tridgell
cf6ae4a746 Copter: remove ahrs.set_barometer() 2013-04-15 10:52:32 +10:00
Randy Mackay
1dcd46bffc Copter: reduce compiler warnings 2013-04-05 22:25:58 +09:00
Randy Mackay
f263e81ed7 Copter: remove unused GPS and baro filters
Saves 24bytes of RAM
Removing the baro filter leads to noisier Baro Alt appearing in the log
so we should make the inertial nav altitude appear in the CTUN message
2013-03-16 00:20:15 +09:00
Randy Mackay
cb84ec9d9b Copter: add current based compass compensation 2013-03-03 23:02:36 +09:00
Andrew Tridgell
c2fd1512ff Copter: use voltage_average() so as to avoid INPUT_VOLTS 2013-03-03 16:16:01 +11:00
rmackay9
9c3b9907dd Copter: bug fix to set sonar_alt_health to zero when disabled 2013-01-31 17:00:28 +09:00
James Bielman
5631f865b2 Update floating point calculations to use floats instead of doubles.
- Allows use of hardware floating point on the Cortex-M4.
- Added "f" suffix to floating point literals.
- Call floating point versions of stdlib math functions.
2013-01-16 13:52:01 +11:00
rmackay9
21b6c78d12 ArduCopter: added get_throttle_althold_with_slew to allow slower altitude target changes
Improved surface tracking by using slewed althold controller
Reduced sonar mode filter to just 3 elements to reduce lag but at the possible consequence of allowing sonar noise to creep through for people with margin sonar set-ups.
2013-01-13 19:51:47 +11:00
Andrew Tridgell
17a63dc76a Copter: fixes for AP_HAL merge 2013-01-02 09:55:55 +11:00
rmackay9
672fdfbf71 ArduCopter: added ERR dataflash message
Failsafe events changed to errors so they are more obvious.
Errors recorded to dataflash for failure to init compass and optical flow sensor.
Errors recorded for pwm failure.
Resolved a compile error when dataflash logging is disabled.
2013-01-02 09:55:37 +11:00