Commit Graph

60515 Commits

Author SHA1 Message Date
Peter Barker
d665d2c56e GCS_MAVLink: save bytes when AP_AIS_ENABLED is false 2023-10-27 14:16:47 +11:00
Peter Barker
0928927ab7 Tools: correct use of AP_RANGEFINDER_LUA_ENABLED
new, separate define to AP_SCRIPTING_ENABLED use was incomplete
2023-10-27 14:16:47 +11:00
Peter Barker
e55799c8d8 AP_RangeFinder: correct use of AP_RANGEFINDER_LUA_ENABLED
new, separate define to AP_SCRIPTING_ENABLED use was incomplete
2023-10-27 14:16:47 +11:00
Peter Barker
7961eb6045 Plane: consider nan as zero in DO_REPOSITION
QGC's interfaces want to send nan for these parameters
2023-10-27 14:16:07 +11:00
Peter Barker
e5613de586 Tools: extract_features.py: add option to find feature by string-present-in-codebase
sometimes a features isn't represented by a symbol, but can be found with a specific string....
2023-10-27 14:15:53 +11:00
Peter Barker
a04bfff957 Tools: add AC_PAYLOAD_PLACE_ENABLED to build options 2023-10-27 14:15:53 +11:00
Peter Barker
90607ffa5f hwdef: remove payload place from minimized boards 2023-10-27 14:15:53 +11:00
Peter Barker
6b439bb2f3 ArduCopter: allow payload place to be compiled out of code 2023-10-27 14:15:53 +11:00
Peter Barker
5a65632a2d AP_Mission: allow payload place to be compiled out of code 2023-10-27 14:15:53 +11:00
Peter Barker
bf59fbc6d9 Copter: payloadplace: avoid using auto_takeoff functionality
Co-authored-by: Leonard Hall <leonardthall@gmail.com>

the methods being called to a lot more than we need or want them to.

In particular, they mix both horizontal and vertical control, but also may or may not run based on various aircraft conditions.

Simplify by simply calling position controller.
2023-10-27 14:15:53 +11:00
Peter Barker
a820612fc9 Copter: payloadplace: fold methods back into caller
Co-authored-by: Leonard Hall <leonardthall@gmail.com>

these methods don't really add much, and prohibit future refactoring
2023-10-27 14:15:53 +11:00
Peter Barker
af949590f8 Copter: remove unimplemented method declaration 2023-10-27 14:15:53 +11:00
Peter Barker
e2157d8b9f Copter: remove un-needed PayloadPlace::run_should_run
make this look like the other handling, especially in terms of what we do if we shouldn't be running
2023-10-27 14:15:53 +11:00
Peter Barker
5820a9bc2f Copter: encapsulate PayLoadPlace state and methods into existing struct
... and make it a class
2023-10-27 14:15:53 +11:00
Peter Barker
ba72b7edfd hwdef: fix speedybeef4v3 build
double-definition
2023-10-26 18:15:30 +11:00
Peter Barker
8e5708b6f2 speedybeef4: remove redefinition of AP_BATTERY_SYNTHETIC_CURRENT_ENABLED 2023-10-26 18:15:30 +11:00
Peter Barker
f5045384cf hwdef: correct ReaperF745 build 2023-10-26 18:15:30 +11:00
Peter Barker
b757319245 hwdef: fix KakuteF4Mini build
redefinition
2023-10-26 18:15:30 +11:00
Peter Barker
38db3d8cbc hwdef: fix F35Lightning build
.... and remove redundantdefine
2023-10-26 18:15:30 +11:00
Peter Barker
14e0a1028c Rover: remove MSG_BATTERY_STATUS from steams if AP_BATTERY_ENABLED is false 2023-10-26 13:23:57 +11:00
Peter Barker
6cfc6f56cb Blimp: remove MSG_BATTERY_STATUS from steams if AP_BATTERY_ENABLED is false 2023-10-26 13:23:57 +11:00
Peter Barker
c3e5ea0b0f ArduSub: remove MSG_BATTERY_STATUS from steams if AP_BATTERY_ENABLED is false 2023-10-26 13:23:57 +11:00
Peter Barker
edb4f25953 ArduPlane: remove MSG_BATTERY_STATUS from steams if AP_BATTERY_ENABLED is false 2023-10-26 13:23:57 +11:00
Peter Barker
d46859aa96 ArduCopter: remove MSG_BATTERY_STATUS from steams if AP_BATTERY_ENABLED is false 2023-10-26 13:23:57 +11:00
Peter Barker
e85f843c5d CS_MAVLink: tidy use of AP_BATTERY_ENABLED defines
remove entire functions rather than just their content
2023-10-26 13:23:57 +11:00
Peter Barker
e110ee5537 autotest: stop using removed MAV_CMD_PREFLIGHT_SET_SENSOR_OFFSETS 2023-10-26 13:19:59 +11:00
Peter Barker
2412ba495d GCS_MAVLink: remove handling of PREFLIGHT_SET_SENSOR_OFFSETS
This was the old offboard-calibration code.

