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
rmackay9
677b38a48e
ArduCopter: first implementation of surface tracking using sonar
...
Note: not yet enabled as part of any flight mode
2013-01-02 09:55:37 +11:00
rmackay9
466097b383
ArduCopter: use inertial nav for current altitude and climb rate
2013-01-02 09:22:51 +11:00
Pat Hickey
5bd7046a95
ArduCopter: sketch cpp builds!
2012-12-20 14:52:28 +11:00
Pat Hickey
8b49208771
ArduCopter: some fixes
2012-12-20 14:52:28 +11:00
Pat Hickey
70f4739522
ArduCopter: more fixes
2012-12-20 14:52:28 +11:00
rmackay9
52177c63f7
ArduCopter: only attempt to change settings of optical flow sensor if it has been successfully initialised
2012-12-11 00:14:29 +09:00
Andrew Tridgell
cd07d965a7
Copter: ported RSSI_PIN option from ArduPlane
...
this is useful for OSD users
2012-11-22 20:59:33 +11:00
Andrew Tridgell
bcae83c4f6
ACM: make it possible to run CLI on radio port in ArduCopter
2012-11-21 21:41:34 +11:00
rmackay9
07a7a1acd8
ArduCopter: replaced digitalRead and digitalWrite with faster calls
...
improved performance logging to dataflash
2012-11-19 01:16:07 +09:00
rmackay9
e92b560df5
ArduCopter: low baterry failsafe
2012-11-15 23:35:41 +09:00
rmackay9
78316adf75
ArduCopter: replace Serial.print with Serial.print_P to save memory.
...
Includes replacing flight_mode_strings with print_flight_mode function.
SendDebug macro replaced with direct Serial.print_P calls.
2012-10-22 16:45:24 +09:00