Commit Graph

46764 Commits

Author SHA1 Message Date
Randy Mackay d4f1eacbed AP_Logger: use of AP_Proximity checks HAL_PROXIMITY_ENABLED 2021-03-26 16:22:46 +09:00
Randy Mackay f67cdf5a81 AC_Avoidance: use of AP_Proximity checks HAL_PROXIMITY_ENABLED 2021-03-26 16:22:46 +09:00
Randy Mackay b8f9c3b9c0 GCS_MAVLink: use of AP_Proximity checks HAL_PROXIMITY_ENABLED 2021-03-26 16:22:46 +09:00
Randy Mackay d53c8b1dd0 AP_Arming: skip checks if not HAL_PROXIMITY_ENABLED 2021-03-26 16:22:46 +09:00
Randy Mackay 1fad5d46e7 AP_Proximity: add #if HAL_PROXIMITY_ENABLED 2021-03-26 16:22:46 +09:00
Peter Barker 34d6094838 ArduSub: remove Log_Write_Performance which is not called anywhere 2021-03-26 16:35:08 +11:00
Peter Barker a32d45eb04 ArduPlane: remove Log_Write_Performance which is not called anywhere 2021-03-26 16:35:08 +11:00
Peter Barker 45d484c0ba ArduCopter: remove Log_Write_Performance which is not called anywhere 2021-03-26 16:35:08 +11:00
Peter Barker 3af006019b Copter: mark ModeSystemID as has_manual_throttle, no-arm and no-gps
This has implications for many things, like smoothing transition to auto
modes, and for arming
2021-03-26 10:26:34 +09:00
Emre Saldiran 9e97c2e095 AP_Scripting: change set_target_posvel_circle example tart location calculation 2021-03-25 21:01:41 +09:00
Andrew Tridgell 22c936140e Tools: removed assert calls
these waste flash space and do not do us any good
2021-03-25 14:03:40 +11:00
Andrew Tridgell 1f60eb68ec AP_Math: removed assert calls
these waste flash space and do not do us any good
2021-03-25 14:03:40 +11:00
Andrew Tridgell dcf6bcea6e AP_InertialSensor: removed assert calls
these waste flash space and do not do us any good
2021-03-25 14:03:40 +11:00
Andrew Tridgell b9df270df6 AP_HAL_SITL: removed assert calls
these waste flash space and do not do us any good
2021-03-25 14:03:40 +11:00
Andrew Tridgell 0601259d20 AP_HAL_Linux: removed assert calls
these waste flash space and do not do us any good
2021-03-25 14:03:40 +11:00
Andrew Tridgell ebc1f9acf6 AP_HAL: removed assert calls
these waste flash space and do not do us any good
2021-03-25 14:03:40 +11:00
Andrew Tridgell 2473d3f7f8 AP_HAL_Empty: removed assert calls
these waste flash space and do not do us any good
2021-03-25 14:03:40 +11:00
Andrew Tridgell 88e277420f AP_HAL_ChibiOS: removed assert calls
these waste flash space and do not do us any good
2021-03-25 14:03:40 +11:00
Andrew Tridgell 0f5dd40052 AP_Compass: removed assert calls
these waste flash space and do not do us any good
2021-03-25 14:03:40 +11:00
murata 31b0682246 Copter: Move the variable definition 2021-03-25 08:55:17 +09:00
Peter Barker a274697776 Copter: move LAND state variables to be members rather than static
Also rename one of them as we may be using (e.g.) OF to control position rather
than GPS.
2021-03-25 09:39:29 +11:00
Peter Barker e2a350f12e autotest: reduce race condition in fly_square mission
We end up where we started, so when we start to play the mission back we
might immediately be at the first waypoint.  That's a problem as we may
never see the NAV_CONTROLLER_OUTPUT mention waypoint 1 and thus we
fail the test
2021-03-25 02:13:44 +11:00
Peter Barker 240e2d6b28 autotest: correct pexpect handling of supplementary programs 2021-03-24 23:10:27 +11:00
Peter Barker ae7b21843e autotest: remove useless mavproxy set heartbeat directive
This has never actually worked:

