Commit Graph

26741 Commits

Author SHA1 Message Date
Willian Galvani 1c98e2063c AP_Compass: allow learning with origin only 2024-01-31 12:11:36 -03:00
Willian Galvani 357bb39222 AP_SITL: update MAVLink message 2024-01-11 15:46:08 -03:00
Willian Galvani a2e634ed5e GCS_Common: fix updated messages 2024-01-11 15:46:08 -03:00
Iampete1 d1c3ef7e5b AP_Scripting: stop and restart scripting via command int 2024-01-11 15:46:08 -03:00
Willian Galvani 0db7afb074 AP_Mount: update mount messages 2024-01-11 15:46:04 -03:00
Willian Galvani bace662504 AP_EFI: update messages 2024-01-11 15:46:02 -03:00
Willian Galvani 01da376998 Sub: revert P/D gains on roll/pitch to values on 4.1.0 2023-10-30 20:24:29 -03:00
Mohammad Hefny 95a6493cd0 fix: baro same driver multi-definition 2023-08-31 19:28:52 -03:00
acxz 00f2bee8d5 AP_HAL_SITL: remove std:: scope from uint16_t 2023-07-10 15:19:51 -03:00
Andrew Tridgell 0a4dc4722c AP_Compass: drop MMC5xx3 sample rate to 100Hz
this was consuming too much of the I2C bus sampling at 1kHz
2023-03-09 00:02:24 -03:00
Willian Galvani 65576b7895 AP_HAL_Linux: add LEAK probe pin to Navigator gpio whitelist 2022-12-01 17:30:52 -03:00
Willian Galvani f88f1d2274 AP_Baro: GND_ -> BARO_ 2022-11-23 20:45:16 -03:00
Willian Galvani 256c4b3d3a AP_Baro: add Bus6 to BARO_EXT_BUS values 2022-11-23 20:44:47 -03:00
Willian Galvani db2489195d AP_Motors6DOF: lock throttle_hover at 0.5 2022-10-13 10:10:22 -03:00
Lucas De Marchi 78d2b0a61d AP_HAL_Linux: small fixes to cpu affinity
- Do not mention x:y form in the comment since it's not supported
  - Give more detail in the help output regarding the meaning of each form
  - No prints in the helper parse function, let the caller print it
