Commit Graph

32707 Commits

Author SHA1 Message Date
Henry Wurzburg
3a49804703 AP_AHRS: fix compile for 1MB bds using SITL on hdwr 2023-05-16 21:11:36 +10:00
Peter Barker
772eda555b AP_Scripting: correct dependencies on bindings 2023-05-16 10:31:01 +10:00
Peter Barker
29d6c51f43 SITL: stop using mavlink channels for packing messages
precedent was set in the mavlink rangefinder; we don't need to re-use SITL buffers for this
2023-05-16 10:17:56 +10:00
Peter Barker
8cfd9f8ef1 AP_SerialManager: consolidate AP_Periph serialmanager defaults 2023-05-16 10:16:10 +10:00
Peter Barker
6aeeb3d51d AP_HAL_ChibiOS: consolidate AP_Periph serialmanager defaults 2023-05-16 10:16:10 +10:00
Randy Mackay
e998f93965 AP_Proximity: RPLidarA2 gets S1 support 2023-05-16 10:15:23 +10:00
Randy Mackay
1394a430b0 AP_Proximity: RPLidarA2 minor whitespace fix 2023-05-16 10:15:23 +10:00
Randy Mackay
67accd8920 AP_Proximity: RPLidarA2 loses redundant set of state 2023-05-16 10:15:23 +10:00
Peter Barker
36b494a057 AP_Proximity: increase RPLidar read buffer size
128 bytes at 50Hz is not enough to read all data from device
2023-05-16 10:15:23 +10:00
Peter Barker
206f663e38 AP_Proximity: tweak RPLidar debug 2023-05-16 10:15:23 +10:00
Peter Barker
77f7533f02 AP_Proximity: emit RPLidar detection information 2023-05-16 10:15:23 +10:00
Peter Barker
cb7f29cc6b AP_Proximity: correct RPLidarreset path 2023-05-16 10:15:23 +10:00
Peter Barker
8938508147 AP_Proximity: move connect-in-SITL instructions to header 2023-05-16 10:15:23 +10:00
Peter Barker
ae7fb93e4c AP_HAL_SITL: add simulated RPLidarA1 2023-05-16 10:15:23 +10:00
Peter Barker
2257d4686f SITL: add simulated RPLidarA1 2023-05-16 10:15:23 +10:00
Peter Barker
3355520026 AP_Proximity: add support for RPLidarA1 2023-05-16 10:15:23 +10:00
Peter Barker
ae6b1ffc8f SITL: factor RPLidar simulation to allow for subclassing 2023-05-16 10:15:23 +10:00
Peter Barker
5ba3260870 SITL: rename SIM_PS_RPLidarA2 to SIM_PS_RPLidar 2023-05-16 10:15:23 +10:00
Peter Barker
811dcebe4f AP_Proximity: RPLidarA2: interpret DEVICE_INFO response to determine model 2023-05-16 10:15:23 +10:00
Peter Barker
4ffdc7239c AP_Proximity: rewrite RPLidarA2 to use more efficient read() method 2023-05-16 10:15:23 +10:00
Peter Barker
742416c2aa SITL: RPLidar: add support for GET_DEVICE_INFO command 2023-05-16 10:15:23 +10:00
Peter Barker
537fc19bb5 AP_HAL_ChibiOS: do not build ChibiOS with debug symbols unless debug build
debug symbols subtly change the compiler output which can lead to problems with repeatable builds
2023-05-16 09:55:47 +10:00
Hayden
10038a64be AP_BoardConfig: Added ignore board validation
Added the ability to ignore board validation. This has been added to the 7th bit in BRD_OPTIONS
2023-05-16 09:18:54 +10:00
Peter Barker
530e665c4d AP_SerialManager: add missing include for GCS 2023-05-16 09:16:37 +10:00
Peter Barker
ef657438fc AP_SerialManager: add and use AP_RCPROTOCOL_ENABLED 2023-05-16 09:16:37 +10:00
Peter Barker
2c00813aab AP_RCProtocol: add and use AP_RCPROTOCOL_ENABLED 2023-05-16 09:16:37 +10:00
Peter Barker
49879ab28c AP_HAL_ESP32: add and use AP_RCPROTOCOL_ENABLED 2023-05-16 09:16:37 +10:00
Peter Barker
2d7123fcff AP_HAL_ChibiOS: add and use AP_RCPROTOCOL_ENABLED 2023-05-16 09:16:37 +10:00
Peter Barker
b7f3d25bed SITL: add simulator for LM2755 RGBLED 2023-05-15 22:02:07 +10:00
Peter Barker
f67f025c92 AP_AHRS: pre-declare Location object
we don't need to know the storage, and if you cut enough stuff out then we don't end up transitively including the required header for this.
2023-05-15 16:34:23 +10:00
Ryan Friedman
29a6ae4ea1 AP_GPS: Add missing const to the rest of the headers
* Related to #23743, but I missed this since I didn't realize the buffer was not modified in-place

Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
2023-05-15 12:25:34 +10:00
Nicholas Kruzan
761184d645 AP_HAL_ESP32: add board esp32nick 2023-05-15 12:22:17 +10:00
Nicholas Kruzan
2171fff91b AP_HAL: esp32 - add board esp32nick 2023-05-15 12:22:17 +10:00
Nicholas Kruzan
8967ed0ad1 AP_HAL_ESP32: idf-v4.4 updates
update wifi drivers

