Randy Mackay
14d80910ec
Copter: integrate EPM ver2
11 years ago
Randy Mackay
b8f98aba8f
Copter: fix baro glitch resolved message in dataflash
...
Caught by Julien Dubois, thanks!
11 years ago
Randy Mackay
7cc1501dc6
Copter: integrate baro glitch protection
11 years ago
Andrew Tridgell
a4b9b989b7
Copter: convert to new AP_RangeFinder API
11 years ago
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
11 years ago
Andrew Tridgell
24f2ac20de
Copter: removed HIL_MODE_ATTITUDE
...
this really can't work any more, as AHRS can't support it
11 years ago
Randy Mackay
8f5585423c
Copter: use ahrs trig values
11 years ago
Randy Mackay
8a29d63d89
Copter: faster baro calibration when arming
...
using update_calibration() instead of the full calibrate() cuts
1.5seconds of the arming time
11 years ago
Randy Mackay
9f2f44f0f6
Copter: integrate shrunken optflow
11 years ago
Lukasz
cb17a5bdb6
Copter: Add RSSI_RANGE parameter
...
Added ability to rescale rssi input voltage. Useful for receivers like
FrSky which have 3.3V output.
11 years ago
Randy Mackay
32f53624d6
Copter: rename low_battery to failsafe.battery
11 years ago
Randy Mackay
9435eb4a15
Copter: remove unused flags and consolidate ap and ap_system
11 years ago
Randy Mackay
dab4f032f9
Copter: integrate BattMonitor
12 years ago
Randy Mackay
a53d28e018
Copter: remove support for dmp ahrs
12 years ago
Randy Mackay
c5bd1a76ed
Copter: comment update re low battery event
12 years ago
Randy Mackay
8e0cacad39
Copter: disable low battery events when usb connected
12 years ago
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.
12 years ago
Jonathan Challinger
b21bc5a85a
Copter: Fixed bug in battery current integration
12 years ago
Randy Mackay
d1791bab76
Copter: fix barometer cli test
12 years ago
Andrew Tridgell
c44fd42349
Copter: fixed RSSI reading on PX4
...
needed for different analog input scaling
12 years ago
Andrew Tridgell
0d027b7a23
Copter: updates for new compass API
12 years ago
Andrew Tridgell
82c604dd67
Copter: more constrain fixes
12 years ago
Andrew Tridgell
cf6ae4a746
Copter: remove ahrs.set_barometer()
12 years ago
Randy Mackay
1dcd46bffc
Copter: reduce compiler warnings
12 years ago
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
12 years ago
Randy Mackay
cb84ec9d9b
Copter: add current based compass compensation
12 years ago
Andrew Tridgell
c2fd1512ff
Copter: use voltage_average() so as to avoid INPUT_VOLTS
12 years ago
rmackay9
9c3b9907dd
Copter: bug fix to set sonar_alt_health to zero when disabled
12 years ago
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.
12 years ago
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.
12 years ago
Andrew Tridgell
17a63dc76a
Copter: fixes for AP_HAL merge
12 years ago
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.
12 years ago
rmackay9
677b38a48e
ArduCopter: first implementation of surface tracking using sonar
...
Note: not yet enabled as part of any flight mode
12 years ago
rmackay9
466097b383
ArduCopter: use inertial nav for current altitude and climb rate
12 years ago
Pat Hickey
5bd7046a95
ArduCopter: sketch cpp builds!
12 years ago
Pat Hickey
8b49208771
ArduCopter: some fixes
12 years ago
Pat Hickey
70f4739522
ArduCopter: more fixes
12 years ago
rmackay9
52177c63f7
ArduCopter: only attempt to change settings of optical flow sensor if it has been successfully initialised
12 years ago
Andrew Tridgell
cd07d965a7
Copter: ported RSSI_PIN option from ArduPlane
...
this is useful for OSD users
12 years ago
Andrew Tridgell
bcae83c4f6
ACM: make it possible to run CLI on radio port in ArduCopter
12 years ago
rmackay9
07a7a1acd8
ArduCopter: replaced digitalRead and digitalWrite with faster calls
...
improved performance logging to dataflash
12 years ago
rmackay9
e92b560df5
ArduCopter: low baterry failsafe
12 years ago
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.
12 years ago
rmackay9
d2912e4e01
ArduCopter: added spi_semaphore to stop conflicts between dataflash and optical flow sensor on APM1
12 years ago
Andrew Tridgell
f828956cb8
battery: use set_pin() to allow pins to be changed at runtime
12 years ago
rmackay9
240b0b43fd
ArduCopter: small comment fixes related to battery monitoring
12 years ago
rmackay9
4a41a3d210
ArduCopter: added BATT_VOLT_PIN and BATT_CURR_PIN parameters to allow support for new 3DR IV battery voltage and current monitor
12 years ago
rmackay9
ea4f256f8e
ArduCopter: BATT_PIN parameter added to allow you to select which pin is used for voltage and current measurements
...
To save a parameter, the current sensor pin is assumed to always be 1 higher than the voltage pin.
13 years ago
rmackay9
95763e610b
ArduCopter: allow DMP to run in parallel with DCM
...
Parallel DMP can be enabled by #define SECONDARY_DMP_ENABLED in APM_Config.h
New DMP dataflash log type added to allow easy comparison with DCM
13 years ago
rmackay9
b2f12c4854
ArduCopter: optical flow initialisation changes now that optical flow library automatically works on APM1, APM2 and APM2.5
13 years ago