Commit Graph
255 Commits
Author SHA1 Message Date
Willian Galvani 21fdace4ea AP_Camera_Servo: report back zoom and focus levels 2025-08-03 07:42:37 +10:00
Randy Mackay 0788fe6d46 AP_Camera: mavlink commands use target sysid and compid 2025-07-02 17:20:32 +10:00
Christian Clauss 1a0a9a6f54 AP_Camera: Add # flake8: noqa linter directive 2025-06-20 20:30:15 +10:00
Willian Galvani 16255d1939 AP_Camera_Servo: allow setting absolute zoom/focus endpoints via mavlink 2025-06-17 08:36:27 +09:00
Christian Clauss 3bac9c0c64 AP_Camera: Fix check-executables-have-shebangs
% `pre-commit run --all-files check-executables-have-shebangs ` # currently fails on localhost (a developer's machine).
* https://github.com/pre-commit/pre-commit-hooks?tab=readme-ov-file#check-executables-have-shebangs

With the suggested change in this pull request, that test passes.

The linter directive `# flake8: noqa` was added to ensure that
`pre-commit run flake8` also passed on some Python files.
2025-06-15 22:28:53 +10:00
Peter Barker 3133623cd5 AP_Camera: avoid using cd when sending camera feedback message 2025-06-07 11:15:01 +10:00
Peter Barker e455d3fa8b AP_Camera: rename AHRS get_roll etc accessors to include _rad 2025-06-05 17:28:41 +10:00
Peter Barker 81d33e7127 AP_Camera: use get_roll_deg in place of roll_sensor (etc.) 2025-06-03 09:48:53 +10:00
Peter Barker 7b10206b6e AP_Camera: use get_roll_deg in place of roll_sensor (etc.) 2025-06-03 09:48:53 +10:00
Peter Barker 94943b05fe AP_Camera: remove line feeds from GCS_SEND_TEXT calls
these often make their way in when moving from some other printf-style debugging...
2025-05-30 22:36:07 +10:00
Randy MackayandDaniel Ossig bcc7886ad0 AP_Camera: avoid SITL panic if pic taken with no pos estimate
Co-authored-by: Daniel Ossig <ossig@tb-copters.de>
2025-03-19 08:59:04 +11:00
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
Willian Galvani 4bdcb2883e AP_Camera: allow focus and zoom control with servos 2025-02-25 08:18:05 +09:00
Andy Piper 7805477fb8 AP_Camera: use get_stick_gesture_pos() for RunCam menus 2025-01-15 18:28:44 +11:00
Andrew Tridgell f92bd68a0e AP_Camera: save some flash when features disabled 2025-01-14 11:46:13 +11:00
Andy Piper 684d95a826 AP_Camera: remove lf from panic
correct camera info message and defend against -1
2024-12-13 11:07:09 +00:00
Andy Piper 399f9f6f98 AP_Camera: RunCam camera backend
RunCam parameter conversion
add RunCam camera settings and control
2024-12-13 11:07:09 +00:00
Randy Mackay dd37065bb5 AP_Camera: camera-status-fov attitude in earth frame 2024-12-10 19:57:06 +09:00
Randy Mackay a9f561ac78 AP_Camera: always send camera-fov-status 2024-12-10 19:57:06 +09:00
Randy Mackay 6f6613fefd AP_Camera: set-stream-information loses send-text 2024-12-05 16:46:48 +09:00
Peter Barker f0900bd119 AP_Camera: RunCam: get rpty channels directly using convenience functions 2024-11-06 18:40:38 +11:00
Nick Exton cb620126b3 AP_Camera: Add capability to set VIDEO_STREAM_INFORMATION from Lua 2024-10-01 08:18:54 +09:00
Nick Exton 30a212b4cf AP_Camera: Add capability to set CAMERA_INFORMATION from Lua 2024-10-01 08:18:54 +09:00
Peter Barker 08b4cc1374 AP_Camera: add and use global NaNf float value 2024-09-26 19:26:59 +10:00
Rhys Mainwaring 00163ce988 AP_Camera: add Python examples for GStreamer UDP and RTSP video streams
Signed-off-by: Rhys Mainwaring <rhys.mainwaring@me.com>
2024-09-26 09:32:27 +09:00
Peter Barker b54c424842 AP_Camera: re-order initialiser lines so -Werror=reorder will work 2024-09-24 22:50:28 +10:00
Randy Mackay 6f2a88f707 AP_Camera: support send-thermal-range 2024-09-10 20:59:49 +09:00
Peter Barker 89c9b186e2 AP_Camera: add missing include for AP_AHRS
We use this library's singleton
2024-09-06 08:52:01 +10:00
Randy Mackay 78d88d11a3 AP_Camera: add change settings 2024-09-03 09:04:39 +09:00
Peter Barker b86380bbc6 AP_Camera: create and use an option_is_enabled 2024-08-20 14:50:23 +10:00
Peter Barker ca9a504c4f AP_Camera: move defintiion of HAL_RUNCAM_ENABLED into AP_Camera_config.h 2024-08-15 18:15:05 +10:00
Peter Barkerandmuramura ffb2a32144 AP_Camera: use GCS_SEND_TEXT rather than gcs().send_text
Co-authored-by: muramura <ma2maru@gmail.com>
2024-08-07 18:33:16 +10:00
Bob Long 078a86ad96 AP_Camera: fix altitude units in CAMERA_FOV_STATUS 2024-08-07 17:08:49 +10:00
Peter Barker bc80358e9b AP_Camera: rely on AHRS for position, not GPS
our location may not be coming from a GPS
2024-08-06 12:11:30 +10:00
Randy Mackay 44b3217178 AP_Camera: type param desc gets topotek 2024-07-26 12:55:24 +10:00
Randy Mackay 62a03f18d8 AP_Camera: type param desc gets viewpro and xacti 2024-07-26 12:55:24 +10:00
Oleksiy Protas 5190aee9ae AP_Camera: proper string formatting
Incoming strings are 32 bytes and may not be null-terminated if the full width is used
2024-07-17 10:39:46 +10:00
Peter Barker 5538f6735f AP_Camera: move switch for sending camera messages into AP_Camera
neatens GCS_Common a bit, reduces repetitive code
2024-06-05 10:29:01 +10:00
Andrew Tridgell a71585b9b8 AP_Camera: use NEW_NOTHROW for new(std::nothrow) 2024-06-04 09:20:21 +10:00
Peter Barker 5a21d0cb8a AP_Camera: correct compilation when HAL_MOUNT_SET_CAMERA_SOURCE_ENABLED not set
- need the include because an enumeration is used in the header (relied on the include previously being made by a file including this header)
 - set_lens is not part of set-camera-source, so shouldn't be excluded
 - exclude entire method, not body of method based on the include