nick: fix build warning

In file included from ../../libraries/AP_HAL_ESP32/WiFiUdpDriver.cpp:26:
../../modules/esp_idf/components/esp_event/include/esp_event_loop.h:2:2: warning: #warning "esp_event_loop.h is deprecated, please include esp_event.h instead" [-Wcpp]
 #warning "esp_event_loop.h is deprecated, please include esp_event.h instead"

AP_HAL_ESP32: idf-v4.4 updates

AP_HAL_ESP32: sdkconfig updates
2023-05-15 10:27:25 +10:00
Peter Barker
26dd210be6 AP_Filesystem: remove unused header 2023-05-15 10:17:47 +10:00
Peter Barker
1aa5a8f789 AC_Avoidance: make _output_level AP_Enum
Also remove namespacing from OA_DbOutputLevel
2023-05-15 09:25:57 +10:00
bugobliterator
75ef9a27cb AP_HAL_ChibiOS: fix battery monitor params for CubeRed 2023-05-15 07:14:57 +10:00
Peter Barker
aac43a2302 SITL: guard against LP5562 not being included
... not included on SIMOnHardware, for  example
2023-05-14 18:25:36 +10:00
Rhys Mainwaring
fd775bf08d AP_DDS: update README
- Update list of available topics.

Signed-off-by: Rhys Mainwaring <rhys.mainwaring@me.com>
2023-05-14 06:20:12 +10:00
Rhys Mainwaring
56ed76f479 AP_DDS: add publisher for rosgraph_msgs/msg/Clock
Signed-off-by: Rhys Mainwaring <rhys.mainwaring@me.com>
2023-05-14 06:20:12 +10:00
Rhys Mainwaring
371c19bb32 AP_DDS: rename topic name for builtin_interfaces/msg/Time
- Rename to ap/time as ap/clock should be for rosgraph_msgs/msg/Clock

Signed-off-by: Rhys Mainwaring <rhys.mainwaring@me.com>
2023-05-14 06:20:12 +10:00
Rhys Mainwaring
c60796a0df AP_DDS: add IDL for rosgraph_msgs/msg/Clock
Signed-off-by: Rhys Mainwaring <rhys.mainwaring@me.com>
2023-05-14 06:20:12 +10:00
Peter Barker
1452dc0c54 AP_RPM: prefer AP_Generator_config.h
.... otherwise include chain on bootloaders can try to include mavlink
2023-05-14 06:17:33 +10:00
Ferruccio Vicari
d5918c5205 AP_OSD: support for main rotor rpm
displays main rotor rpm in OSD
2023-05-14 06:17:33 +10:00
Peter Barker
67537b1806 SITL: add simulator for RDS02UF rangefinder 2023-05-13 20:05:18 +10:00
Peter Barker
4ed4c2d554 AP_HAL_SITL: add simulator for RDS02UF rangefinder 2023-05-13 20:05:18 +10:00
Peter Barker
6943ea59b1 AP_HAL: add simulator for RDS02UF rangefinder 2023-05-13 20:05:18 +10:00
Andrew Tridgell
7e84028a91 HAL_ChibiOS: fixed sdcard lockup with SPI sdcard
this affects boards that share sdcard on the same bus as another SPI
device. In this case it was a QiotekZealotH743 where logging stopped