We've checked MAVProxy, QGC and MissionPlanner and they're not using this code.

The onboard calibration stuff is better.
2023-10-26 13:19:59 +11:00
Peter Barker
740b939aa5 GCS_MAVLink: handle control-high-latency as both long and int 2023-10-26 13:19:29 +11:00
Peter Barker
5e55e143cc autotest: test MAV_CMD_CONTROL_HIGH_LATENCY as both long and int 2023-10-26 13:19:29 +11:00
Minderring
62af92ef8a AP_Bootloader: add board id for MICOAIR405 2023-10-25 10:21:26 -07:00
Michael du Breuil
bed58d9952 Blimp: Support not sending a status text on state change 2023-10-25 09:39:51 -07:00
Michael du Breuil
5e44b2ea52 Rover: Support not sending a status text on state change 2023-10-25 09:39:51 -07:00
Michael du Breuil
d42a3ee971 Copter: Support not sending a status text on state change 2023-10-25 09:39:51 -07:00
Michael du Breuil
9e07fbd949 Sub: Support not sending a status text on state change 2023-10-25 09:39:51 -07:00
Michael du Breuil
28d4603a46 Plane: Support not sending a status text on state change 2023-10-25 09:39:51 -07:00
Michael du Breuil
45786a33e6 AP_Arming: Do not send a status text on state change 2023-10-25 09:39:51 -07:00
Iampete1
83a31ac371 AP_Compass: add big comment explaining calculate_heading maths, add consts and use wrap_PI helper 2023-10-25 15:57:16 +01:00
Peter Barker
73be6c55f7 Tools: add Sagetech MXS simulator 2023-10-25 20:06:47 +11:00
Peter Barker
fd67c71eb0 SITL: add Sagetech MXS simulator 2023-10-25 20:06:47 +11:00
Peter Barker
6d1d9df875 AP_HAL_SITL: add Sagetech MXS simulator 2023-10-25 20:06:47 +11:00
Andy Piper
9ba9553d96 AP_HAL_ChibiOS: NFC refactor of dshot/bdshot in preparation for bdshot on iomcu 2023-10-25 19:30:35 +11:00
Andy Piper
7ca2a4da56 AP_InertialSensor: remove ICM42xxx defaults 2023-10-25 19:23:11 +11:00
Andrew Tridgell
2688848cd1 AP_InertialSensor: fixed orientation of batch sampled data
we need to rotate the data so that FFT displays match the configured
orientation
2023-10-25 19:23:11 +11:00
Andrew Tridgell
0ebf9e7af5 AP_InertialSensor: pre-fetch instances for use in filter setup
we use the instance numbers during filter configuration to check if
fast sampling is enabled. We need to ensure these instance numbers
have been setup before the filtering functions get called
2023-10-25 19:23:11 +11:00
Andy Piper
a9e0bf070c AP_InertialSensor: ensure indirect registers are not modified with sensors active on ICM-42688 2023-10-25 19:23:11 +11:00
Andy Piper
da0b1402d3 AP_InertialSensor: add high-resolution reads for ICM45686
enable high-resolution support on all ICM4xxxx sensors
create INS_HIRES_SAMPLE mask
adjust high-resolution sampling for correct byte ordering and depth
correct high resolution scaling on 18bit ICM4xxxx IMUs
control highres via HAL_INS_HIGHRES_SAMPLE
2023-10-25 19:23:11 +11:00
Andy Piper
fee43af729 AP_HAL_ChibiOS: enable highres sampling on CubeOrangePlus 2023-10-25 19:23:11 +11:00
Peter Barker
b86c5b7eea hwdef: remove unused HAL_NO_LOGGING define from hwdefs 2023-10-25 19:17:18 +11:00
Peter Barker
28e89505fe hwdef: remove redundant HAL_GCS_ENABLED lines 2023-10-25 19:17:18 +11:00
Rhys Mainwaring
23244eda9e Rover: implement external control
Signed-off-by: Rhys Mainwaring <rhys.mainwaring@me.com>

Rover: update comment in Rover/AP_ExternalControl_Rover.h

Co-authored-by: Nick E <NExton@sypaq.com.au>
2023-10-25 10:05:08 +11:00