Commit Graph

32486 Commits

Author SHA1 Message Date
Peter Barker
dfcadfc618 AP_Notify: add and use AP_NOTIFY_TONEALARM_ENABLED 2023-04-23 16:24:02 +10:00
Peter Barker
6933000395 AP_HAL_ChibiOS: add and use AP_NOTIFY_TONEALARM_ENABLED 2023-04-23 16:24:02 +10:00
Henry Wurzburg
11def9b958 AP_Notify: rename/remove HAL_BUZZER_ON to DEFAULT_BUZZ_ON_LVL 2023-04-23 11:19:50 +10:00
Henry Wurzburg
efd0937568 AP_HAL_ChibiOS: rename/remove HAL_BUZZER_ON to DEFAULT_BUZZ_ON_LVL 2023-04-23 11:19:50 +10:00
Peter Barker
dafc24b7a1 AP_HAL_ChibiOS: tidy external baro probing 2023-04-23 08:28:55 +10:00
Peter Barker
100b8d3915 AP_Baro: tidy external baro probing 2023-04-23 08:28:55 +10:00
Peter Barker
d3ce0356b8 hwdef: remove uart7 from thepeach-r1 bootloader to get it compiling
out of space otherwise
2023-04-22 13:58:02 +10:00
Peter Barker
e37b3f9fcd hwdef: remove uart7 from thepeach-k1 bootloader to get it compiling
out of space otherwise
2023-04-22 13:58:02 +10:00
Peter Barker
587f64b784 hwdef: remove uart7 from PixSurveyA1-IND bootloader to get it compiling
out of space otherwise
2023-04-22 13:58:02 +10:00
Peter Barker
e3ee5ca822 hwdef: remove uart7 from PixPilot-v3 bootloader to get it compiling
out of space otherwise
2023-04-22 13:58:02 +10:00
Henry Wurzburg
3362f752cb AP_Notify: remove unused HAL_BUZZER_OFF defines 2023-04-22 13:51:09 +10:00
Henry Wurzburg
be94015dba AP_HAL_ChibiOS: remove unused HAL_BUZZER_OFF defines 2023-04-22 13:51:09 +10:00
Ryan Friedman
bb6c872138 AP_DDS: Publish NavSatFix as soon as its available
* Removes the hard coded timing, now it's driven by the GPS update times
* Changed the function signature to return true if the data topic has been changed

Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
2023-04-22 11:04:49 +10:00
Ryan Friedman
edde5d2e48 AP_DDS: Add developer recommended steps for pre-commit
Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
2023-04-22 11:03:04 +10:00
Ryan Friedman
7ff2a9eec3 AP_DDS: Use mirror of DDS Gen
Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
2023-04-22 08:28:58 +10:00
Michael du Breuil
a9d696752d GCS_MAVLink: Factor accel cal work out to INS library 2023-04-21 21:33:16 +10:00
Michael du Breuil
b76d6d827f AP_InertialSensor: Factor accel cal in from GCS_MAVLink 2023-04-21 21:33:16 +10:00
Peter Barker
15ec9f6f82 GCS_MAVLink: allow Copter to emit MISSION_STATE_PAUSED when paused in auto 2023-04-21 09:49:55 +10:00
Peter Barker
510ed4cf2f GCS_MAVLink: add support for more MISSION_CURRENT fields
- a state so someone can see if the mission is complete
 - total number of waypoints