this issue is that the SPI hooks for MMC SPI did not do a DMA channel
lock before the SPI device lock. So when the RAMTRON driver on the
QiotekZealotH743 which is on the same SPI2 bus as the sdcard did an
operation we had a lock order violation
2023-05-13 18:18:14 +10:00
Ryan Friedman
925e9d8cbc AP_HAL: Add reference to sparse endian manpage
Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
2023-05-13 11:32:38 +10:00
Ryan Friedman
b8f59b0df5 AP_GPS: Remove unused member variable in gsof driver
Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
2023-05-12 19:19:43 +10:00
Ryan Friedman
4b2687352c AP_GPS: Add const and WARN_IF_UNUSED to AP_GPS_GSOF
Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
2023-05-11 10:41:17 -07:00
Henry Wurzburg
b4f9992ab7 AP_SerialManager: normalize SerialManagers ports defaults to allow inclusion in hwdefs 2023-05-11 18:45:53 +10:00
Henry Wurzburg
2ddaa65b23 AP_HAL: normalize SerialManagers ports defaults to allow inclusion in hwdefs 2023-05-11 18:45:53 +10:00
Henry Wurzburg
71992d4604 AP_HAL_ESP32: normalize SerialManagers ports defaults to allow inclusion in hwdefs 2023-05-11 18:45:53 +10:00
Henry Wurzburg
d0ac8f3016 AP_HAL_ChibiOS: normalize SerialManagers ports defaults to allow inclusion in hwdefs 2023-05-11 18:45:53 +10:00
Peter Barker
8ac9a7561c AP_Notify: add driver for LP5562 LED 2023-05-11 11:08:50 +10:00
Peter Barker
19d2659179 SITL: add simulator for LP5562 RGBLED 2023-05-11 11:08:50 +10:00
Andrew Tridgell
b019978e22 hwdef: use zero address for INA2XX to allow for different sensors 2023-05-10 18:15:52 +10:00
Andrew Tridgell
e2041e10b5 AP_BattMonitor: auto-probe INA2XX address if address is zero
this makes life easier for users who don't know which device they have
2023-05-10 18:15:52 +10:00
Andrew Tridgell
5227b99a39 AP_BattMonitor: support INA228 and INA238 battery monitor
I2C monitors with similar functionality to INA226
2023-05-10 18:15:52 +10:00
Andrew Tridgell
2b45b235ad AP_ICEngine: fixed a bug engine control when running
if you have a mission item for engine control with delayed start at
height and the engine is already running them it would put the ICE
subsystem into a state where it would no longer start the engine

It was actually 2 bugs:

 - an engine control to do a height delayed start should be ignored if
   the engine is already running. This prevents an engine control to
   start the engine from stopping the engine

 - a start_chan high should always try to start the engine
   immediately, even if in the wait state