2021-03-24T04:53:03.7594996Z AT-0040.3: Starting MAVProxy
2021-03-24T04:53:03.7595674Z PYTHONPATH: /__w/ardupilot/ardupilot/Tools/mavproxy_modules
2021-03-24T04:53:05.8106006Z Running: "mavproxy.py" "--master" "tcp:127.0.0.1:5762" "--aircraft" "test.ArduCopter" "--sitl=127.0.0.1:5502" "--streamrate=5" "--cmd="set heartbeat 8"" "--target-system=1" "--target-component=1" "--quadcopter" "--default-modules" "misc,terrain,wp,rally,fence,param,arm,mode,rc,cmdlong,output"
2021-03-24T04:53:05.8108569Z ERROR LOADING MAVNATIVE - falling back to python implementation
2021-03-24T04:53:05.8109340Z Connect tcp:127.0.0.1:5762 source_system=255
2021-03-24T04:53:05.8109962Z no script test.ArduCopter/mavinit.scr
2021-03-24T04:53:05.8110739Z Unknown command '"set heartbeat 8"'
2021-03-24 23:10:06 +11:00
Josh Henderson 070ad226ce AP_Logger: OABR correct altitude logging frame and specifier 2021-03-24 20:30:54 +09:00
Peter Barker dc793e916f Copter: move implementation of get_pilot_desired_yaw_rate into mode.cpp 2021-03-24 20:46:08 +11:00
Peter Barker 8bf1ac0347 autotest: fix and tidy the log download test
We were requesting past the end of the file
2021-03-24 14:46:48 +11:00
Peter Barker fdbbcaa506 autotest: bump default speedups for several vehicles
These tests seem to run stabley on my box with essentially no speedup
limit
2021-03-24 14:46:48 +11:00
Peter Barker 6f2de67ead autotest: augment delay_sim_time debug 2021-03-24 14:46:48 +11:00
zhouzhiwen2000 afde83d2f9 AP_Baro: Fix occasional problems with SPL06
Sometimes SPL06 has init problems, that's due to failure of reading using SPI for the first time. The SPL06 is a dual protocol sensor(I2C and SPI), sometimes it takes one SPI operation to convert it to SPI mode.
2021-03-24 14:29:30 +11:00
Peter Barker f261045a2d AP_Logger: multiply IO thread timeout according to SITL speedup
Intended to solve issues we're now getting on CI where the IO thread is
blocking-on-write and the main thread is calling it dead.
2021-03-24 12:54:20 +11:00
Emre Saldiran dc290a8884 AP_Scripting: set_target_posvel example script 2021-03-24 08:55:48 +09:00
Emre Saldiran 1a3a2a0437 AP_Scripting: add set_target_posvel_NED binding 2021-03-24 08:55:48 +09:00
Emre Saldiran d5715292a3 Copter: implement set_target_posvel_NED method for use in scripting 2021-03-24 08:55:48 +09:00
Emre Saldiran 858d69ca0e AP_Vehicle: add set_target_posvel_NED method 2021-03-24 08:55:48 +09:00
murata 0fe65fd6d3 Copter: Added new settings for flight mode channel 2021-03-24 08:50:59 +09:00
zhouzhiwen2000 7c6d5d9bf4 AP_OpticalFlow:add UPFLOW sensor 2021-03-24 08:42:14 +09:00
Iampete1 60d26723ae Plane: make TERRAIN_FOLLOW at AP_int32 bitmask, per mode option 2021-03-24 10:15:18 +11:00
Peter Barker 82a28e2a58 AP_Logger: do not log soon after file transfer unless we're armed
mavlink log reads fail randomly, and you end up with a very large number
of log files as we keep closing logs off and then discovering we should
be logging
2021-03-24 08:57:03 +11:00
Peter Barker d9501766c7 autotest: augment delay_sim_time debug 2021-03-24 08:57:03 +11:00
chobitsfan 73a3b5f832 AC_Fence: remove unused declaration 2021-03-24 08:50:48 +11:00
Peter Barker 3035f8dea3 Tools: fix decode_watchdog display of LR,FA and FICSR 2021-03-23 22:49:14 +11:00
Tatsuya Yamaguchi 069b7142b7 Copter: add allows_flip function to Mode class 2021-03-23 22:48:20 +11:00
Tatsuya Yamaguchi f4eed612d7 Copter: add allows_autotune function to Mode class 2021-03-23 22:48:20 +11:00
Tatsuya Yamaguchi 2b89ac625f Copter: add allows_save_trim function to Mode class 2021-03-23 22:48:20 +11:00
Tatsuya Yamaguchi 0cce5699b2 Copter: change from control_mode to flightmode 2021-03-23 22:48:20 +11:00
Tatsuya Yamaguchi 1dccc0ceb3 Copter: add mode_number function to Mode class 2021-03-23 22:48:20 +11:00
Emre Saldiran 543c2bf55b Copter: change description of system id delay variable (NFC) 2021-03-23 20:09:38 +09:00
Peter Barker 9f15689850 autotest: wait longer for prearm failure in IE24 autotest
we only emit prearm failures every 30 seconds - we just weren't waiting
long enough here
2021-03-23 20:34:47 +11:00
Peter Barker f4591faeed AP_NavEKF3: simplify taking of GPS measurements 2021-03-23 15:11:33 +11:00