2024-04-14 13:33:00 +10:00
Peter Barker 43995763db AP_Camera: stop adjusting logged altitudes manually, use location methods 2024-04-11 22:39:09 +10:00
Randy Mackay 5a22fb8da5 AP_Camera: support set-camera-source mavlink command 2024-03-25 09:19:18 +09:00
Peter Barker 3e529a241b AP_Camera: add HAL_GCS_ENABLED to mavlink2 backend dependencies 2024-03-12 09:07:56 +11:00
Randy Mackay a16d71ced4 AP_Camera: fix video recording while armed 2024-02-15 12:17:44 +11:00
Peter Barker 4b30963d1d AP_Camera: allow compilation with HAL_LOGGING_ENABLED false 2024-01-17 18:25:55 +11:00
Henry Wurzburg e55702fe3c AP_Camera:fix OPTIONS bitmask 2024-01-04 08:25:48 +09:00
Peter Barker 8fb1f6f02c AP_Camera: correct compilation when AP_CAMERA_RELAY_ENABLED is 0
... like on skyviper-v2450
2024-01-03 18:05:08 +11:00
Iampete1 8292c6ea9f AP_Camera: move to new relay functions 2023-12-19 10:01:01 +11:00
Nick Exton 2f9b9e2452 AP_Camera: Add Camera_Mount handler for CAMERA_CAPTURE_STATUS request 2023-11-09 13:00:57 +09:00
Nick Exton 477534b446 AP_Camera: Add handler for CAMERA_CAPTURE_STATUS request 2023-11-09 13:00:57 +09:00