2023-05-10 18:01:21 +10:00
Randy Mackay
d6eb11d27e AP_HAL_ChibiOS: JFB100 LED definition fix 2023-05-10 17:24:02 +10:00
Randy Mackay
217ba502ac AP_InertialSensor: SCHA63T comment fix 2023-05-10 17:24:02 +10:00
Randy Mackay
9c44d79241 AP_HAL_ChibiOS: JFB100 board def fixup 2023-05-10 17:24:02 +10:00
Randy Mackay
9d9de678a5 AP_InertialSensor: SCHA63T loses unused ret bool 2023-05-10 17:24:02 +10:00
jfbblue0922
79f5cdaf04 AP_HAL_ChibiOS: add JFB100 board definition 2023-05-10 17:24:02 +10:00
Randy Mackay
7c2a173f30 AP_InertialSensor: formatting fixes 2023-05-10 17:24:02 +10:00
jfbblue0922
458fbb7f90 AP_InertialSensor: add SCHA63T IMU support 2023-05-10 17:24:02 +10:00
jfbblue0922
7d924f10e2 AP_Math: add crc8_sae 2023-05-10 17:24:02 +10:00
Peter Barker
db6deee9e1 hwdef: chibios_hwdef.py becomes a library 2023-05-10 17:14:43 +10:00
Andrew Tridgell
84b52374f6 RC_Channel: fixed build on cygwin with conflicting POINT 2023-05-10 17:10:20 +10:00
Andrew Tridgell
7175318fbb AP_Camera: fixed build on cygwin with conflicting POINT 2023-05-10 17:10:20 +10:00
Andy Piper
99e6958e36 AP_HAL_ChibiOS: FoxeerH743 GA release 2023-05-10 17:07:45 +10:00
Pierre Kancir
442d4ba4e0 SITL: fix memory leak on multi fcu json sim 2023-05-09 20:39:04 +10:00
Jonathan Challinger
28598e82c0 AP_HAL_SITL: fix sitl_periph_gps build 2023-05-09 11:42:09 +10:00
Jonathan Challinger
4ef070956d AP_HAL_SITL: ADC resolution configurable by define, default to 16 bit 2023-05-09 11:42:09 +10:00
Andrew Tridgell
20cbd8dd0b AP_Vehicle: change no airspeed sensor message
it should be INFO not WARNING as not having an airspeed sensor isn't
an issue if it is disabled
2023-05-09 11:26:33 +10:00
pedro-fuoco
c044ba67cc AP_DDS: Support single precision hw 2023-05-09 11:06:59 +10:00
Peter Barker
3e1388b7e6 AP_OpticalFlow: add and use AP_OpticalFlow_config.h 2023-05-09 10:56:13 +10:00
Peter Barker
da36de3b80 AP_MSP: add and use AP_MSP_config.h 2023-05-09 10:56:13 +10:00
Peter Barker
008eec5838 AP_Airspeed: correct includes
we use the msp sensors structure
2023-05-09 10:56:13 +10:00
Henry Wurzburg
5e54d26ac5 AP_OSD: fix format of RF panel and check for out of range 2023-05-09 10:49:43 +10:00
Iampete1
bea98fa909 AP_Motors: test: fix for heli 2023-05-09 10:38:33 +10:00
Andrew Tridgell
db60b2586e AP_Logger: expand servo status logging 2023-05-09 09:40:53 +10:00
Andrew Tridgell
7963ee8a13 AP_PiccoloCAN: expand servo status logging 2023-05-09 09:40:53 +10:00
Andrew Tridgell
29715e2a74 AP_DroneCAN: support Himark servo protocol 2023-05-09 09:40:53 +10:00
Gone4Dirt
78eb4a840d AP_MotorsHeli: Whitespace 2023-05-08 19:05:17 -04:00
Gone4Dirt
191ce55e1d AP_MotorsHeli: Remove pure virtuals and unnecessary overrides 2023-05-08 19:05:17 -04:00
Gone4Dirt
4b2c1368bd AP_MotorsHeli: move rotor_speed_above_critical to RSC so that it is actually used 2023-05-08 19:05:17 -04:00
Randy Mackay
d3f2309eac AP_Scripting: viewpro driver uses camera state with Vector2f 2023-05-08 21:26:35 +10:00
Randy Mackay
2be750eaf8 AP_Scripting: camera state bindings use Vector2f 2023-05-08 21:26:35 +10:00
Randy Mackay
267cbf9a37 AP_Camera: camera state uses Vector2f 2023-05-08 21:26:35 +10:00
Randy Mackay
ae09dc7d43 AP_Camera: remove unused tracking_p2 from camera state 2023-05-08 21:26:35 +10:00
Randy Mackay
7db3f27357 AP_Scripting: viewpro driver implements image tracking 2023-05-08 21:26:35 +10:00
Randy Mackay
24445a0c20 RC_Channel: aux function for camera image tracking 2023-05-08 21:26:35 +10:00
Randy Mackay
98636287fc AP_Scripting: camera state gets tracking 2023-05-08 21:26:35 +10:00
Randy Mackay
a6cc9f042a AP_Camera: support image tracking 2023-05-08 21:26:35 +10:00
Randy Mackay
858a1e8b40 GCS_MAVLink: pass image tracking messages to AP_Camera 2023-05-08 21:26:35 +10:00
Randy Mackay
b2c31f8ad4 AP_Camera: remove unused auto_focus from camera state 2023-05-08 21:26:35 +10:00
Randy Mackay
8131b5bc3b AP_Camera: add comments clarifying mavlink methods purpose 2023-05-08 21:26:35 +10:00