Commit Graph

43390 Commits

Author SHA1 Message Date
Peter Barker 2f36336627 AP_SerialManager: add CrossFire and Generator to serial protocol descriptions 2020-08-05 16:26:19 +09:00
Peter Barker 07abb3ab6a autotest: extend RichenPower test 2020-08-05 16:26:19 +09:00
Peter Barker 34be953085 AP_Vehicle: add is_crashed method to AP_Vehicle 2020-08-05 16:26:19 +09:00
Peter Barker 6ab9089fff AP_Arming: add accessor to retrieve last disarm method 2020-08-05 16:26:19 +09:00
Peter Barker 68b6b77a22 SITL: correct simulation of RichenPower generator 2020-08-05 16:26:19 +09:00
Peter Barker c8a368d896 AP_Generator: update prearm checks, fill new GENERATOR_STATUS fields
AP_Generator_Richenpower: only update servo channel while disarmed

AP_Generator_Richenpower: move warning for servo output channel to prearm checks

AP_Generator: state is simply off if RPM is zero

AP_Generator: send runtime and seconds-until-maintenance in GENERATOR_STATUS

AP_Generator_RichenPower: correct runtime seconds/minutes position in packets

AP_Generator_RichenPower: correct and expand use of mode packet entry

AP_Generator_RichenPower: fail prearm check if generator not seen

AP_Generator_RichenPower: make prearm check for needing maintenance  warn-only

AP_Generator_RichenPower: rename runstate to pilot_desired_runstate

AP_Generator_RichenPower: tweak decoding of time-to-maintenance

AP_Generator: add hysteresis for warmup/cooldown in IDLE

AP_Generator: stop generator in case of vehicle crash

AP_Generator: generator must go through idle from run to stop

AP_Generator: emit statustext when generator configured but not present

AP_Generator: do not log if LOG_BITMASK is zero

AP_Generator: do not warn user if generator configured but not present

They won't be able to start the generator if we can't see it.

Don't update the runstate if no readings seen.

AP_Generator: do not send generator status if no readings seen
2020-08-05 16:26:19 +09:00
Andy Piper d545f392fb AP_HAL: set base type of FrequencyPeak to uint8_t 2020-08-05 17:20:03 +10:00
Andy Piper 9013432d27 AP_GyroFFT: slew FFT frequency output 2020-08-05 17:20:03 +10:00
Rishabh bac3660fca Tools: Push autotune switch test to run after avoidance tests 2020-08-05 15:37:04 +09:00
Rishabh cf04a01389 Tools: Increase timeout for avoidance autotest 2020-08-05 15:37:04 +09:00
Rishabh 0b112981f9 AC_Avoid: Back away if vehicle breaches margin to obstacle/fence 2020-08-05 15:37:04 +09:00
Rishabh 85692312ac AC_Fence: Add Pre-Arm check for margin < radius 2020-08-05 15:37:04 +09:00
Rishabh 251ebf9286 AP_Logger: Log Simple Avoidance 2020-08-05 15:37:04 +09:00
Peter Barker b9dc7118d4 autotest: add do_timesync_roundtrip to do a timesync against SITL
On the assumption that ArduPilot processes mavlink packets
synchronously (or at least in order), after we have run a timesync
roundtrip we can reasonably expect any mavlink command we have sent
prior to the roundtrip to have been processed, and we should be able to
see the results in the mavlink stream.
2020-08-05 13:24:15 +10:00
Samuel Tabor aa776b06a4 Plane: Use sq() rather than powf() in soaring.cpp. 2020-08-05 11:58:54 +10:00
Samuel Tabor b2d63c5049 Plane: Refactor soaring.cpp. 2020-08-05 11:58:54 +10:00
Peter Barker d87986ecdd Copter: move set_throttle_takeoff implementation into Mode
No callers except the mode objects, so move it.
2020-08-05 08:23:03 +09:00
Peter Barker 4e12f16608 AP_AHRS: provide accessor for synthetic airspeed 2020-08-04 23:12:03 +10:00
Peter Barker ac85ec9924 Plane: log AHRS synthetic airspeed 2020-08-04 23:12:03 +10:00
Peter Barker b5050c1e11 SITL: add simulated MaxSonarI2CXL i2c sensor 2020-08-04 21:40:21 +10:00
Peter Barker 80d7a4ee5e SITL: simulated i2c support 2020-08-04 21:40:21 +10:00
Peter Barker 2319638dd2 AP_HAL_SITL: simulated i2c support 2020-08-04 21:40:21 +10:00
Peter Barker 0303c5c4a8 SITL: move calculation of simulated rangefinder range to inside SIM_Aircraft
this will allow us to use the for non-serial rangefinder backends
2020-08-04 21:40:21 +10:00
Peter Barker 2b69b7ba6a AP_HAL_SITL: move calculation of simulated rangefinder range to inside SIM_Aircraft
this will allow us to use the for non-serial rangefinder backends
2020-08-04 21:40:21 +10:00
Dr.-Ing. Amilcar do Carmo Lucas 5325f789e1 Mavlink: Update to HEAD from master branch and add upstream updates from up-to 20200401 2020-08-04 18:29:59 +09:00
chobits 4b8be2e535 AP_NavEKF3: fix comments 2020-08-04 18:16:18 +10:00
Peter Barker 4640c24872 autotest: correct checking for no-logs string 2020-08-04 15:12:08 +10:00
Peter Barker b2748f19f6 autotest: correct validator for Distance wait-and-maintain 2020-08-04 15:12:08 +10:00
Willian Galvani 0f992ac6a3 Autotest: add test for Sub position hold 2020-08-03 20:19:28 -07:00
Willian Galvani 385f440d90 Sub: update control_poshold to use AC_PosControlSub 2020-08-03 20:19:28 -07:00
Willian Galvani 7fa8a455d7 Sub: refactor depth control of control_althold to a function 2020-08-03 20:19:28 -07:00
Mark Whitehorn 8325de0845 Copter: default RC_OPTIONS to 0 for tradheli 2020-08-04 10:26:45 +10:00
Mark Whitehorn 0d5de343d2 autotest: default throttle to 1000 for quadplane
zero throttle after disarming in do_RTL

