Commit Graph

613 Commits

Author SHA1 Message Date
Peter Barker
6338d10b5f global: create and use HAL_PROGRAM_SIZE_LIMIT_KB
We will reserve BOARD_FLASH_SIZE for the internal flash on stm32 flash processors, use HAL_PROGRAM_SIZE_LIMIT_KB in the general code base.

Notable change here is that boards with external flash will start to get features only available with more than 2MB of program storage
2025-02-26 10:06:39 +11:00
Peter Barker
f2104c97d8 AP_Mount: mark many functions as __INITFUNC__
... implying they can go into external flash
2025-02-19 18:01:48 +11:00
Randy Mackay
a6c2c1527b AP_Mount: CADDX RC rate control fix 2025-02-17 13:39:44 +09:00
Ep Pravitra
43cdf1a03d AP_Mount: fix object tracking command for ViewPro
The command should also take negative values

Redo scaling to comply with mavlink documentation.
2025-02-08 08:48:52 +09:00
Ep Pravitra
0b659ac8a1 AP_Mount: zoom for Viewpro IR sensor 2025-02-06 10:50:14 +09:00
Peter Barker
b79644c64a AP_Mount: rename SRV_Channel::Aux_servo_function_t to SRV_Channel::Function 2025-01-28 21:56:46 +11:00
Randy Mackay
32ded53f95 AP_Mount: alphabetise type param values 2025-01-15 14:54:14 +09:00
Andrew Tridgell
ed7d4051aa AP_Mount: save some flash when features disabled 2025-01-14 11:46:13 +11:00
Huibean
0f8f2b28c4 AP_Mount: fix param increment description 2025-01-12 10:18:25 +11:00
Randy Mackay
c7228419ef AP_Mount: Topotek pitch rate direction fix 2025-01-05 10:51:44 +11:00
Peter Barker
786df975f0 AP_Mount: remove MOUNT_CONFIGURE and MOUNT_CONTROL support 2025-01-03 14:18:25 +11:00
Henry Wurzburg
f3c837ed80 AP_Mount: add CADDX gimbal support
Co-authored-by: Randy Mackay <rmackay9@yahoo.com>
2025-01-02 22:18:19 +11:00
Peter Barker
aec7cc24d1 AP_Mount: rearrange methods and variables per PR review 2024-12-16 19:16:25 +09:00
Peter Barker
0b8ad6f1d9 AP_Mount: privatise various fields and methods
We are hoping to pull more target calculations into the frontend.

Having these non-private threatens for calculations to move into the separate backends instead, so privatise them
2024-12-16 19:16:25 +09:00
Randy Mackay
5a1a8d1c10 AP_Mount: add get_attitude_quaternion method 2024-12-10 19:57:06 +09:00
Thomas Watson
01c6765b6f AP_Mount: optimize DroneCAN subscription process
* remove unnecessary nullptr check, these are always called from an
  initialized AP_DroneCAN so if it's nullptr something has gone
  horrifically wrong

* pass in driver index instead of repeatedly calling function to get it

* simplify error handling; knowing exactly which allocation failed is not
  super helpful and one failing likely means subsequent ones will too,
  as it can only fail due to being out of memory
