Commit Graph

25952 Commits

Author SHA1 Message Date
Andy Piper fcc8853244 AP_MSP: generalise ESC telemetry to allow data from other ESCs
enable with HAL_WITH_ESC_TELEM
2021-05-12 17:01:11 +10:00
Andy Piper b63d19533d AP_KDECAN: support ESC telemetry
remove send_esc_telemetry_mavlink()
log telemetry data in frontend
remove datastructures and semaphore obsoleted by AP_ESC_Telem* (<amilcar.lucas@iav.de>)
record volts, amps and consumption as floats
scale rpm correctly
2021-05-12 17:01:11 +10:00
Andy Piper 5b992de959 AP_HAL_SITL: update ESC telemetry in rcout 2021-05-12 17:01:11 +10:00
Andy Piper 6447bd1cdd AP_HAL_ChibiOS: use AP_ESC_Telem to record erpm data and error rate
don't output RPM data if bi-dir dshot is not enabled
2021-05-12 17:01:11 +10:00
Andy Piper 4f547d2acc AP_HAL: allow motor poles to be recorded
enable ESC telemetry for SITL
2021-05-12 17:01:11 +10:00
Andy Piper 6d50549476 AP_BLHeli: generalise ESC telemetry to allow harmonic notch handling with other ESCs
move part of frequency calculation into AP_ESC_Telem_Backend
factor out duplicate code into AP_ESC_Telem_Backend
remove send_esc_telemetry_mavlink()
log telemetry data in frontend
remove datastructures and API obsoleted by AP_ESC_Telem* (<amilcar.lucas@iav.de>)
record volts, amps and consumption as floats
fix wrong motor channel in telemtry update
2021-05-12 17:01:11 +10:00
Hwurzburg 7e677d1e75 SRV_Channel: Add function names for trad heli functions and tricopter 2021-05-11 22:50:09 -04:00
murata 747de2c28c AP_GPS: Change to STM32's faster processing operations 2021-05-12 06:49:03 +10:00
Andrew Tridgell 0cd97ce3d8 AP_GPS: fixed GPS yaw for GPS_INPUT mavlink 2021-05-11 17:45:46 +10:00
Randy Mackay b4fd9848df AR_AttitudeControl: add get_stop_speed accessor 2021-05-11 15:31:17 +09:00
Paul Riseborough 9014afc9d4 AP_NavEKF3: Fix typo in comment 2021-05-11 10:37:08 +10:00
Paul Riseborough b9abef37c3 AP_NavEKF3: Reset to GPS yaw if fusion times out when on ground. 2021-05-11 10:37:08 +10:00
Andy Piper 0d43cb4622 RC_Channel: add VTX power to docs 2021-05-11 10:29:15 +10:00
Andy Piper ef8b6efd89 AP_SerialManager: add SmartAudio to docs 2021-05-11 10:29:15 +10:00
murata 072420d98e AP_RCTelemetry: Do uart's nullptr check first 2021-05-11 10:24:50 +10:00
Hwurzburg fda07e7dc8 AP_OSD: Add fence indicator panel 2021-05-11 09:36:15 +10:00
Hwurzburg 0ffa83b2dd AP_ICEngine: add note about ICE_STARTCHN_MIN param 2021-05-11 09:12:05 +10:00
Rishabh 7e79999b86 AC_Avoid: reenable avoidance logging 2021-05-09 19:07:22 -04:00
Andrew Tridgell e1a5d73504 HAL_ChibiOS: fixed DTCM comment for F732 2021-05-09 06:44:19 +10:00
Andrew Tridgell b7fffe35f9 HAL_ChibiOS: added FreeflyRTK GPS build
a F732 based GPS peripheral
2021-05-09 06:44:19 +10:00
Andrew Tridgell 5a7e870cfb AP_Notify: scale NCP5623 for for data range
we were overflowing the RGB max of 0x1f, leading to LED being off at
high power
2021-05-09 06:44:19 +10:00
Andrew Tridgell 0fd335af33 AP_Baro: changed health check for AP_Periph
avoid alt check and calibration check
2021-05-09 06:44:19 +10:00
Andrew Tridgell 11e4b62438 SRV_Channel: allow build with no channels
needed for AP_Periph when using LED driver only
2021-05-09 06:44:19 +10:00
Andrew Tridgell 1a81b10d27 AP_Baro: hide unnecessary params on AP_Periph 2021-05-09 06:44:19 +10:00
Andrew Tridgell 60f60356b8 AP_Common: hide unnecessary params on AP_Periph
we only use raw compass
2021-05-09 06:44:19 +10:00
Andrew Tridgell 474f22c3fe AP_Baro: allow for define of BARO_MAX_INSTANCES 2021-05-09 06:44:19 +10:00
Andrew Tridgell 4d661911e5 HAL_ChibiOS: allow adjustment of F7 I2C timing
needed for F732
2021-05-09 06:44:19 +10:00
Andrew Tridgell 6b9e4161cb HAL_ChibiOS: removed UDID_START from all MCU defs
use UID_BASE from ChibiOS headers
2021-05-09 06:44:19 +10:00
Andrew Tridgell 36d5c98e96 HAL_ChibiOS: default UDID_START to UID_BASE 2021-05-09 06:44:19 +10:00
Andrew Tridgell 2dc4c50953 HAL_ChibiOS: fixed default OTP address and size 2021-05-09 06:44:19 +10:00
Andrew Tridgell 22f7218acf HAL_ChibiOS: support 512k F7 parts for flash 2021-05-09 06:44:19 +10:00
Andrew Tridgell 03cae60471 HAL_ChibiOS: added STM32F732 support 2021-05-09 06:44:19 +10:00
Andrew Tridgell f1de0c7fe2 HAL_ChibiOS: added F732 16MHz CubeMX config 2021-05-09 06:44:19 +10:00
Andrew Tridgell 901978a9b3 AP_Baro: fixed averaging of samples for several drivers 2021-05-07 20:01:45 +10:00
Kawamura b305b3b074 AP_Compass: Send message to gcs for compass learn 2021-05-07 08:43:20 +10:00
vierfuffzig 5e8e68344e AP_Arming: fix _CHECKS param description 2021-05-06 16:22:18 +10:00
murata 49bb4d38a1 AC_AutoTune: Disable variables that are overwritten 2021-05-06 12:02:26 +10:00
Peter Barker d38e704115 SITL: fix memory over-read detected by Valgrind
==15803== Conditional jump or move depends on uninitialised value(s)
==15803==    at 0x4C34975: index (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==15803==    by 0x444D8D: SITL::Frame::load_frame_params(char const*) (SIM_Frame.cpp:363)
==15803==    by 0x445415: SITL::Frame::init(char const*, SITL::Battery*) (SIM_Frame.cpp:432)
==15803==    by 0x3696ED: SITL::MultiCopter::MultiCopter(char const*) (SIM_Multicopter.cpp:35)
==15803==    by 0x34B49C: SITL::MultiCopter::create(char const*) (SIM_Multicopter.h:44)
==15803==    by 0x34C58E: HALSITL::SITL_State::_parse_command_line(int, char* const*) (SITL_cmdline.cpp:480)
==15803==    by 0x344005: HALSITL::SITL_State::init(int, char* const*) (SITL_State.cpp:923)
==15803==    by 0x33D854: HAL_SITL::run(int, char* const*, AP_HAL::HAL::Callbacks*) const (HAL_SITL_Class.cpp:182)
==15803==    by 0x15ACDD: main (Copter.cpp:678)
==15803==
2021-05-05 21:21:56 +10:00
Peter Barker 0661a27400 SITL: ensure st.size is valid when loading model json
Before this patch st.size is undefined when we use it to create a buffer
on the stack - probably not a good thing.
2021-05-05 21:21:56 +10:00
Andy Piper 94d4252a2a AP_RCTelemetry: warn if using CRSF on non-DMA channel
don't produce rf_mode messages when not using CRSF for RC control
2021-05-05 17:50:42 +10:00
Andy Piper f6b9479542 AP_HAL_ChibiOS: add accessor for UART DMA status 2021-05-05 17:50:42 +10:00
Andy Piper 4d4d3683b6 AP_HAL: add accessor for UART dma status 2021-05-05 17:50:42 +10:00
Andy Piper dbd9b3a9ae AP_HAL_ChibiOS: ESC telemetry is orthogonal to RPM telemetry 2021-05-05 17:41:24 +10:00
Andy Piper 384ecd4a5b AP_HAL_ChibiOS: check command queue is empty before arming 2021-05-05 17:41:24 +10:00
Andy Piper 66fadf53a1 AP_HAL_ChibiOS: remove dshot calibration step 2021-05-05 17:41:24 +10:00
Andy Piper f3f3056dba AP_HAL_ChibiOS: add support for dshot commands to rcout
add support for dshot beepcodes through tonealarm
add support for dshot reversal and command queue
add support for dshot commands to all channels
correctly manage channel enablement in PWM groups
Correctly send dshot commands when using bi-dir dshot
allow reversible settings to be changed
ChibiOS: allow more than one type of ESC for dshot commands
Only execute reverse/reversible commands on BLHeli
add support for checking active ESCS
mark ESCs active when bdshot telemetry is returned
allow dshot alarm to be disabled
allow priroitized dshot commands
2021-05-05 17:41:24 +10:00
Andy Piper 38ef81e9e9 AP_Arming: call rcout arming checks 2021-05-05 17:41:24 +10:00
Andy Piper 18366a4b6d SRV_Channel: propagate ESC type into rcout 2021-05-05 17:41:24 +10:00
Andy Piper d23a0bc23d AP_HAL_SITL: allow tone alarm types 2021-05-05 17:41:24 +10:00
Andy Piper dee4ce3d35 AP_BLHeli: allow both reversed and reversible states to be set
change dshot command mask names
mark ESCs active when telemety is returned
set dshot esc type
2021-05-05 17:41:24 +10:00