2023-04-21 09:49:55 +10:00
Peter Barker
75a0c592ab AP_RCProtocol: move code from SRXL2.cpp into Backend.cpp
NFC, just moving from one cpp to another
2023-04-21 09:15:01 +10:00
Peter Barker
ff441de8ec AP_RCProtocol: move configure_vtx method to AP_RCProtocol_Backend
this is called as a static method from DSM to SRXL2 which isn't good.
2023-04-21 09:15:01 +10:00
Peter Barker
1d8a5ac92d AP_HAL_ChibiOS: correct CubOrange-periph-heavy compilation
canmanager isn't enabled, so no piccolocan
2023-04-20 21:51:40 +10:00
muramura
edabfb8a2e AP_Arming: Remove unnecessary empty sentences 2023-04-20 09:24:46 +10:00
Peter Barker
ce00251333 AP_CANManager: correct gate on definition of AP_CANManager class 2023-04-20 08:53:46 +10:00
Peter Barker
d0c80f5877 AP_Vehicle: move and rename CAN Driver_Type enumeration 2023-04-20 08:53:46 +10:00
Peter Barker
79f08394b3 SRV_Channel: move and rename CAN Driver_Type enumeration 2023-04-20 08:53:46 +10:00
Peter Barker
b167e19bb6 AP_Scripting: move and rename CAN Driver_Type enumeration 2023-04-20 08:53:46 +10:00
Peter Barker
7461dffb89 AP_RangeFinder: move and rename CAN Driver_Type enumeration 2023-04-20 08:53:46 +10:00
Peter Barker
34a02fcda9 AP_PiccoloCAN: move and rename CAN Driver_Type enumeration 2023-04-20 08:53:46 +10:00
Peter Barker
04feb98091 AP_KDECAN: move and rename CAN Driver_Type enumeration 2023-04-20 08:53:46 +10:00
Peter Barker
b6cb47d3cd AP_EFI: move and rename CAN Driver_Type enumeration 2023-04-20 08:53:46 +10:00
Peter Barker
80752af077 AP_DroneCAN: move and rename CAN Driver_Type enumeration 2023-04-20 08:53:46 +10:00
Peter Barker
fea2c8d923 AP_CANManager: move and rename CAN Driver_Type enumeration 2023-04-20 08:53:46 +10:00
Peter Barker
c88b7586da AP_Arming: move and rename CAN Driver_Type enumeration 2023-04-20 08:53:46 +10:00
Andy Piper
cf20a70c58 AP_HAL_ChibiOS: move LED processing to a separate thread
LED processing on a separate thread allows much longer LED lengths to be handled without
compromising dshot timing or timeouts. The thread is also run at a lower priority to
reflect its lack of flight criticality
2023-04-19 16:45:21 +01:00
Andy Piper
875481b823 AP_HAL: add helper functions for LEDs
add PRIORITY_LED for led output thread
2023-04-19 16:45:21 +01:00
Peter Barker
c3c758a2e4 hwdef: DrokekP3Pro loses usart3 2023-04-19 19:05:14 +10:00
Rhys Mainwaring
954af207c2 Tools: add COLCON_IGNORE to modules and libraries
- Prevent colcon from searching in modules and libraries for CMakeLists.txt.