2024-11-18 10:30:29 +11:00
Thomas Watson
2dd98e60ea AP_Mount: Xacti: drop unused subscription status variable 2024-11-18 10:30:29 +11:00
zhou
3bc0207f22 AP_Mount: topotek: Change the type of gimbal angle acquisition
... also convert the lowercase characters in the command to uppercase
2024-11-12 16:56:05 +09:00
Peter Barker
99e314f49a AP_Mount: tidy header includes
our pattern is to include the config file and then use the relevant define, with nothing in between
2024-11-12 13:02:43 +11:00
Peter Barker
dcc04d685f AP_Mount: factor out update_mnt_target_from_rc_target from servo, use it elsewhere
this gives all backends the neutral-on-RC-failsafe behaviour
2024-11-12 11:01:21 +11:00
Hwurzburg
9dfcb487cf AP_Mount: add RC failsafe action 2024-11-12 11:01:21 +11:00
Peter Barker
decf484702 AP_Mount: use NaN in place of 0 for camera information message
Co-authored-by: muramura <ma2maru@gmail.com>
2024-09-26 19:26:59 +10:00
Peter Barker
edc0e46614 AP_Mount: add and use global NaNf float value 2024-09-26 19:26:59 +10:00
Peter Barker
4b1e1871c9 AP_Mount: create and use AP_Terrain_config.h 2024-09-24 11:59:13 +10:00
Randy Mackay
aa65a2ab54 AP_Mount: siyi supports camera-thermal-range 2024-09-10 20:59:49 +09:00
Randy Mackay
1f14c2ca6b AP_Mount: Siyi implements change_setting 2024-09-03 09:04:39 +09:00
Randy Mackay
5bcbf56a47 AP_Mount: Siyi ZT6 set lens fix
ZT6 has RGB and Thermal image sensors only
2024-08-27 10:23:47 +10:00
Randy Mackay
0874202aa1 AP_Mount: Siyi ZT6 hardware id fix 2024-08-27 10:23:47 +10:00
Peter Barker
53e9fe0805 AP_Mount: correct compilation with HAL_MOUNT_SET_CAMERA_SOURCE_ENABLED off 2024-08-12 17:50:59 +10:00
Peter Barker
496bbde384 AP_Mount: use GCS_SEND_TEXT rather than gcs().send_text
Co-authored-by: muramura <ma2maru@gmail.com>
2024-08-07 18:33:16 +10:00
Peter Barker
16c2e23ee7 AP_Mount: allow AP_MOUNT_BACKEND_DEFAULT_ENABLED to be overridden 2024-07-28 12:00:02 +10:00
Peter Barker
7f97e897e2 AP_Camera: add sanity check for Siyi lens change 2024-07-25 12:18:51 +10:00
muramura
f1e67ba747 AP_Mount: SWITCH statement to table reference 2024-07-25 12:18:51 +10:00
mduclehcm
25a406e633 AP_Mount: Conditionally define serial_instance to fix unused variable compile error
- Wrapped the definition of `serial_instance` with preprocessor directives to ensure it is only defined when necessary.
- This resolves the compile error caused by the unused variable when no features requiring `serial_instance` are enabled.
2024-07-25 09:35:46 +10:00
Randy Mackay
2b64787099 AP_Mount: topotek spelling fix 2024-07-24 17:28:24 +10:00
Randy Mackay
cfd1e98333 AP_Mount: topotek safely parses version 2024-07-24 17:28:24 +10:00
xiaozhou
e2cb4ba232 AP_Mount: Topotek image tracking fix
Co-authored-by: Randy Mackay <rmackay9@yahoo.com>
2024-07-23 10:51:09 +10:00
xiaozhou
69e4005bb6 AP_Mount: Topotek retrieves model name
Co-authored-by: Randy Mackay <rmackay9@yahoo.com>
2024-07-23 10:51:09 +10:00
xiaozhou
858aff5f4f AP_Mount: Topotek handles new version format
Co-authored-by: Randy Mackay <rmackay9@yahoo.com>
2024-07-23 10:51:09 +10:00
Peter Barker
16a9e53bdb AP_Mount: tidy Solo defines 2024-07-20 22:44:10 +10:00
muramura
9f6edd8d55 AP_Mount: Increment the serial instance 2024-07-10 08:31:25 +09:00
Andrew Tridgell
b19186980a AP_Mount: added sending of position data to Siyi gimbal
Co-authored-by: Randy Mackay <rmackay9@yahoo.com>
this will allow for exif tags of position for photos
2024-07-09 11:28:57 +10:00
laozhou
611fb94660 AP_Mount: integrate topotek gimbal driver
Co-authored-by: Randy Mackay <rmackay9@yahoo.com>
2024-07-09 09:08:51 +10:00
laozhou
d5d1b9885c AP_Mount: add topotek backend
Co-authored-by: Randy Mackay <rmackay9@yahoo.com>
2024-07-09 09:08:51 +10:00
Randy Mackay
3439ced236 AP_Mount: add Siyi ZT6 support 2024-06-26 18:37:42 +10:00
Peter Barker
8302e0d1e2 AP_Mount: rename ins get_primary_accel to get_first_usable_accel 2024-06-26 17:12:12 +10:00
MattKear
e1a1d15f62 AP_Mount: Alexmos: Improve angle precision and move defines to cpp 2024-06-20 15:13:48 +10:00
Andrew Tridgell
28da263e16 AP_Mount: use NEW_NOTHROW for new(std::nothrow) 2024-06-04 09:20:21 +10:00
Randy Mackay
72b5efd8b3 AP_Mount: serial backends gets instance 2024-05-22 18:00:22 +10:00
Randy Mackay
99626b73ff AP_Mount: SToRM32_serial inherits from serial backend 2024-05-22 18:00:22 +10:00