Lucas De Marchi
2c38e31c93
Remove use of PSTR
...
The PSTR is already define as a NOP for all supported platforms. It's
only needed for AVR so here we remove all the uses throughout the
codebase.
This was automated with a simple python script so it also converts
places which spans to multiple lines, removing the matching parentheses.
AVR-specific places were not changed.
9 years ago
Randy Mackay
9b80ab18ae
Copter: position_ok when optical flow ok
...
Previously the GPS based absolute position was required
This allows using optical flow in all flight modes
9 years ago
Randy Mackay
01c0b20930
Copter: calibrate gyros depending on INS GYR_CAL parameter
10 years ago
Peter Barker
51a761656e
Copter: DFMessageWriter; ability to trickle messages out to DF
10 years ago
Andrew Tridgell
64a8e66dd7
Copter: automatically set H_RSC_MIN/MAX from RC8_MIN/MAX on upgrade
...
this prevents a problem where the disarm throttle will change after
upgrading to 3.4
10 years ago
Randy Mackay
26ded641db
Copter: integrate Precision Landing lib
10 years ago
Stewart Loving-Gibbard
7cb494d8e2
Copter: Moving to RSSI library for reading various kinds of RSSI, with the possibility of adding more.
...
* Retains ability to read from Analog Pin
* Adds ability to read RSSI from PWM channel value as is done in OpenLRSng, EazyUHF, and various other LRS.
* Handles any type of RSSI that provides RSSI values inverted - i.e. when the low value is the best signal and the high value is the worst signal.
* Has different key names from all existing RSSI parameters to provide for a clean break and easier distinguishing.
* Existing parameters are marked as obsolete
10 years ago
Randy Mackay
be603da579
Copter: fix optflow position_ok check
...
We should accept predicted relative horizontal position only when disarmed
10 years ago
squilter
767b4da5b6
Copter: update send text severities
10 years ago
Andrew Tridgell
1fdf7ec83f
Copter: added RPM sensor support
...
send result via MAVLink
10 years ago
Randy Mackay
6765aedb5b
Copter: init vehicle capabilities
10 years ago
Randy Mackay
4e3d0ae0c1
Copter: fix startup logging
...
Removed potentially endless loop caused by start_logging calling
Log_Write_Startup which called should_log which could then call
start_logging.
Moved disarm event logging above motors disarm so it is logged
10 years ago
Robert Lefebvre
ef80634435
Copter: auto_armed goes false for Heli when landed and motor shut off.
10 years ago
Randy Mackay
f603c1ef69
Copter: fix ekf-check reliance on position_ok
10 years ago
Randy Mackay
b2ca7ee3fa
Copter: Log_Write_Startup writes parameters
10 years ago
Grant Morphett
518308efae
Copter: Moving parameter logging to be after all systems have started
10 years ago
Andrew Tridgell
b87cc80486
Copter: fixed some warnings
10 years ago
Andrew Tridgell
278883c521
Copter: finished conversion to .cpp files
...
Pair-Programmed-With: Randy Mackay <rmackay9@yahoo.com>
10 years ago
Andrew Tridgell
356ece3402
Copter: rename .pde files to .cpp files
10 years ago
Robert Lefebvre
80b4ca99f8
Copter: Heli Semantic Change. Motor Runup to Rotor Runup.
10 years ago
Randy Mackay
d8b7e4a199
Copter: add support for 4th mavlink channel
10 years ago
Andrew Tridgell
6dc3cff000
Copter: added LOG_BITMASK 1<<19 for logging raw accel/gyro data
...
useful for checking vibration handling
10 years ago
Andrew Tridgell
cb2427ef9e
Copter: removed special cases for DCM gain changes on arm/disarm
...
copter no longer uses DCM, so it doesn't need these special cases
10 years ago
Tom Pittenger
b57437042e
Copter: fix compile warnings for unused functions
10 years ago
Randy Mackay
a20a89181c
Copter: enable CPU failsafe after initialisation
...
This removes a false positive during startup that lead to an error
appearing at the start of the dataflash log
10 years ago
Randy Mackay
24f24a7db7
Copter: integrate Serial Manager instance
10 years ago
Randy Mackay
b4df5b35f0
Copter: fix compiler error when mount disabled
10 years ago
Randy Mackay
c41ecca8d5
Copter: re-order position_ok function
...
no functional change
10 years ago
Randy Mackay
088a49abbf
Copter: remove APM1, APM2 support
10 years ago
Randy Mackay
6f6847c025
Copter: use only InertialNav_EKF
...
remove calls to unsupported functions including ignore_next_error,
set_altitude, etc.
10 years ago
Andrew Tridgell
3f906f6bd1
Copter: added CLI_ENABLED option
10 years ago
Randy Mackay
9bd3a7249a
Copter: disable inertial nav
10 years ago
Randy Mackay
d5fd6d2a99
Copter: use home_is_set function
10 years ago
Randy Mackay
43ba94e99a
Copter: rename manual_flight_mode to mode_has_manual_throttle
10 years ago
Randy Mackay
e0cfe091fb
Copter: setup uart after checking usb_connected
10 years ago
Randy Mackay
f91fb9a4e8
Copter: rename frsky_telemetry_send function
10 years ago
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
10 years ago
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
10 years ago
Matthias Badaire
a2d71d2811
Copter: Frsky telemtry change move parameter to init of the class
...
Parameter needs to be passed and use at the init of the class frsky telem
10 years ago
Randy Mackay
d49489ca7e
Copter: optflow_position_ok requires using EKF
10 years ago
Randy Mackay
01f1ce4cb3
Copter: position_ok false when EKF in const pos mode
10 years ago
Randy Mackay
e464909ddf
Copter: position_ok true when EKF predicts it will be ok
...
This resolves the chicken and egg problem of the EKF filter status's
position flags not becoming true until after the vehicle has been armed
at least once.
10 years ago
Randy Mackay
fd0b82f669
Copter: add optflow_position_ok and use for loiter
...
This allows entering Loiter flight mode with only optical flow based
position
10 years ago
Randy Mackay
199dc3454d
Copter: replace GPS_ok with position_ok
...
position_ok uses the EKF's filter status if the EKF is being used
otherwise it falls back to the GPS based checks used by inertial nav
10 years ago
Andrew Tridgell
cb5552f0e3
Copter: fixed build with optflow disabled
10 years ago
Andrew Tridgell
788bb8ab9f
Copter: make optflow available to AHRS
10 years ago
Andrew Tridgell
b6c06ab691
Copter: fix build with new mavlink repo
10 years ago
Randy Mackay
0ac3267d52
Copter: reset ahrs gyro drift after gyro calibration
10 years ago
Andrew Tridgell
4c0351a76a
Copter: convert to new AP_InertialSensor API
10 years ago
Randy Mackay
a559a12ea2
Copter: remove LOG_FROM_STARTUP define
...
This compile-time method is obsolete now that we have the logging while
disarmed feature
10 years ago