Commit Graph

27335 Commits

Author SHA1 Message Date
Peter Barker c9a4a6d772 DataFlash: eliminate calls to manipulate _writes_enabled 2017-06-15 10:28:23 +09:00
Peter Barker 67a5c1dfc0 Sub: simplify start_logging 2017-06-15 10:28:21 +09:00
Peter Barker df0e9029b0 Copter: simplify start_logging 2017-06-15 10:28:14 +09:00
Peter Barker 9464bc6173 DataFlash: create a WritesOK method for WritePrioritisedBlock 2017-06-15 10:28:11 +09:00
Peter Barker 1dbf1086b0 Copter: allow mavlink messages to be exchanged on failed boot 2017-06-15 10:27:23 +09:00
Peter Barker 694b42c8f4 AP_BoardConfig: add public method returning true if on sensor error 2017-06-15 10:27:20 +09:00
murata 894b759149 AP_Notify: Change to the value of boolean. 2017-06-15 10:26:19 +09:00
Matt fc3406d07f AP_Notify: OreoLED rework
Reworked the process flow.  Created the aviation vs rover themes.
Created visual operator feedback for prearm checks, GPS, EKF, gyro init,
radio failsafe, and low battery. This also includes work by Hugh Eaves
to open up the full extended properties of the Oreo LEDs.  Not only are
far more functions available, but you can override and do custom things
via mavlink.
2017-06-15 10:26:06 +09:00
Matt ddd327e365 AP_Notify: Complete rework of notify device selection
Jaime did the hard work on this one.  He reworked notify device
selection to take place on init rather than on compile like before.  The
notify decivces are mostly set on compile using preprocessor directives
based on board type.  I created NTF_OREO_THEME.  This will allow the
user to enable/disable the OreoLED driver. And it also allows you to
select between aircraft and rover lighting themes. This allows the Solo
to use the OreoLEDs, and doesn't waste the memory on vehicles not
equipped with Oreo LEDs. The OreoLED driver is restricted to Pixhawk 2
FCs by proprocessor directive due to memory constraints. So it will
never work by accident on another board.

There is also a new notify flag for GPS Fusion.  This flag is true when
the EKF is happy with the GPS, actively using it for position
information.
2017-06-15 10:26:03 +09:00
Peter Barker 4adf8a83a6 AP_Notify: remove non-required initialisation of variables
These objects are dynamically allocated, and we zero the memory
as we allocate them
2017-06-15 10:25:38 +09:00
Peter Barker 49b8d8319c AP_Notify: simplify scrolling code 2017-06-15 10:25:35 +09:00
mirkix d106726dee AP_Notify: enable display for BeagleBone Blue 2017-06-15 10:25:24 +09:00
Matt 61931fd326 AP_AHRS: Set the new gps_fusion notify flag
Uses EKF filter state to set the new gps_fusion notify flag. This allows
the GCS and notify devices to specifically be notified if the GPS is or
is not usable.
2017-06-15 10:13:41 +09:00
Matt 22d0f41b1b AP_Notify: Remove solo specific tones, align with px4 tones
Evaluated solo specific tones file vs standard px4 tones files.  The
only thing the Solo had that standard ArduPilot does not have is the GPS
unplugged tone and the power off tone.
* Some tones have a different tune, which is fine. We want the Solo to
sound like ArduPilot if it is running ArduPilot.
* GPS unplugged tone abandoned. Determined to be unnecessary.
* Power off tone merged into standard px4 tones file. Smart battery
signalling a power off will make use of this tone. Has application for
any smart battery equipped vehicle, not just Solo.
* Removed all references and dependencies to `ToneAlarm_PX4_Solo.cpp`
and `ToneAlarm_PX4_Solo.h`
* Deleted `ToneAlarm_PX4_Solo.cpp` and `ToneAlarm_PX4_Solo.h` since
they're no longer needed.
2017-06-15 10:13:38 +09:00
priseborough 46b4c55fdc AP_NavEKF2: Fix bug in declination fusion 2017-06-15 10:12:57 +09:00
mirkix b4c1ecf9ce AP_HAL: BeagleBone Blue fix HMC5843 I2C bus number 2017-06-15 10:12:13 +09:00
mirkix 5cf9b1e985 AP_Compass: BeagleBone Blue add external compass HMC5843 2017-06-15 10:12:10 +09:00
Leonard Hall 23f594ef7d AP_InertialSensor: reduce accel filter to 10hz 2017-06-15 10:11:50 +09:00
Randy Mackay 54539fc5af Copter: increase RC input deadzones for roll pitch and yaw
Copter-3.5 testing resulted in a significant number of users reporting various issues like poshold and autotune were not functioning because their RC inputs were straying out of the deadzones
2017-06-15 10:11:46 +09:00
Leonard Hall 406a7739a6 AC_AttControl: adjust default rate IMAX and Yaw Filt
Increase Roll, Pitch and Yaw IMAX from 0.444 or 0.222 to 0.5
Decrease Yaw Filter from 5hz to 2.5hz based on the results of autotunes on many vehicles which always seems to produce values between 2 and 3hz
2017-06-15 10:11:43 +09:00
Randy Mackay b43f23561f AP_Proximity: validate range finder distances 2017-06-15 10:11:03 +09:00
murata 4dc3833a4e AP_Avoidance: Change the determination place of the index value. 2017-06-15 10:10:06 +09:00
Dr.-Ing. Amilcar Do Carmo Lucas f97c76cbd9 AC_WPNav: correct min limit 2017-06-15 10:08:48 +09:00
Randy Mackay a1654fa83d Copter: update AC3.5.0-rc7 release notes 2017-05-25 12:04:55 +09:00
Michael du Breuil 78a463472d AP_Mission: Prohibit resuming mission waypoints that are no longer in the mission 2017-05-25 12:02:45 +09:00
Randy Mackay b081e8c04e Copter: version to 3.5.0-rc7 2017-05-25 11:56:58 +09:00
Randy Mackay 1484c248ae Copter: 3.5.0-rc7 release notes 2017-05-25 11:56:52 +09:00
Andrew Tridgell 6ce42a429b AP_BoardConfig: drop target temperature for cube to 45
getting to 60 was taking far too long (15 minutes or so). 45 is more
achievable.