Co-authored-by: Peter Barker <pbarker@barker.dropbear.id.au>
2020-08-04 10:26:45 +10:00
Mark Whitehorn 1c60a3eb4c RC_Channel: default throttle pre-arm check to enabled 2020-08-04 10:26:45 +10:00
Mark Whitehorn 58463e67c5 AP_Arming: default throttle pre-arm check to enabled 2020-08-04 10:26:45 +10:00
Peter Barker ad435dcdbb AP_AHRS: remove unused base-class airspeed_estimate method 2020-08-04 10:08:22 +10:00
Andrew Tridgell 676c36bad4 RC_Channel: fixed use of radio_in out of range for angle inputs
this prevents mis-calculation of the angle when RC input goes outside
of the configured range. This impacted on throttle nudge in plane when
reverse thrust was enabled

thanks to Pompecukor for reporting!
2020-08-04 09:33:19 +10:00
Andrew Tridgell 6466912ac0 Plane: don't crosstrack after AUTO VTOL takeoff 2020-08-04 09:26:08 +10:00
Andy Piper e53a43461b AP_InertialSensor: remove ICM gyro pre-filter 2020-08-04 09:24:16 +10:00
Andy Piper baf92a17f9 AP_HAL_ChibiOS: disable AP_Mount on "mini" boards 2020-08-04 09:18:14 +10:00
Andy Piper cd60238e3d AP_Camera: make solo gimbal inclusion configurable per-board 2020-08-04 09:18:14 +10:00
Andy Piper 07df203d19 Sub: make mount/gimbal inclusion configurable per-board 2020-08-04 09:18:14 +10:00
Andy Piper 6d87d61c7b Rover: make mount/gimbal inclusion configurable per-board 2020-08-04 09:18:14 +10:00
Andy Piper b649afe9e5 Plane: make mount/gimbal inclusion configurable per-board 2020-08-04 09:18:14 +10:00
Andy Piper e91ae19544 GCS_MAVLink: make mount/gimbal configurable on a per-board basis 2020-08-04 09:18:14 +10:00
Andy Piper 54c3d07547 Copter: make make/gimbal configurable on a per-board basis 2020-08-04 09:18:14 +10:00
Andy Piper f7f5880179 AP_Mount: make mount/gimbal inclusion configurable per-board and disable Solo gimbal on all 1MB boards 2020-08-04 09:18:14 +10:00
Dr.-Ing. Amilcar do Carmo Lucas 5fad6ddddb Copter: fix typos in PL dataflash logs field description text 2020-08-04 08:14:29 +09:00
Dr.-Ing. Amilcar do Carmo Lucas be963bbdf9 Copter: fix units and multipliers in PL dataflash logs message 2020-08-04 08:14:29 +09:00
bugobliterator 13188b5e7e AP_OSD: ensure that we use environment Python interpreter 2020-08-03 14:02:09 +10:00