Commit Graph

36035 Commits

Author SHA1 Message Date
Andy Piper f38faaae99 AP_HAL_ChibiOS: iFlight Blitz H7 Pro 2024-05-01 17:19:05 +10:00
Daniel Field 33892aa049 SITL: modifications to lift in SIM_StratoBlimp (#3)
* Update SIM_StratoBlimp.cpp

* Update SIM_StratoBlimp.h
2024-05-01 15:45:22 +10:00
Peter Barker c08d982c0c SITL: populate speed accuracy uBlox messages from SITL parameters 2024-05-01 10:19:58 +10:00
Andrew Tridgell 68b58d5435 AP_Compass: workaround hardware bug in IST8310 whoami
the WAI (whoami) register is writeable. Not only is it writeable, but
the written value is persistent across a power cycle. You have to
remove power for about 30s for it to finally go back to the right
default value of 0x10

this makes using WAI as a test for finding a IST8310 problematic. The
best we can do is send a soft reset which will reset it to default for
us to then check
2024-05-01 09:24:54 +10:00
Andy Piper 41fd7c726e AP_IOMCU: allow up to 16 channels of servo data to be sent to the iomcu 2024-05-01 08:21:01 +10:00
Peter Barker dce3a41657 SITL: add description for SIM_BARO_DRIFT 2024-04-30 16:39:32 +10:00
Peter Barker 527e621a57 AP_Baro: accumulate altitude drift in place of raw calc
currently we set drift based on current boot time.  If you want to introduce it at some stage in a flight the baro alt will suddenly jump based on how long you've been up.

Instead, accumulate a delta
2024-04-30 16:39:32 +10:00
Andy Piper 25b10fb8c4 AP_HAL: make NeoPixel high-low proportions match for 0 and 1 2024-04-30 11:00:30 +10:00
tanghongkai 0dac7d5cfe AP_Logger: add support to w25n02kv 2024-04-30 10:58:12 +10:00
Ryan Friedman b81a5deefe AP_ExternalAHRS: Add pre-arm for misconfigured EAHRS_SENSORS and GPS_TYPE
* This catches when there's a mismatch of GPSx_TYPE and EAHRS_SENSORS
  when GPS is enabled
* Before this pre-arm, failure to set GPS_TYPE2 to 21 (ExternalAHRS)
  resulted in silent rejection of the data in AP_GPS because the default
is off
* And fix a little logging bug

Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
2024-04-30 09:18:46 +10:00
Iampete1 1b1ce9530c AP_Common: add `get_distance_NED_alt_frame` method 2024-04-30 08:03:39 +09:00
Iampete1 1cdff47246 AP_Mission: add support for DO_RETURN_PATH_START 2024-04-30 08:03:39 +09:00
Brad Bosch e8d2097ec4 GCS_MAVLink: Avoid serial passthrough buffer exhausted/lost data
Just don't read more than we can write.
2024-04-29 20:06:43 +10:00
Hubert 890a83166d hwdef: Fix MicoAir743 internal compass rotation 2024-04-29 07:43:57 +10:00
Peter Barker 0a3ff72fd8 AP_Baro: correct placement of field elevation #endif
wind compensation and field elevation should be unrelated
2024-04-28 18:02:29 +10:00
Andrew Tridgell 202cc6ae9d SITL: fixed param meta-data name 2024-04-28 06:48:25 +10:00
Andrew Tridgell 4bb5a9ac52 HAL_SITL: link in StratoBlimp 2024-04-27 22:03:05 +10:00
Andrew Tridgell 1976f3d2d6 SITL: added StratoBlimp simulator 2024-04-27 22:03:05 +10:00
Iampete1 0a3bdbfdc9 Filter: NotchFilter: return NaN for `logging_frequency` if not initialised 2024-04-24 17:30:35 +10:00
Hubert 84900473de AP_HAL_ChibiOS: added NxtPX4v2
Update README.md

Update NxtPX4v2_BackView

Hwdef Remove: define HAL_GPIO_LED_OFF 0
2024-04-24 13:57:48 +10:00
aditya 9abcd6b7ca AP_ESC_TELEM: solved the logical error in grouping of escs into 4 2024-04-24 08:10:02 +09:00
Paul Riseborough 3c8b3be7a7 AP_NavEKF3: Change yaw source to stop compass use when calibrating 2024-04-23 15:19:56 +09:00
Andrew Tridgell fe42171268 AP_GPS: make get_RelPosHeading boolean 2024-04-23 10:32:43 +10:00
Hubert d1d71db8a0 AP_HAL_ChibiOS: add hwdef MicoAir743
Update README.md

Co-Authored-By: Henry Wurzburg <hwurzburg@yahoo.com>
2024-04-23 09:56:23 +10:00
Henry Wurzburg 4d7e4d1ca9 Revert "hwdef: bdshot version of the MatekF765-SE"
This reverts commit ac86bd8d21.
2024-04-23 09:52:01 +10:00
Michael du Breuil ff7a215dd0 AP_Baro: Do not cache EAS2TAS conversions
Caching this introduces discontinuities in TECS, as the step change
modifies the target speed demand.
2024-04-23 09:32:27 +10:00
Iampete1 30fdae880f SITL: allow disabling MAVLink simstate messages 2024-04-23 09:16:55 +10:00
Iampete1 64b57de559 AP_HAL_SITL: call `_sitl->set_stop_MAVLink_sim_state()` when alocating elrs 2024-04-23 09:16:55 +10:00
Iampete1 700804a015 SITL: add ELRS simulator 2024-04-23 09:16:55 +10:00
Iampete1 cbd5bcb694 AP_HAL_SITL: SITL_State_common: add elrs and pass portnumber in `create_serial_sim` 2024-04-23 09:16:55 +10:00
Iampete1 b0ceaa7610 AP_HAL_SITL: use DataRateLimit helper 2024-04-23 09:16:55 +10:00
Iampete1 92adcb14e1 AP_HAL: utility: Add Data Rate Limit helper 2024-04-23 09:16:55 +10:00
Daniel Li f47998ed8a hwdef: Fix Aocoda-RC H743Dual motor 5-8 mis-labeled issue 2024-04-22 12:03:33 +10:00
Ferruccio Vicari 1c104557b7 AP_Motors: fix heli yaw behavior in autorotation 2024-04-18 11:13:50 -04:00
Peter Barker c5f4fe9a8a AP_Baro: remove Baro accumulate API
no backend actually needs to be prodded, everything is done on timers
2024-04-18 09:19:20 +10:00
Tatsuya Yamaguchi 8874c1a560 AP_HAL_SITL: added HEXA X 2024-04-18 08:25:41 +10:00
Peter Barker bf63729d31 SRV_Channels: gate method on scripting being enabled
also AP_Scheduler since we're calling and instance method on it
2024-04-18 08:25:15 +10:00
Peter Barker ee038cdf1f GCS_MAVLink: adjust for AP_SCHEDULER_ENABLED being false 2024-04-18 08:25:15 +10:00
Peter Barker 35dbf93e13 AP_Scheduler: fixes for AP_SCHEDULER_ENABLED 2024-04-18 08:25:15 +10:00
Peter Barker fe9bcb9b5b AP_Vehicle: cope with AP_Scheduler not being available 2024-04-18 08:25:15 +10:00
Iampete1 8f2b2cfe31 Filter: HarmonicNotchFilter: convert harmonics as a bitmask 2024-04-17 22:15:22 +01:00
Iampete1 cd0bdda93d AP_Param: add convert_bitmask_parameter_width method 2024-04-17 22:15:22 +01:00
Tatsuya Yamaguchi 26ec2ae952 AC_AttitudeControl: fix ATC_SLEW_YAW description (NFC) 2024-04-17 22:18:51 +10:00
Peter Barker b367fd0c1e AP_RCMapper: exclude body of AP_RCMapper based on AP_RCMAPPER_ENABLED 2024-04-17 18:17:56 +10:00
Peter Barker dc692f7169 AP_Arming: exclude body of AP_Arming.cpp based on AP_ARMING_ENABLED 2024-04-17 18:17:27 +10:00
Peter Barker 75bbff01c1 AP_DroneCAN: move Arming, Beacon and RC_Mapper into ardupilotwaf.py
these were built for all vehicles, so put them in the common list
2024-04-17 18:11:46 +10:00
Peter Barker 7d10b0fc4d GCS_MAVLink: add and use AP_HOME_ENABLED 2024-04-17 18:09:25 +10:00
Peter Barker 9df6beb181 AP_AHRS: add and use AP_HOME_ENABLED 2024-04-17 18:09:25 +10:00
Randy Mackay 6a56b2bc94 AP_HAL_ChibiOS: correct CUAV-Nora periph power comment 2024-04-17 18:07:56 +10:00
Randy Mackay 1b4f62c1ea AP_HAL_ChibiOS: correct CUAV-X7 periph power comment 2024-04-17 18:07:56 +10:00
Randy Mackay 69eff077d7 AP_HAL_ChibiOS: Durandal peripheral power on at startup 2024-04-17 18:07:56 +10:00
Randy Mackay 136ccf66c7 AP_HAL_ChibiOS: Pixhawk5X peripheral power on at startup 2024-04-17 18:07:56 +10:00
Randy Mackay 0b3b2148cb AP_HAL_ChibiOS: Pixhawk6C peripheral power on at startup 2024-04-17 18:07:56 +10:00
Randy Mackay 561d1254a1 AP_HAL_ChibiOS: Pixhawk6X peripheral power on at startup 2024-04-17 18:07:56 +10:00
Randy Mackay d951898f13 AP_DAL: visual odom get_delay_ms return fix 2024-04-17 18:05:26 +10:00
Andy Piper 2a786616b1 AP_IOMCU: account for possibility of SBUS_OUT in PWM structures 2024-04-17 17:49:56 +10:00
Andy Piper ca3ad93f0d AP_HAL_ChibiOS: iFlight BLITZ Mini F745 2024-04-17 17:34:10 +10:00
Andy Piper bad4463463 AP_HAL_ChibiOS: iFlight Blitz F745 2024-04-17 17:34:10 +10:00
Gone4Dirt 9153c40568 AP_HAL_ChibiOS: MatekL431-Rangefinder: Add 2nd rangefinder 2024-04-17 17:06:42 +10:00
Andrew Tridgell dce2492321 AP_NavEKF3: use filtered gyro in INS position correction
this reduces the impact of IMU noise on the output velocity from the
EKF
2024-04-17 14:53:59 +10:00
Andrew Tridgell eed50a0872 AP_DAL: change gyro filter to 10Hz
this improved EKF3 IMU position correction for noise
2024-04-17 14:53:59 +10:00
Clyde McQueen 52a9bb7792 AP_Baro: disable BARO_FIELD_ELV for sub 2024-04-17 10:37:16 +10:00
Peter Barker 44359ff6b2 AP_Common: add get_alt - 100 times better than get_alt_cm 2024-04-16 19:14:12 +10:00
Peter Barker 423198cef0 AP_Frsky_Telem: avoid manipulation of alt frames outside of Location object 2024-04-16 19:14:12 +10:00
Leonardo Garcia 763193d4fc AP_HAL_ChibiOS: Support for 3DR Control Zero H7 OEM rev G
Co-authored-by: Alexis Guijarro <totonzx@gmail.com>
Co-authored-by: Andy Piper <github@andypiper.com>
2024-04-16 14:10:13 +10:00
Peter Barker cd9aa0e3ed AP_GPS: remove dedundant crc32 routine from Nova 2024-04-16 10:02:47 +10:00
Peter Barker b95bd8f19d AP_AHRS: remove call to get_home()
this is our object, we don't need permission
2024-04-16 08:47:15 +09:00
Peter Barker 6ef131c0f9 SITL: correct diagnostic message about what AirSim-in addr we bound
Co-authored-by: Oleksiy Protas <elfy.ua@gmail.com>
2024-04-16 09:31:20 +10:00
Henry Wurzburg 5c4aeddae7 AP_HAL_ChibiOS: add MicoAir405Mini 2024-04-16 09:21:23 +10:00
Brad Bosch 6538e8c9ae GCS_MAVLink: Cleanup and Reduce chance of GCS FTP timeout
Delete unneeded orphan comment
replace get_last_txbuf() with a predicate
Make txbuf flow control threashold consistent between Parameter download and FTP and keep it in range where we are also slowing down normal streams
Delay sending text banner until after first FTP response to reduce latency on slow links
Don't let flow control delay setting ftp.last_send_ms so as to slow down normal streams as soon as possible to improve FTP response time
2024-04-16 09:16:52 +10:00
Brad Bosch bbfb0ed001 GCS_MAVLink: Make get_last_txbuf() safer
Add check for stale radio_status to get_last_txbuf()
Move last_txbuf into last_radio_status struct
2024-04-16 09:16:52 +10:00
Brad Bosch 0e47599bb1 GCS_MAVLink: respect txbuf flow control for FTP messages
This gives slow radio links a fighting chance of getting FTP bulk download working even when they use a baud rate which is much higher than their current bandwidth.

This should eliminate the need to disable FTP for parameter download on slow to moderate speed radio links like mLRS and ELRS.  It allows removal of a hack in mLRS which results in a decrease in parameter download time for 19 Hz mLRS from 45-60 seconds to 11-17 seconds.  This should also be good news for the ELRS rc-mavlink branch.
2024-04-16 09:16:52 +10:00
Oleksiy Protas cadd121401 Bounds correctness for AnalogIn_IIO 2024-04-16 09:14:55 +10:00
FOG_Yamato ac86bd8d21 hwdef: bdshot version of the MatekF765-SE 2024-04-16 09:13:43 +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 a4ec91c4f1 AP_Follow: use Location.change_alt_frame for what it is good for 2024-04-14 13:29:58 +10:00
Andrew Tridgell 1cafe25854 AP_Scripting: improve INF inject driver
make it more robust to serial errors, and support correct checksum
2024-04-14 07:19:40 +10:00
Tim Tuxworth 495726344c AP_Mount: Do not override default mode when first connecting to RC 2024-04-12 12:18:33 +09:00
Peter Barker 43995763db AP_Camera: stop adjusting logged altitudes manually, use location methods 2024-04-11 22:39:09 +10:00
Peter Barker d1a1bcba19 RC_Channel: process only transitions after rc is valid for arm_emergency_stop switch and parachute deploy switch 2024-04-11 22:17:08 +10:00
Andy Piper 563d31b1ea AP_HAL_ChibiOS: fixups for FoxeerF405v2 2024-04-11 18:38:08 +10:00
Thomas Frans d52f49ec36 AP_GPS: SBF report correct satellite count on NrSV DNU value
When the NrSV field of the SBF PVTGeodetic message contains the
Do-Not-Use value of 255, set the satellite count to 0 instead of
ignoring the change.
2024-04-11 18:35:16 +10:00
muramura a9d0bf856e AP_Mount: Do not perform unnecessary processing 2024-04-11 18:35:01 +10:00
murata f605c0fbe3 RC_Channel: Notify function error if ADS-B is not implemented 2024-04-11 13:12:22 +10:00
Henry Wurzburg 6b5bb4e864 hwdef:add BIDIR to MatekH7A3 2024-04-11 10:17:43 +10:00
Peter Barker 468158e0f9 RC_Channel: add option to flight mode pause/resume via aux function 2024-04-11 10:17:35 +10:00
mateksys 74e7132bd3 hwdef: add MatekH7A3 readme.md 2024-04-11 10:17:17 +10:00
Peter Barker f83cde7760 GCS_MAVLink: correct spelling of dereferecing 2024-04-10 21:56:52 +10:00
Peter Barker 292ad8678a AP_Arming: force user to ack crashdump or get prearm failure 2024-04-10 21:56:52 +10:00
Andrii Fil ed6ddf725d AP_Parachute: optional (CHUTE_OPTIONS:1) disarm defore parachute release 2024-04-10 21:55:51 +10:00
Hubert 4893f1303c hwdef: correct hwdef for MicoAir405v2
Update hwdef: DMA allocation and LED mapping
Update README: UARTs DMA allocation
Update defaults.parm: GPS low baudrate
2024-04-10 21:55:01 +10:00
Peter Barker cd8f081611 AP_NavEKF: correct setting of _filled
Co-authored-by: luweiagi <luweiagi@163.com>
2024-04-10 21:53:54 +10:00
Peter Barker 99f5e74a8e AP_NavEKF: correct initialisation of ekf_imu_buffer
this init() call can be called on an existing buffer, in which case we clear the object.

Presumably since we've just zeroed all the elements its safe to say that we should mark the object as having never-been-filled
2024-04-10 21:53:54 +10:00
Peter Barker 8452f5f0cd AP_NavEKF: add tests for ekf_imu_buffer 2024-04-10 21:53:54 +10:00
Peter Barker 42c4329d4c RC_Channel: require RC switch position transition for arming
currently if you turn your transmitter on at runtime we may try to arm the vehicle if your arming switches are asserted.

This patch changes things to we don't trust the first position seen from an RC receiver - we must see a transission for the arming options
2024-04-10 21:53:23 +10:00
Peter Barker f55c35487b AP_VisualOdom: correct unused variable in visualodom
when both logging and gcs are compiled out
2024-04-10 21:52:28 +10:00
Andrew Tridgell 739d4a7fc8 hwdef: the RM3100 should run at max 1MHz on SPI bus 2024-04-10 21:40:51 +10:00
Alexis Guijarro a50c19f622 mRo Control Zero Classic: Added ADC input for servo rail 2024-04-10 19:01:51 +10:00
Peter Barker b03b8309ef AP_GPS: copy GPS metadata in for pre-per-instance-parameters
allows to not break older firmware in terms of available metadata
2024-04-10 16:37:35 +09:00
Peter Barker 0e6bca92f7 AP_HAL_ChibiOS: remove redundant lines from hwdef files 2024-04-10 17:28:48 +10:00
muramura d4236a95c4 tools: change a word(NFC) 2024-04-10 14:20:04 +09:00
muramura 927cfeec68 AP_Airspeed: change a word(NFC) 2024-04-10 14:20:04 +09:00
Peter Barker 29149fad1b hwdef: remove un-needed lines from CSKY405 hwdef
linting the hwdef showed this
2024-04-10 10:35:16 +10:00
Peter Barker f16d0378e1 hwdef: compilation fix for CSKY405-fix
SCB-WAF: ../../libraries/AP_HAL/AP_HAL_Boards.h:372:2: error: #error "HAL_GPIO_LED_OFF must not be defined, it is implicitly !HAL_GPIO_LED_ON"  372 | #error "HAL_GPIO_LED_OFF must not be defined, it is implicitly !HAL_GPIO_LED_ON"
2024-04-10 10:35:16 +10:00
Andrew Tridgell 006d2c6cfe hwdef: require bootloader for BotBloxSwitch 2024-04-10 09:59:14 +10:00
Peter Barker 27598d1026 AP_HAL_ChibiOS: add missing Math.h include
for "MIN"
2024-04-10 08:45:18 +09:00
Peter Barker b0351cd339 AP_GPS: protect detection structures with GPS backend defines
Save some memory when backends are compiled out
2024-04-09 10:25:42 +10:00
Iampete1 03b00cb906 AP_Vehicle: call `uart_log` in `one_Hz_update` 2024-04-09 10:00:50 +10:00
Iampete1 264bd91f4e AP_Logger: add log structures from AP_HAL 2024-04-09 10:00:50 +10:00
Iampete1 6017f372a2 AP_HAL_SITL: and `uart_log` method and stats struct 2024-04-09 10:00:50 +10:00
Iampete1 73f4a47496 AP_HAL_ChibiOS: and `uart_log` method and stats struct 2024-04-09 10:00:50 +10:00
Iampete1 e82502a4a4 AP_HAL: Util: add virtual `uart_log` method 2024-04-09 10:00:50 +10:00
Iampete1 1e63ec24a8 AP_HAL: UARTDriver: add log_stats method and log structure 2024-04-09 10:00:50 +10:00
Iampete1 e970a6cb5d AP_HAL_SITL: UARTDriver: add getters for cumulative tx and rx counts 2024-04-09 10:00:50 +10:00
Iampete1 7dd2529683 AP_HAL_ChibiOS: UARTDriver: add getters for cumulative tx and rx counts 2024-04-09 10:00:50 +10:00
Iampete1 a4fd3980a8 AP_HAL: UARTDriver: add getters for cumulative tx and rx counts 2024-04-09 10:00:50 +10:00
Iampete1 c5ecddad92 AP_Logger: add bytes per second unit `B` 2024-04-09 10:00:50 +10:00
Henry Wurzburg 06efeb20cd AP_Airspeed:add option to report cal offset to GCS 2024-04-09 09:54:21 +10:00
Peter Barker 44891ce570 AP_Vehicle: base-class implementation of set_home 2024-04-09 09:35:16 +10:00
Peter Barker 420f80db75 GCS_MAVLink: move handling of DO_SET_HOME up to GCS_MAVLink base class 2024-04-09 09:35:16 +10:00
Peter Barker d78e96cc6b AP_Vehicle: move handling of DO_SET_HOME up to GCS_MAVLink base class 2024-04-09 09:35:16 +10:00
Peter Barker ecf93f6d86 hwdef: remove redundant defines from hwdefs
this is set in the periph defaults file
2024-04-09 09:32:15 +10:00
Henry Wurzburg b0decff44f AP_SCripting: update VTOL QuickTune to allow YAW FLTE = 0 2024-04-09 09:31:42 +10:00
Andy Piper 75978f9d6f AP_HAL_ChibiOS: CB Unmanned Stamp H743 2024-04-09 09:26:40 +10:00
Henry Wurzburg b69b2324e6 Filter:correct vehicles which can use throttle based notches 2024-04-08 23:11:03 +01:00
Peter Mullen c0a8e6c96a AP_Scripting: lua range finder driver that returns distances to a simulated sea floor for testing ArduSub surface tracking modes 2024-04-08 11:18:23 -03:00
richaravoil 4cdca46a0c hwdef: adding IMU lines for older version of board 2024-04-08 22:30:57 +10:00
Andrew Tridgell 4933ef3f2d AP_RCProtocol: fixed underflow wrap in GHST 2024-04-07 15:23:47 +10:00
Andrew Tridgell 5a2f711d85 AP_RCProtocol: added random data test
this triggers the CRSF crash bug that was just fixed
2024-04-07 15:23:47 +10:00
Andrew Tridgell 427384eb11 AP_RCProtocol: fixed crc memory range error in CRSF
this fixes a crash bug that caused a watchdog for Henry on a
F765-Wing. The bug happens with corrupt serial data causing an
underflow in the length argument to the crc call
2024-04-07 15:23:47 +10:00
Lanea Lucy S 01b0e0c27c AP_Relay: added relay output invert function 2024-04-06 10:58:43 +11:00
Andy Piper b9fede8a27 AP_HAL_ChibiOS: fixup FoxeerF405v2 build 2024-04-06 10:13:46 +11:00
Oleksiy Protas 364e6f06f3 AP_HAL_Linux: delay signal handlers setup
Allow default signals before full initialization in Linux, this makes sure we don't get an unkillable process if it hangs on initialization

Exit flag marked volatile to counteract possible compiler optimization due to the handler code running in a different context
2024-04-05 11:36:29 +11:00
Tatsuya Yamaguchi f1d37fc051 AP_Stats: update flight time on disarm 2024-04-05 11:31:20 +11:00
James O'Shannessy 9dbc61f85b AP_InertialSensor: Fix parameter name when saving persistent accel cals for Aux IMUs
Without this change, you get:
* IMU_ACCOFFS_*
* IMU_ACC2OFFS_*
* IMU_ACC3OFFS_*
* IMU3_ACCOFFS_*

After this change, you get:
* IMU_ACCOFFS_*
* IMU_ACC2OFFS_*
* IMU_ACC3OFFS_*
* IMU4_ACCOFFS_*
2024-04-05 11:02:04 +11:00
Philipp Borgers 1e2600c2e3 AP_Logger_MAVLink: Remove code that changes behavior when in SITL
The removed code changed behavior of the send_log_block function when
simulating with SITL. While I can understand the intention I do not
think that it is the right way to do it and has the potential to confuse
people debugging stuff with SITL and comparing to the real world.
2024-04-05 10:54:26 +11:00
Michael du Breuil 84cef5b786 AP_HAL_ChibiOS: add sw-boom-f407 and supporting scripts 2024-04-05 10:53:38 +11:00
AlexandrShipovsky ace31e617e AP_HAL_ChibiOS: add CSKY405 board 2024-04-05 10:45:00 +11:00
Andy Piper fdce070f81 AP_HAL_ChibiOS: allow H7RF to build 2024-04-05 10:23:50 +11:00
Iampete1 d93cc7f113 AP_HAL_SITL: report baudlimit_enable in bw_in_bytes_per_second function 2024-04-03 13:10:06 +01:00
Iampete1 0b95b515bd AP_HAL_SITL: implement uart_info to populate @SYS/uarts.txt 2024-04-03 13:10:06 +01:00
Iampete1 29559b6710 AP_HAL_Empty: update uart_info function for new signature 2024-04-03 13:10:06 +01:00
Iampete1 edc12c2857 AP_HAL_ChibiOS: use new UART stats tracking helper moving history up to util 2024-04-03 13:10:06 +01:00
Iampete1 c64124daf9 AP_HAL: Add StatsTracker helper 2024-04-03 13:10:06 +01:00
Andy Piper b045939f1d AP_HAL_ChibiOS: FoxeerF405v2 2024-04-03 18:50:52 +11:00
Peter Barker 47716e2338 hwdef: remove stray HAL_BUILD_AP_PERIPH defines
this is added by defaults_periph
2024-04-03 18:36:29 +11:00
Peter Barker 5fb4e1e285 hwdef: replace defined(HAL_DISABLE_LOOP_DELAY) with HAL_SCHEDULER_LOOP_DELAY_ENABLED 2024-04-03 18:36:29 +11:00
Peter Barker 764f6863ea hwdef: re-enable RCIN thread on some builds/boards
not because they need it, but to make a PR NFC
2024-04-03 18:36:29 +11:00
Peter Barker 994c268644 AP_HAL_ChibiOS: replace HAL_NO_RCIN_THREAD w/HAL_RCIN_THREAD_ENABLED 2024-04-03 18:36:29 +11:00
Henry Wurzburg 594c2466d8 HWDEF:revert copter only build on bds with integrated escs 2024-04-03 18:31:54 +11:00
Iampete1 dd4e212fbd AP_Scripting: examples: update servo scan 2024-04-03 16:31:23 +09:00
Dave d6488eb030 AP_HAL_ESP32: Added missing letter to printf statement 2024-04-03 16:18:02 +09:00
Peter Barker b7fe779713 AP_HAL: move GPIO ON/off defaults from AP_HAL_ChibiOS to AP_HAL
these can be reused across different vehicles
2024-04-03 11:00:24 +11:00
Peter Barker a65e06e0a9 AP_HAL_ChibiOS: move GPIO ON/off defaults from AP_HAL_ChibiOS to AP_HAL
these can be reused across different vehicles
2024-04-03 11:00:24 +11:00
Peter Barker e1f3864349 hwdef: convert_betaflight_unified.py: don't set HAL_GPIO_LED_OFF
this value is the default value anyway, so don't make many copies..
2024-04-03 11:00:24 +11:00
Peter Barker 10627d296d hwdef: remove HAL_GPIO lines which are simply the default values
... or the _OFF entry, which is simply !HAL_GPIO_MED_ON
2024-04-03 11:00:24 +11:00
Peter Barker 99dd85d51c AP_HAL_ChibiOS: enforce HAL_GPIO_LED_OFF is not(HAL_GPIO_LED_ON)
the current "flexibility" allows for ON/OFF to be the same value.

Many hwdef files where only setting one of these, leaving the other at teh default, too....
2024-04-03 11:00:24 +11:00
Peter Barker f70a1927f5 AP_HAL: chibios.h: remove defaulting of HAL_GPIO_LED_ON and _OFF
this same defaulting is being done in AP_HAL_ChibiOS/GPIO.h
2024-04-03 11:00:24 +11:00
mateksys b904ab27f8 AP_HAL_ChibiOS: add MatekH7A3 defaults.parm 2024-04-02 15:29:55 +11:00
mateksys 4c3800c462 AP_HAL_ChibiOS: modify MatekH7A3 hwdef 2024-04-02 15:29:55 +11:00
Peter Barker 33e5b20709 hwdef: re-add ESC control to AP_Periph units which lost it
I'm quite sure that several of these don't actually want it, but want NFC
2024-04-02 11:28:27 +11:00
Peter Barker 416f7d393a hwdef: remove DISABLE_SERIAL_ESC_COMM AP_Periph boilerplate
... use the defaults file instead
2024-04-02 11:28:27 +11:00
Maxim Buzdalov 9978b8f97f AP_Arming: do not wait 10 seconds with single gyro/accel 2024-04-02 11:23:01 +11:00
Peter Barker f28cfc9a3b hwdef: remove handling of FULL_CHIBIOS_BOOTLOADER directive
the string FULL_CHIBIOS_BOOTLOADER doesn't exist anywhere else in the source code
2024-04-02 11:20:48 +11:00
Iampete1 b08034373f AP_Logger: `Write_VER` keep g++ 7.5 happy by removeing non-trivial designated initializers 2024-04-02 11:13:55 +11:00
Iampete1 afe257a8db AP_Mission: take location in `get_landing_sequence_start`, `jump_to_landing_sequence`, `jump_to_abort_landing_sequence`, and `is_best_land_sequence`, add helpers for scripting 2024-04-02 11:11:59 +11:00
Iampete1 b16f70a83d AP_Landing: `restart_landing_sequence` get current location and pass it to `get_landing_sequence_start` 2024-04-02 11:11:59 +11:00
Clyde McQueen 10f39c3d28 GCS_Common: defer to AP_AHRS::set_origin to write logs 2024-04-02 11:00:22 +11:00
Clyde McQueen f422537f70 AP_AHRS: set_origin calls Log_Write_Home_And_Origin on success 2024-04-02 11:00:22 +11:00
rmaia 30ea932e9b AP_RCTelemetry: add extended RC link stats OSD fields
Adds RSSI dBm, SNR, LQ, Tx power and active antenna OSD fields
2024-04-02 10:30:24 +11:00
rmaia ea91d6e171 AP_RCProtocol: add extended RC link stats OSD fields
Adds RSSI dBm, SNR, LQ, Tx power and active antenna OSD fields
2024-04-02 10:30:24 +11:00
rmaia a1a87bd1f5 AP_OSD: add extended RC link stats OSD fields
Adds RSSI dBm, SNR, LQ, Tx power and active antenna OSD fields
2024-04-02 10:30:24 +11:00
Andrew Tridgell 1794c128a2 AP_Scripting: raise max FLTE for yaw to 8
better yaw for many vehicles
2024-04-02 10:28:34 +11:00
Henry Wurzburg b83a895d7b HWDEF: allow all build targets for non-integrated boarda 2024-04-02 10:17:21 +11:00
rishabsingh3003 b22e4fa085 AP_RangeFinder: Refactor RDS02UF rangefinder 2024-04-01 16:12:53 +11:00
rishabsingh3003 276ee86f38 AP_Math: Add RDS02UF RangeFinder CRC 2024-04-01 16:12:53 +11:00
rishabsingh3003 fc0084fe83 SITL: Update RDS02UF CRC 2024-04-01 16:12:53 +11:00
zebulon-86 871292cb29 AP_RangeFinder:add support for RDS02UF radar driver on serial
parameter RNGFNDx_TYPE is 42

Apply suggestions from code review

Co-authored-by: Peter Barker <pb-gh@barker.dropbear.id.au>
2024-04-01 16:12:53 +11:00
James O'Shannessy ac271cf4e0 AP_InertialSensor: Improve bitmask indicating persistent parameters on bootloader flash
INS_TCAL_OPTIONS parameter description indicates a singular bit in a bitmask to persist Accels/TCAL parameters, however there are two separate bits for persistence.
2024-03-26 11:39:11 +11:00
Henry Wurzburg 0cfdc75c90 add 60x22 to OSD_TXT_RES metadata 2024-03-26 11:37:16 +11:00
Andrew Tridgell 17a61ab14b AP_OSD: allow size of SITL OSD to be set with parameters 2024-03-26 11:36:48 +11:00
Andrew Tridgell feb8c3be67 SITL: added SIM_OSD_ROWS and SIM_OSD_COLUMNS 2024-03-26 11:36:48 +11:00
Iampete1 8ccec7615c AP_OSD: use `set_and_default` when ensuring first screen is enabled 2024-03-26 11:36:00 +11:00
Iampete1 c4691bef94 AP_DAL: Standalone: add int8 parameter set_and_default method to avoid include 2024-03-26 11:35:36 +11:00
Iampete1 21df26de75 AP_NavEKF3: use set_and_defualt when changing imu mask 2024-03-26 11:35:36 +11:00
Iampete1 b95b51f1a1 AP_NavEKF2: use set_and_defualt when changing imu mask 2024-03-26 11:35:36 +11:00
Ryan Friedman 6fc8185716 AP_ExternalAHRS: Only use GPS data when populating GPS fields
Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
2024-03-26 11:23:06 +11:00
Ryan Friedman 35451c7021 AP_ExternalAHRS: Check backend pre-arm before origin
* This allows the backend to report more detailed errors
* Before this, many pre-arm errors were hidden by origin failure
* If pre-arm could report multiple errors, that would be ideal

Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
2024-03-26 11:22:06 +11:00
Ryan Friedman 95ac178f20 Save flash, reduce code duplication
* Add generic health and time utils
* Fix bug only checking first GNSS system
* Use common logging struct
* Improve pre-arm log checks

Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
2024-03-26 11:22:06 +11:00
Ryan Friedman 9edc0f8ec6 AP_ExternalAHRS: Don't send init message till booted up
Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
2024-03-26 11:22:06 +11:00
Ryan Friedman d383a19c29 AP_ExternalAHRS: Use state watching instead
Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
2024-03-26 11:22:06 +11:00
Ryan Friedman 67b89a9b1f AP_ExternalAHRS: Provide warning for init failure
* If the device hasn't initialized in 5 seconds, give a warning

Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
2024-03-26 11:22:06 +11:00
Ryan Friedman dc2815e9f5 AP_ExternalAHRS: Use filter data to populate EKF status report
* Variances vs uncertainties may still be off
* Requires enabling the following packets in SensorConnect:
  * Position Uncertainty (LLH)
  * Velocity Uncertainty (NED)

Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
2024-03-26 11:11:39 +11:00
Peter Barker 8fc76e7455 hwdef: remove extraneous lines from hwdef files
these either come from includes are duplicated in these files
2024-03-26 11:09:03 +11:00
Peter Barker 395f438b42 chibios_hwdef.py: print error message if a define is re-defined at top level with same value 2024-03-26 11:09:03 +11:00
Peter Barker eca2fd92b2 chibios_hwdef.py: correct extraction of intdefines
another regex problem
2024-03-26 11:09:03 +11:00
Peter Barker 58c0823264 AP_Radio: correct guards around code in AP_Radio_cc2500
these were missed in a cleanup; the header is already guarded with these
2024-03-26 11:07:42 +11:00
Peter Barker 1f3b4c47a0 hwdef: make a skyviper.inc, use it on skyviper-journey 2024-03-26 11:07:42 +11:00
Peter Barker 44477c3b62 AP_Notify: remove VRBrain board sub-types
these were only used to turn choose between AP_Notify LED backends, which can be done much more neatly with specific features defines.
2024-03-26 11:06:13 +11:00
Peter Barker 3387cad322 AP_HAL: remove VRBrain board sub-types
these were only used to turn choose between AP_Notify LED backends, which can be done much more neatly with specific features defines.
2024-03-26 11:06:13 +11:00