2022-10-04 17:51:35 -03:00
HefnySco 44efff30e2 AP_HAL_Linux: cpu affinity 2022-10-04 17:51:35 -03:00
Willian Galvani 524980339b Sub: tweak defaults for pitch and position controllers 2022-09-29 14:51:07 -03:00
Willian Galvani a1b471374f Sitl: fix build 2022-09-28 13:37:02 -03:00
Willian Galvani 80c87f3d48 AP_PosControl: emit mavlink warning instead of internal error 2022-09-26 20:07:41 -03:00
Leonard Hall 400815361e AC_PosControl: Fix slow target decay decay problem 2022-09-26 19:55:17 -03:00
Willian Galvani 124721f42e AP_HAL_Linux: create GPIO_Navigator 2022-09-26 19:55:17 -03:00
Willian Galvani 6e14f14e09 RCOutput_PC9685: refactor write/write_gpio 2022-09-26 19:55:17 -03:00
Willian Galvani 20be1a6d44 RCOutput_PCA9685: implement gpio methods 2022-09-26 19:55:17 -03:00
Willian Galvani 243faf7f49 RC_Output.h: add gpio methods 2022-09-26 19:55:17 -03:00
Peter Barker ff40f166dc SITL: fix may-be-used-uninitialised error in thermalling code 2022-05-25 14:40:19 -03:00
Willian Galvani 33c0990efd AL_HAL: update navigator boards i2c buses 2022-05-25 14:40:19 -03:00
Willian Galvani 06fe9cde88 AP_HAL_Linux: set external and internal i2c bus masks for Navigator
This fixes an issue where the internal Compass was being re-detected
as an exernal one
2022-05-25 14:39:31 -03:00
Willian Galvani 89a7089b6f Sub: remove angle_boost logic
This gets in the way of the vectored thrust implemented,
and is just not useful for Sub.
2022-04-19 20:42:31 -03:00
Willian Galvani 5e21690335 Sub: AP_Motors6DOF: create get_throttle_in_bidirectional() 2022-04-19 20:42:31 -03:00
Willian Galvani 9762673575 AC_PosControl_Sub.h: do not use our own input_vel_accel_z 2022-04-19 20:42:31 -03:00
Iampete1 ba389e3395 AP_Motors: add PWM min and max param conversion function 2022-04-19 20:42:31 -03:00
Iampete1 328cf74df2 AP_Motors: remove use of external PWM min and max 2022-04-19 20:42:31 -03:00
Iampete1 87df2e27a5 RC_Channel: add configured_in_storage metthod 2022-04-19 20:42:31 -03:00
Peter Barker 90d3014af6 AP_Baro: correct should-probe check for Keller Baro 2022-03-31 18:55:28 -03:00
Willian Galvani a7bb57c319 AP_Hal_Linux: PCA9685: do not shutdown
Shutting down causes the pulses to be cut short, often causing
ESCs to interpret this pulse
2022-03-03 13:03:18 -03:00
Willian Galvani 5650644064 AP_Compass: use AK09915 at 200Hz continuous mode 2022-01-10 21:16:01 -03:00
Willian Galvani 18c214907a AP_Compass: Retry reading MMC5983 ID up to 10 times 2022-01-10 21:14:53 -03:00
Willian Galvani 251f6b0b04 HAL_Linux: update SPI speeds for Navigator
As @jaxxzer found out, if SCL goes under 1MHz, the MMC sometimes
glitches out, freezing.
2022-01-03 15:11:34 -03:00
Willian Galvani da8a6ff9e8 AP_HAL: fix navigator ak09915 orientation 2022-01-03 15:11:34 -03:00
Willian Galvani 99f7466f37 AP_HAL: Add HAL_PROBE_EXTERNAL_I2C_COMPASSES to Navigator 2022-01-03 15:11:34 -03:00
Patrick José Pereira ede6f3ff99 AP_HAL_Linux: Update SPIDevice for Navigator R4
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2022-01-03 11:40:48 -03:00
Patrick José Pereira fe4c6f43a2 AP_HAL: Update Navigator board to R4
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2022-01-03 11:40:48 -03:00
Patrick José Pereira 260af200e6 AP_Compass: Add support to AK09915
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2022-01-03 11:40:48 -03:00
Willian Galvani 768894fb61 AP_Compass: update MMMC5XX3 driver to support only mmc5983
Registers changed
Product ID changed
Data is now Big endian
Results are now 18 bits instead of 16, but we only consume 16.
Added SPI support

Co-authored-by: Patrick Pereira <patrickelectric@gmail.com>
Co-authored-by: Jacob Walser <jwalser90@gmail.com>
2022-01-03 11:40:48 -03:00
Andrew Tridgell e2fded6853 AP_Compass: added AK09918 support
minor update over AK09916
2022-01-03 11:40:48 -03:00
Willian Galvani 2d5d6171d7 AP_HAL: Navigator: set HAL_BARO_EXTERNAL_BUS_DEFAULT to 6
This is the bus exposed in the board for external sensors.
This is required as HAL_Linux doesn't probe all i2c buses.
2022-01-03 11:40:48 -03:00
Willian Galvani c571a27acf AP_Baro: add option to set BARO_EXT_BUS default value
This allows boards to define their own BARO_EXT_BUS default value.
This is mostly relevant for linux boards, as HAL_LINUX doesn't
probe all buses when BARO_EXT_BUS == -1.
2022-01-03 11:40:48 -03:00
Willian Galvani 1d14ea4f54 HAL_Linux: RCOutput_PCA9685: implement force_safety_on/off 2022-01-03 11:40:48 -03:00
Willian Galvani 3bf4ebaa4d HAL_Linux: try to stop PWMs before shutting down due to SIGTERM 2022-01-03 11:40:48 -03:00
Willian Galvani e92ff030b6 AP_HAL: remove BATT_ settings, they belong in AP_BattMonitor_Analog.h 2022-01-03 11:40:48 -03:00