Commit Graph

60423 Commits

Author SHA1 Message Date
Peter Barker 306caae6e5 GCS_MAVLink: tidy OSD param message handling 2023-10-27 14:16:47 +11:00
Peter Barker 1f0ae343b1 GCS_MAVLink: tidy ADSB message handling 2023-10-27 14:16:47 +11:00
Peter Barker c1f0c9e70a GCS_MAVLink: tidy CAN message handling 2023-10-27 14:16:47 +11:00
Peter Barker 0f6718b23d GCS_MAVLink: remove FLASH_BOOTLOADER commandd if not compiled in
removes handling of MAV_CMD_FLASH_BOOTLOADER if AP_BOOTLOADER_FLASHING_ENABLED is disabled

Side-effect of correcting the mavlink result code in that case.
2023-10-27 14:16:47 +11:00
Peter Barker 33962cdaf5 Rover: save bytes when AP_AIS_ENABLED is false 2023-10-27 14:16:47 +11:00
Peter Barker 159b71cee8 Blimp: save bytes when AP_AIS_ENABLED is false 2023-10-27 14:16:47 +11:00
Peter Barker 628bc02bf1 ArduPlane: save bytes when AP_AIS_ENABLED is false 2023-10-27 14:16:47 +11:00
Peter Barker 20563bf58d ArduCopter: save bytes when AP_AIS_ENABLED is false 2023-10-27 14:16:47 +11:00
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