This is a result of the fix to the invensense temperature detection
code
2017-05-25 11:30:40 +09:00
Andrew Tridgell 5616dc32d2 Frame_params: drop target temp for Solo to 45 2017-05-25 11:30:37 +09:00
Andrew Tridgell 0ce9b9ded4 AP_BoardConfig: cope with bad config of pixhawk2
don't allow FMUv2 firmware on cube, and force temperature if incorrect
2017-05-25 11:30:32 +09:00
Andrew Tridgell ae209ed2b5 PX4Firmware: detect pixhawk2 and cope with header 2017-05-25 11:30:26 +09:00
Randy Mackay 7150dfd5f2 Copter: sport and acro trainer limits based on target attitude
previously the trainer used the vehicle's actual attitude meaning that the target could get far past the limits if there was an attitude error
2017-05-25 11:29:16 +09:00
Randy Mackay cffd5e0f0b Copter: fix compassmot for oneshot ESCs 2017-05-25 11:29:01 +09:00
Andrew Tridgell a9ec4c3422 Copter: adjust autotune poshold
only reset position on pitch or roll input

also increases the max angle error for twitching in autotune. When a
vehicle is not well tuned the limit can prevent twitching
2017-05-25 11:28:57 +09:00
Lucas De Marchi d062b5b8f2 AP_HAL_Linux: RCInput_RPI: ignore unwanted signals
We are setting a termination handler for some signals which are of not
interest.  Just ignore them.  Ignoring SIGWINCH allows for example to
run on a screen and change the window size later without killing
ardupilot.
2017-05-25 11:28:41 +09:00
Lucas De Marchi c1984451e7 AP_HAL_Linux: Scheduler: increase stack for scheduler threads
RPI-based boards that use RCInput_RPI need more stack space otherwise we
end up with stack corruption. This leads to crash particularly when also
using GPIO_RPI since it may change what that driver is poking on memory.

This increases stack size to 1M which is overkill for most of other
boards with a more controllable stack usage. However this exposes that
on multiple different HWs a single point for stack size decision may not
be the best.  This can be improved in future.
2017-05-25 11:28:38 +09:00
Randy Mackay 5fad98078f Copter: fix esc calibration for one-shot
the cork and push need to be done from the vehicle level
2017-05-25 11:27:58 +09:00
Randy Mackay f618359041 AC_WPNav: sanity check wpnav-radius
Occasionally users accidentally set the wpnav-radius to 0 and the vehicle gets stuck at waypoints
2017-05-25 11:27:28 +09:00
Randy Mackay 945a7bfaed AP_Beacon: minor formatting fixes for marvelmind 2017-05-25 11:26:38 +09:00
Karthik Desai 4daba8e98a AP_Beacon: order the stationary beacons in ascending order of address 2017-05-25 11:26:35 +09:00
Karthik Desai 677aa88e33 AP_Beacon: transform Marvelmind ENU to ArduPilot NED coordinates
Cache beacon positions to speed-up distance calculations
Only pass data to EKF after both hedgehog and beacon positions are known
Add license and credit Marvelmind
Re-order code around to minimize diff with upstream marvelmind code
Integrated review requests
2017-05-25 11:26:33 +09:00
Dr.-Ing. Amilcar Do Carmo Lucas 43f22cf502 AP_Beacon: added units in the comments documentation, to make the API easier to use 2017-05-25 11:26:31 +09:00
karthik.desai 653ecfc4cb AP_SerialManager: Rename Pozyx Beacon to Beacon 2017-05-25 11:26:28 +09:00
Randy Mackay efab409b6e Copter: version to AC3.5.0-rc6 2017-05-15 14:32:14 +09:00
Randy Mackay 539d009de3 Copter: AC3.5-rc6 release notes 2017-05-15 14:31:46 +09:00
Randy Mackay 2a7a0788db Copter: respond to param list request after motor init 2017-05-15 14:26:42 +09:00
Pierre Kancir 30243ed5fc ArduCopter: radio fix passthrough range on heli/coax/single 2017-05-15 14:26:39 +09:00
Randy Mackay f0d5017b43 Copter: move esc calibration startup check to after servo function initialisation 2017-05-15 14:23:42 +09:00
Randy Mackay 84946ca668 Copter: fix esc calibration is safety switch has been disabled 2017-05-15 14:23:40 +09:00
Randy Mackay b0311c4ef3 Copter: ensure esc calibration only occurs on next reboot
It was possible for a board with no safety switch attached to get stuck waiting for the user to press the non-existance switch.  Rebooting now resolves the problem because the ESC_CAL parameter is reset to zero regardless of whether the calibration completes or not.
2017-05-15 14:23:38 +09:00