Signed-off-by: Rhys Mainwaring <rhys.mainwaring@me.com>
2023-04-19 18:34:15 +10:00
Peter Barker
81f3c6a4c4 AP_Arming: correct prearm check for mission storage file 2023-04-19 18:05:20 +10:00
bugobliterator
ef8ebd85dd AP_BoardConfig: resetting the BRD_HEAT_TARG to 45 is not needed anymore
As iomcu fw has right default polarity now.
2023-04-19 17:59:08 +10:00
Andy Piper
7db0c387cc AP_HAL_ChibiOS: update MambaF405v2 for ICM42688, bdshot and DMA on UART1 2023-04-19 17:47:51 +10:00
Andy Piper
87a3c34c70 AP_HAL_ChibiOS: add BMI270 and ICM42688 to FlywooF745 2023-04-19 17:42:26 +10:00
Andy Piper
794335bb26 AP_HAL_ChibiOS: remove erroneous FlywooF745v2 2023-04-19 17:42:26 +10:00
Randy Mackay
288de08374 RC_Channel: integrate ZoomType def move out of AP_Camera 2023-04-19 17:31:46 +10:00
Randy Mackay
14ef3870bc AP_Mount: integrate ZoomType def move out of AP_Camera 2023-04-19 17:31:46 +10:00
Randy Mackay
a1ae189b17 AP_Camera: move ZoomType def to separate .h 2023-04-19 17:31:46 +10:00
Randy Mackay
a8c593d44c AP_Mount: Siyi driver comment re zoom decrement 2023-04-19 17:31:46 +10:00
Randy Mackay
9c72cf2a1e AP_Camera: move some includes to backend
also remove some redundant includes
2023-04-19 17:31:46 +10:00
Randy Mackay
82d03e45e0 AP_Scripting: integrate camera_state_t scope change 2023-04-19 17:31:46 +10:00
Randy Mackay
a9cc32d304 AP_Camera: reduce camera_state_t scope 2023-04-19 17:31:46 +10:00
Randy Mackay
ea1836304a AP_Scripting: ViewPro driver supports zoom pct 2023-04-19 17:31:46 +10:00
Randy Mackay
4090c50e8f AP_Scripting: camera set_zoom binding replaces set_zoom_step 2023-04-19 17:31:46 +10:00
Randy Mackay
ddaff85166 AP_Mission: set_zoom replaces set_zoom_step 2023-04-19 17:31:46 +10:00
Randy Mackay
9100123efe RC_Channel: set_zoom replaces set_zoom_step 2023-04-19 17:31:46 +10:00
Randy Mackay
5b7f9c874d AP_Mount: set_zoom replaces set_zoom_step 2023-04-19 17:31:46 +10:00
Randy Mackay
6603a6c8c5 AP_Camera: set_zoom replaces set_zoom_step 2023-04-19 17:31:46 +10:00
bugobliterator
b1c4cf9923 AP_DroneCAN: fix DroneCAN run for SITL 2023-04-19 17:26:57 +10:00
Andrew Tridgell
42192b2800 AP_DroneCAN: cope with 16 bit limit on event timeout
use a smaller process() time while waiting for node startup
2023-04-19 17:26:57 +10:00
Andrew Tridgell
761297a068 AP_HAL_SITL: change to 16 bit timeout in event interface
prevent issues on 16 bit timers where we can end up with TIME_INFINITE
2023-04-19 17:26:57 +10:00
Andrew Tridgell
d5effcdf92 AP_HAL_Linux: change to 16 bit timeout in event interface
prevent issues on 16 bit timers where we can end up with TIME_INFINITE
2023-04-19 17:26:57 +10:00
Andrew Tridgell
d1e50cb0c8 AP_HAL: change to 16 bit timeout in event interface
prevent issues on 16 bit timers where we can end up with TIME_INFINITE
2023-04-19 17:26:57 +10:00
Andrew Tridgell
86b6f3a2c6 AP_HAL_ChibiOS: change to 16 bit timeout in event interface
prevent issues on 16 bit timers where we can end up with TIME_INFINITE
2023-04-19 17:26:57 +10:00
Peter Barker
7088286ebf AP_Compass: use new vector methods to make for more compact code
The check for zero-length magnetic field on the primary is redundant given the one on the loop
2023-04-19 14:25:06 +10:00
Peter Barker
f1eec8482b AC_AttitudeControl: use quat.to_euler(Vector3f&) 2023-04-19 14:24:45 +10:00
Peter Barker
ce8afaf57b AP_NavEKF3: use quat.to_euler(Vector3f&) 2023-04-19 14:24:45 +10:00
Peter Barker
a3c5926040 AP_Mount: use quat.to_euler(Vector3f&) 2023-04-19 14:24:45 +10:00
Peter Barker
0b2e1e7989 AP_Math: allow conversion of a quaternion into an rpy Vector3f
There are several places in the code that can use this
2023-04-19 14:24:45 +10:00
Iampete1
4186edad3f AP_DroneCAN: move to hal.util->snprintf to keep g++ 7.5.0 happy 2023-04-18 17:44:29 +01:00
Andrew Tridgell
14d2318859 AP_BoardConfig: on debug builds enable the debug pins by default
this saves a step in debugging
2023-04-18 14:35:21 +10:00
Peter Barker
5121b33c03 hwdef: remove more features from SkyViper 2023-04-18 11:45:39 +10:00
Peter Barker
271571e29c AP_GPS_NMEA: fix stringop truncation failure on g++ 9 2023-04-18 11:44:57 +10:00
Peter Barker
8c203d29d0 SRV_Channel: remove CANTester 2023-04-18 11:43:58 +10:00
Peter Barker
a657c6ea75 GCS_MAVLink: remove CANTester 2023-04-18 11:43:58 +10:00
Peter Barker
b055b67a7f AP_CANManager: remove CANTester 2023-04-18 11:43:58 +10:00
Peter Barker
a4721b4ff8 AP_Arming: remove CANTester 2023-04-18 11:43:58 +10:00
Henry Wurzburg
73011c81fd AP_HAL_ChibiOS: correct MatekH743 storage size 2023-04-18 11:25:25 +10:00
Robert Taylor
ebef532258 AP_Scripting: Add EFI state get example 2023-04-18 10:31:01 +10:00
Robert Taylor
59cb583d63 AP_Scripting: Add efi get_state function 2023-04-18 10:31:01 +10:00
Robert Taylor
7b64d09dc4 AP_Scripting: Make EFI bindings readable 2023-04-18 10:31:01 +10:00
Peter Barker
068443718e GCS_MAVLink: deprecate use of MISSION_SET_CURRENT message
The mavlink command MAV_CMD_DO_SET_MISSION_CURRENT has been in place since January 2019 and is superior to this.
2023-04-18 10:24:26 +10:00
Iampete1
3a36337775 AP_Motors: Thrust Linearization: disable density comp in example as baro is not declared 2023-04-18 09:32:22 +10:00
Iampete1
ab4777de14 AP_Motors: move thrust linerization to its own class 2023-04-18 09:32:22 +10:00
Peter Barker
5d68f44694 AP_NavEKF3: move beacon variables into structure
AP_NavEKF3: change beacon variable names
2023-04-18 09:28:02 +10:00
Peter Barker
f6fa509443 AP_Camera: add timestamp on parameter conversion function
...so we can remove this stuff more easily over time
2023-04-17 22:05:08 +01:00
Peter Barker
395961883f AP_Logger: avoid many method calls logging RCOU 2023-04-17 21:28:49 +10:00
Peter Barker
1fb879322c hwdef: correct compilation of OMNIBUSF7V2
redefition erro
2023-04-17 21:26:41 +10:00
Tom Pittenger
7bde074791 AP_KDECAN: remove prearm and allow better mapping 2023-04-17 11:52:52 +10:00
Tom Pittenger
de86102751 AP_KDECAN: don't handle ESCs changing their address 2023-04-17 11:52:52 +10:00
Tom Pittenger
2bbd7d8d91 AP_CANManager: set _driver_type_cache for *all* ifaces 2023-04-17 11:52:52 +10:00
Tom Pittenger
e21063522d AP_KDECAN: apply NFC suggestions from Peter Barker 2023-04-17 11:52:52 +10:00
Tom Pittenger
a443fd97a6 GCS_MAVLink: remove preflight_can
It was only using CANTester to test KDECAN enumeration which was removed
2023-04-17 11:52:52 +10:00
Tom Pittenger
5ca3aa6346 AP_CANManager: remove KDECAN from CANTester 2023-04-17 11:52:52 +10:00
Tom Pittenger
eed3cf3255 AP_CANManager: promote KDECAN to a first-class library 2023-04-17 11:52:52 +10:00
Tom Pittenger
c585b0286d AP_KDECAN: total re-write using CANSensor and remove Enum 2023-04-17 11:52:52 +10:00
Tom Pittenger
84b7444047 AP_CANSensor: add get_driver_type() accessor 2023-04-17 11:52:52 +10:00
Tom Pittenger
9cf5759435 AP_HAL_ChibiOS: enable KDECAN on CubeOrange-periph 2023-04-17 11:52:52 +10:00
Tom Pittenger
20d89c510b AP_HAL_ChibiOS: AP_KDECAN_ENABLE 0 by default 2023-04-17 11:52:52 +10:00
Tom Pittenger
c2e1eeac98 SRV_Channel: move AP_KDECAN to a first-class library 2023-04-17 11:52:52 +10:00
Tom Pittenger
5ef4c8dd09 GCS_MAVLink: move AP_KDECAN to a first-class library 2023-04-17 11:52:52 +10:00
Tom Pittenger
2fcae3c520 AP_Arming: remove AP_KDECAN prearm checks 2023-04-17 11:52:52 +10:00