Randy Mackay
e7dd21a0bb
AP_RangeFinder: remove primary, add orientation
2017-02-27 15:18:03 +09:00
Randy Mackay
49f4afc2a1
AC_Avoidance: add 2m margin to upward avoidance
2017-02-27 09:48:29 +09:00
Peter Barker
d170396acf
Notify: Display: blank text line after 10s
2017-02-27 09:02:09 +09:00
Peter Barker
da03cf29d6
Notify: Display: pad GPS status/sat count to fix stray chars
2017-02-27 08:14:25 +09:00
Lucas De Marchi
f972fed70b
AP_HAL_PX4: rename method to follow AP_HAL
...
This allows to avoid the cast in the HAL, making it easier to replace
the implementation with an Empty::RCOutput while prototyping.
2017-02-26 13:38:24 +11:00
Lucas De Marchi
686e0f08d6
AP_HAL: RCOutput: add optional timer_tick() method
...
This is common enough across the HAL implementaions so add a method for
it to avoid the need for casts inside the HALs.
2017-02-26 13:38:24 +11:00
Lucas De Marchi
ade1876318
AP_Motors: tie esc scaling with set_throttle_range()
...
We need to update the esc scaling from inside the Motors library, that
has access to the MOT_PWM_[MIN|MAX] values. Otherwise even though the
AP_Motors library honors the value for calculations, the RCOutput
drivers that need the scaling to set the real HW scaling will not work.
Right now it scales the value using the throttle_channel's min/max, even
though AP_Motors may be passing values in other range.
2017-02-26 13:38:24 +11:00
Lucas De Marchi
e1eda3066c
AP_HAL_PX4: SPIDevice: add missing ifdefs
...
These sensors may always be present on px4fmu* boards, but they are not
always present for all boards supported by the PX4Firmware.
2017-02-26 13:37:13 +11:00
Lucas De Marchi
2d50eb312c
AP_InertialSensor: add support to MPU6500
...
Just like and MPU9250 without mag and with different WHOAMI register.
2017-02-26 13:37:13 +11:00
Lucas De Marchi
8002df6e45
AP_HAL: add MPU6500 defines
2017-02-26 13:37:13 +11:00
Andrew Tridgell
e5ed20d6f7
AC_AttitudeControl: added set_throttle_mix_value()
...
used by quadplane
2017-02-26 09:20:51 +11:00
Peter Barker
e744460ff5
AP_AHRS: mark many functions as override
...
Also take the opportunity to remove void parameter
2017-02-24 21:13:08 +11:00
Peter Barker
6ee4045878
AP_AHRS: mark new relative position functions override
2017-02-24 21:13:08 +11:00
Peter Barker
35f876f853
AP_AHRS: examples: correct AHRS_Test
...
This is required so gcs() returns an object
2017-02-24 21:13:08 +11:00
Peter Barker
4ed7fb154f
AP_AHRS: supply missing get_relative_position_D_home
...
Simply returns the baro altitude (like EKF does if it lacks
position)
2017-02-24 21:13:08 +11:00
Peter Barker
24647fb2b0
AP_AHRS: make get_relative_position_D_home pure virtual
...
Having a void function with a return parameter that isn't
filled in by the base class function seems like a bad idea
2017-02-24 21:13:08 +11:00
Peter Barker
d6807d749c
GCS_MAVLink: make send_statustext virtual
2017-02-23 23:03:54 -08:00
Peter Barker
c93942695f
AP_Param: load parameters from a comma-separated-list
...
This patch will break things for anyone who is using
a comma in their filenames for their ardupilot defaults
files.
2017-02-23 22:46:33 -08:00
Peter Barker
fe189fefbc
AP_Param: Factor load_defaults_file (NFC)
2017-02-23 22:46:33 -08:00
Lucas De Marchi
0a381dfa1b
AP_HAL: document method to split transfers
2017-02-23 22:38:15 -08:00
Lucas De Marchi
32d208dbe8
AP_HAL_Linux: move check for _split_transfers
...
This is likely not true, so allow not to check the other conditions.
Also remove comment since this is going to be added to the method.
2017-02-23 22:38:15 -08:00
Andrew Tridgell
df1da3c14e
AP_RangeFinder: setup for split I2C transfers
...
this fixes PulsedLight Lidar on Linux
2017-02-23 22:38:15 -08:00
Andrew Tridgell
a2e445cf24
HAL_Linux: implement set_split_transfers() API for I2C
2017-02-23 22:38:15 -08:00
Andrew Tridgell
dc26cbc074
AP_HAL: added set_split_transfers() API for I2C
2017-02-23 22:38:15 -08:00
Michael du Breuil
7b483a1460
AP_GPS: Ublox, always quickly set the rates until we have fetched the version
2017-02-23 07:33:58 +11:00
Tom Pittenger
76dabf2dd9
AP_ADSB: cleanup
...
non-functional change
2017-02-22 11:55:47 -08:00
Tom Pittenger
5adbf9b232
AP_ADSB: populate altitude via pressure for ADSB-Out
...
fixes https://github.com/ArduPilot/ardupilot/issues/5424
2017-02-22 11:55:47 -08:00
Michael du Breuil
1de198883d
AP_NavEKF3: Check gps vertical accuracy for aligning the GPS
2017-02-22 11:53:42 -08:00
Michael du Breuil
8b69f1708e
NavEKF2: Add optional check for GPS vertical accuracy before aligning the EKF
2017-02-22 11:53:42 -08:00
Michael du Breuil
61023fc636
NavEKF: Add GPS vertical accuracy to nav_gps_flags
2017-02-22 11:53:42 -08:00
Jacob Walser
cde1452da3
AP_Motors: Use fabsf instead of fabs
2017-02-22 11:25:18 -08:00
Jacob Walser
870183f26b
AP_TemperatureSensor: Use powf instead of pow
2017-02-22 11:25:18 -08:00
Jacob Walser
06b394bf43
AP_JSButton: Fix param metadata for relay enum values
2017-02-22 14:42:23 +00:00
Tom Pittenger
fb214ef95f
AP_Baro: fixed spelling in comment
2017-02-21 02:23:23 -08:00
Jacob Walser
8c87868b5c
AP_AHRS: Add submarine vehicle class
2017-02-21 11:26:14 +11:00
Jacob Walser
5829d4b645
AC_Avoidance: Refactor fence.get_safe_alt() to fence.get_safe_alt_max()
2017-02-21 11:26:14 +11:00
Jacob Walser
e7a34b0fb3
AP_NavEKF2: Add set_baro_alt_noise method
2017-02-21 11:26:14 +11:00
Jacob Walser
e7caf05238
AP_HAL_SITL: Add support for Sub
2017-02-21 11:26:14 +11:00
Jacob Walser
613bc46592
AP_Baro: Add support for water pressure and Sub
2017-02-21 11:26:14 +11:00
Jacob Walser
3c6df7cc0e
AC_Fence: Add minimum altitude limit
...
get_safe_alt() -> get_safe_alt_max() and get_safe_alt_min()
2017-02-21 11:26:14 +11:00
Jacob Walser
0e124d0be5
AC_PosControl: Add AC_PosControl_Sub class
2017-02-21 11:26:14 +11:00
Jacob Walser
925fa5d214
AC_AttitudeControl: Add AC_AttitudeControl_Sub class
2017-02-21 11:26:14 +11:00
Jacob Walser
ac1e1b9460
AP_NavEKF3: Add set_baro_alt_noise method
2017-02-21 11:26:14 +11:00
Jacob Walser
ca603e1517
AP_TemperatureSensor: Add AP_TemperatureSensor library and TSYS01 driver
2017-02-21 11:26:14 +11:00
Jacob Walser
7121910fa7
AP_Compass: Set default learn parameter to disabled for Sub
2017-02-21 11:26:14 +11:00
Rustom Jehangir
36f3cae535
SITL: Add support for Sub
2017-02-21 11:26:14 +11:00
Jacob Walser
96303c3092
AC_WPNav: Add accessor for origin, and make get_bearing_cd() public
2017-02-21 11:26:14 +11:00
Jacob Walser
d3442ae16b
AP_RangeFinder: Bugfix for mavlink rangefinders to include out of range low/high
2017-02-21 11:26:14 +11:00
Jacob Walser
f3fa8403f8
AP_Notify: Add tone and light pattern for leak detection
2017-02-21 11:26:14 +11:00
Jacob Walser
9c8fca02d9
AP_LeakDetector: New library and analog/digital sensor drivers
2017-02-21 11:26:14 +11:00
Rustom Jehangir
116f166a78
AP_JSButton: New library to map joystick buttons to vehicle functions
2017-02-21 11:26:14 +11:00
jaxxzer
ccb6434831
AP_Scheduler: Set main loop rate to 400hz for Sub
2017-02-21 11:26:14 +11:00
jaxxzer
44c9efad50
AP_Vehicle: Add the ArduSub vehicle type.
...
This also fixes the issue causing accel calibration to be unresponsive
in gcs.
2017-02-21 11:26:14 +11:00
Jacob Walser
2bacc2fea2
AP_RCMapper: Add forward and strafe channel mappings for Sub
2017-02-21 11:26:14 +11:00
Rustom Jehangir
237ba87ca4
AP_Motors: New AP_Motors6DOF used by Sub
2017-02-21 11:26:14 +11:00
Peter Barker
1217256898
AP_AHRS: correct infinite recursion in AP_AHRS_View
2017-02-21 09:03:03 +11:00
Andrew Tridgell
29b06d2d4a
SRV_Channel: fixed output slew rate handling
...
this fixes a bug that happens when the RC output speed is much lower
than the main loop speed, such as with forward throttle for
quadplanes. We need to base the slew on the last sent output, not the
last value read back (at 50Hz) from the IO board, or we will slew the
channel at 6x to 8x slower than the correct rate.
2017-02-21 06:09:33 +11:00
Andrew Tridgell
3ce7e4b322
AP_GPS: fixed fake uBlox with PVT message support
2017-02-21 06:09:33 +11:00
murata
fe93bdbc5e
AP_IRLock: Change from magic number 0 to definition name.
2017-02-18 14:12:36 +00:00
murata
eb6cdd27fb
AP_Notify: Change from magic number 0 to definition name.
2017-02-18 14:12:36 +00:00
murata
d9dbf6e1eb
AP_OpticalFlow: Change from magic number 0 to definition name.
2017-02-18 14:12:36 +00:00
murata
a3f5b4f319
AP_InertialSensor: Change from magic number 0 to definition name.
2017-02-18 14:12:36 +00:00
murata
eb4d8963d0
AP_HAL_Linux: Change from magic number 0 to definition name.
2017-02-18 14:12:36 +00:00
murata
bc7b2144e7
AP_Compass: Change from magic number 0 to definition name.
2017-02-18 14:12:36 +00:00
murata
f5c3de2a61
AP_Baro: Change from magic number 0 to definition name.
2017-02-18 14:12:36 +00:00
murata
af65be5aa4
AP_Airspeed: Change from magic number 0 to definition name.
2017-02-18 14:12:36 +00:00
Andrew Tridgell
d338d9c0aa
SITL: fixed whitespace on flightaxis code
2017-02-18 17:26:43 +11:00
Andrew Tridgell
83d055eceb
AP_Motors: support twin-motor tailsitters
...
use differential thrust for roll
2017-02-18 17:26:43 +11:00
Andrew Tridgell
584fbf629b
SRV_Channel: added k_throttleLeft and k_throttleRight
...
support for differential thrust for yaw in twin engine planes
2017-02-18 17:26:43 +11:00
Andrew Tridgell
7845181f4b
AP_AHRS: fixes for changes in AP_AHRS API from Michael
2017-02-18 17:26:43 +11:00
Andrew Tridgell
17e1329068
AC_WPNav: converted to use AP_AHRS_View
...
for use in quadplane tailsitters
2017-02-18 17:26:43 +11:00
Andrew Tridgell
3c8020862c
SITL: support a builtin tailsitter vehicle type
2017-02-18 17:26:43 +11:00
Andrew Tridgell
ac2a9c4b4a
AP_Motors: allow Copter to fly the tailsitter motors class
2017-02-18 17:26:43 +11:00
Andrew Tridgell
c62c64d27b
AP_AHRS: added support for AP_AHRS_View
2017-02-18 17:26:43 +11:00
Andrew Tridgell
1345bf8737
AC_AttitudeControl: added support for AP_AHRS_View
...
this allows for tailsitters with a different attitude view
2017-02-18 17:26:43 +11:00
Andrew Tridgell
8bd1fc63d5
SITL: support pitch90 and pitch270 in FlightAxis
...
used for flying tailsitters
2017-02-18 17:26:43 +11:00
Andrew Tridgell
1a74b7fc0c
AP_Motors: started on tailsitter support
2017-02-18 17:26:43 +11:00
Andrew Tridgell
5acbf5d16e
AC_AttitudeControl: use FF from AC_PID
2017-02-18 17:26:43 +11:00
Andrew Tridgell
b97bf5d15e
AC_PID: added feed-forward to AC_PID
2017-02-18 17:26:43 +11:00
Francisco Ferreira
23f959b92f
AP_NavEKF3: fix copied parameter descriptions
2017-02-15 19:20:04 +00:00
priseborough
1a7b5538e5
AP_NavEKF2: Enable simple heading fusion to be set for specific cores
2017-02-15 19:17:53 +00:00
priseborough
de7a679534
AP_NavEKF3: Enable simple heading fusion to be set for specific cores
2017-02-15 19:09:45 +00:00
priseborough
ccb952ba31
AP_NavEKF3: Use the same mag fusion method for all cores
...
The original reason for using a different method for the second core is no longer valid.
2017-02-15 19:01:10 +00:00
priseborough
a1d41edc4e
AP_NavEKF2: Use the same mag fusion method for all cores
...
The original reason for using a different method for the second core is no longer valid.
2017-02-15 19:01:10 +00:00
Randy Mackay
8c7b214d71
AP_BattMonitor: fix param description
2017-02-15 20:01:59 +10:00
priseborough
e399f57ffa
AP_NavEKF3: prevent NaN if RNGFND_GNDCLEAR is zero
2017-02-15 07:04:38 +09:00
priseborough
5cd403c0b9
AP_NavEKF2: prevent NaN if RNGFND_GNDCLEAR is zero
2017-02-15 07:04:38 +09:00
priseborough
bf51da224a
AP_RangeFinder: Update min value for RNGFND_GNDCLEAR parameter
2017-02-15 07:04:38 +09:00
Peter Barker
057819ccef
DataFlash: zero-pad the number in the log filename
...
This helps with collating when reviewing log files
Closes #2212
2017-02-15 07:23:49 +11:00
Peter Barker
58d74230d5
DataFlash: correct error detection for asprintf
2017-02-15 07:23:49 +11:00
Michael du Breuil
794f7a969e
AP_Arming: Fix up ARMING_REQUIRE param documentation to try and be less confusing
2017-02-15 07:22:11 +11:00
Andrew Tridgell
395702ceff
SRV_Channel: make SRV_AUTO_TRIM plane specific
2017-02-14 19:50:01 +11:00
Andrew Tridgell
4626b3a269
AP_Arming: mark ARMING_REQUIRE as plane and rover only
2017-02-14 19:50:01 +11:00
Andrew Tridgell
108cbe1dab
AP_Motors: mark tricopter yaw as tricopter only
2017-02-14 19:50:01 +11:00
Andrew Tridgell
79b0c856b2
AP_Param: added support for frame specific parameters
...
this allows for libraries that have parameters that are only activated
on particular frame types
2017-02-14 19:49:29 +11:00
Andrew Tridgell
2187417d74
AP_Motors: added MOT_SPOOL_TIME
...
this allows for quadplanes to have faster spoolup, which can help with
transitions
2017-02-14 09:23:17 +09:00
Michael du Breuil
18b5446765
Camera: Fix an incorrect label on CAM_DURATION
2017-02-13 19:20:49 +00:00
Peter Barker
89afa913f1
AP_Frsky_Telem: Support for a GCS singleton
2017-02-13 09:32:01 +11:00
Peter Barker
cc28ff49e9
GCS_MAVLink: support for a singleton
2017-02-13 09:32:01 +11:00
Michael du Breuil
31f1545223
DataFlash: Update for AHRS NED changes
...
Report both origin and home NED altitudes to the log file
2017-02-13 09:23:14 +11:00