Commit Graph

48645 Commits

Author SHA1 Message Date
Andrew Tridgell b6d852ac13 Plane: added QRTL as RCn_OPTION 2021-12-18 12:17:38 +09:00
Andrew Tridgell f25918e170 RC_Channel: added QRTL mode on a switch 2021-12-18 12:17:38 +09:00
Andrew Tridgell 5a9c61b84c Plane: fixed chute release on low value of RC option
only release on flag high
fixes #18843
2021-12-18 12:17:38 +09:00
Randy Mackay 34cab60fb6 Rover: version to 4.1.2 2021-12-07 20:03:36 +09:00
Randy Mackay 6abeb949d0 Rover: 4.1.2 release notes 2021-12-07 20:03:14 +09:00
Randy Mackay 493de243f9 Copter: version to 4.1.2 2021-12-07 20:01:15 +09:00
Randy Mackay 4934c15c03 Copter: 4.1.2 release notes 2021-12-07 20:01:15 +09:00
Randy Mackay 63175b2aeb Rover: version to 4.1.2-rc1 2021-11-29 19:02:57 +09:00
Randy Mackay b22b2a40fa Rover: 4.1.2-rc1 release notes 2021-11-29 19:02:57 +09:00
Randy Mackay 0463af3a83 Copter: version to 4.1.2-rc1 2021-11-29 19:02:57 +09:00
Randy Mackay 1bbeceb882 Copter: 4.1.2-rc1 release notes 2021-11-29 19:02:57 +09:00
Andy Piper de27e2ce25 AP_Vehicle: correct update_dynamic_notch_at_specified_rate() 2021-11-29 19:02:57 +09:00
Andy Piper 187a12103c AP_Vehicle: make sure notch update rate is configurable 2021-11-29 19:02:57 +09:00
Andy Piper 476713f9e3 Filter: set output slew rate to zero when max is zero. 2021-11-29 19:02:57 +09:00
Andy Piper fddd555b9a autotest: set SMAX during autotune test 2021-11-29 19:02:57 +09:00
Andy Piper facd9614b8 AC_AutoTune: set slew rate to 0 while twitching 2021-11-29 19:02:57 +09:00
Andy Piper 273ed18d34 AC_PID: add slew_rate modifier 2021-11-29 19:02:57 +09:00
Hwurzburg e3d7dd0776 AP_Motors: change H_COLL_HOVER to H_COL_HOVER for consistency 2021-11-29 19:02:57 +09:00
Randy Mackay aa7cce055f Copter: surface tracking timeout fix
also restructure update_surface_offset and add comments

Co-authored-by: Leonard Hall <leonardthall@gmail.com>
2021-11-29 19:02:57 +09:00
torsten 7f4e3aebe3 AP_FETtecOneWire: reset buf_used
if byte is missing due to electrical noise it can now resync
2021-11-29 19:02:57 +09:00
Peter Barker 60c51cd509 autotest: FETtec tests: give vehicle a chance to realise ESCs are dead
Should remove the race condition where we disable an ESC but the vehicle
doesn't realise and lets the vehicle arm.

Also, waiting this long causes the ESCs to just go missing, not give a
telemetry failure
2021-11-29 19:02:57 +09:00
Dr.-Ing. Amilcar do Carmo Lucas b9b988fff4 AP_FETtecOneWire: Do not write to the UART buffer if the previous transfer did not complete yet
Required for stable operation on F4 processors
2021-11-29 19:02:57 +09:00
Andy Piper 98c03b498d AP_HAL_ChibiOS: return correct value for tx_pending(). 2021-11-29 19:02:57 +09:00
Dr.-Ing. Amilcar do Carmo Lucas c88d91bdc1 AP_HAL_ChibiOS: disable FETtec OneWire device driver 2021-11-29 19:02:57 +09:00
Dr.-Ing. Amilcar do Carmo Lucas dda50fffed AP_Arming: call fettec prearm checks 2021-11-29 19:02:57 +09:00
Peter Barker ac844ccde2 autotest: add test for FETtec OneWire ESCs
make sure the SERVO_FWT_MASK is valid:
  - it can have bit gaps between active channels, but channels higher than 12 are not allowed (AP_EST_TELEM limitation)
  - Explain that the FETtec ESC IDs inside the FETtec Firmware need to be contiguous and start at 1.
add tests for ESC power outages
add test that safety switch zeroes PWM for FETtec ESC
a gap in the beginning of the SERVO_FTW_MASK is now allowed, test it
2021-11-29 19:02:57 +09:00
Peter Barker bc6b412083 SITL: add simulated FETtec ESC 2021-11-29 19:02:57 +09:00
Peter Barker a62cd781be AP_HAL_SITL: add simulated FETtec ESC
do not overwrite FETTecESC telemetry data w/SITL ESC data
2021-11-29 19:02:57 +09:00
Peter Barker da34e63374 AP_Math: move crc8_dvb_update into crc library 2021-11-29 19:02:57 +09:00
Pierre Kancir f1ac606f98 SRV_Channel: add FETtec support 2021-11-29 19:02:57 +09:00
Pierre Kancir e9df0d5140 Tools: link AP_FETtecOneWire 2021-11-29 19:02:57 +09:00
Pierre Kancir 551a1a800a AP_SerialManager: add FETtecOneWire protocol 2021-11-29 19:02:57 +09:00
Torsten Z db197c0068 AP_FETtecOneWire: A serial-based ESC protocol with telemetry
Co-authored-by: Torsten Z <t.zunker@fettec.net>
Co-authored-by: Dr.-Ing. Amilcar do Carmo Lucas <amilcar.lucas@iav.de>
Co-authored-by: Peter Barker <pb-gh@barker.dropbear.id.au>

- uses ArduPilot's coding guidelines and naming conventions
- control motor speed
- Use the AP_ESC_Telem base class to:
  - copy ESC telemetry data into MAVLink telemetry
  - save ESC telemetry data in dataflash logs
  - use RPM telemetry for dynamic notch filter frequencies
  - sum the current telemetry info from all ESCs and use it as virtual battery current monitor sensor
  - average the voltage telemetry info and use it as virtual battery voltage monitor sensor
  - average the temperature telemetry info and use it as virtual battery temperature monitor sensor
- Obey the safety switch. Keeps motors from turning
- Use `SERVO_FWT_MASK` to define which servo output should be routed to FETtec ESCs
- Use `SERVO_FWT_RVMASK` to define the rotation direction of the motors
  - `SERVO_FWT_RVMASK` changes only take effect when disarmed
- Can be compiled when `HAL_WITH_ESC_TELEM` is disabled. No telemetry data will be available but it saves a lot of memory
- pre-arm checks:
  - Check that UART is available
  - check that the desired motor channels parameter (`SERVO_FWT_MASK`) is valid
  - check that the desired motor poles parameter (`SERVO_FWT_POLES`) is valid
  - check that the all desired ESCs are found and configured
  - check that the ESCs are periodically sending telemetry data
- re-init and configure an ESC(s) if not armed (motors not spinning) when
  - telemetry communication with the ESC(s) is lost
- adds a serial simulator (--uartF=sim:fetteconewireesc) of FETtec OneWire ESCs
- adds autotest (using the simulator) to:
  - simulate telemetry voltage, current, temperature, RPM data using SITL internal variables
  - test the safety switch functionality
  - test ESC power outages
  - test `SERVO_FWT_MASK` parameter validation
  - fly a copter over a simulated serial link connection
2021-11-29 19:02:57 +09:00
Andrew Tridgell c939c735d2 Plane: prepare for 4.1.3 release 2021-11-29 19:02:57 +09:00
Andrew Tridgell 693762c8eb Plane: update release notes for 4.1.3 2021-11-29 19:02:57 +09:00
Andrew Tridgell 521c909ccc ChibiOS: fixed mkdir DMA for 4.1 2021-11-29 19:02:57 +09:00
Andrew Tridgell 983b5276ab Plane: suppress spurious EKF yaw reset message
this makes plane match copter, emitting a yaw reset event, but not
worrying user. This message came out on each boot when EKF3 first
became active
2021-11-29 19:02:57 +09:00
Andrew Tridgell 3a65df9bca hwdef: added alternative Durandal 20602 IMU 2021-11-29 19:02:57 +09:00
Andrew Tridgell 62144737fb Plane: enable fixed wing autotune switch 2021-11-29 19:02:57 +09:00
Andrew Tridgell 58a97a844e RC_Channel: added fixed wing autotune rc option 2021-11-29 19:02:57 +09:00
Andrew Tridgell 45907eb6c0 Plane: prepare for 4.1.3beta1 release 2021-11-29 19:02:57 +09:00
Andrew Tridgell 241d1adcf9 Plane: rename release-notes.txt to ReleaseNotes.txt 2021-11-29 19:02:57 +09:00
Andrew Tridgell e2a978a86a Plane: update release notes for 4.1.3beta1 2021-11-29 19:02:57 +09:00
Andrew Tridgell 35de0855f3 Plane: allow for new guided destination during guided takeoff
if you set a very high alt for takeoff this is useful
2021-11-29 19:02:57 +09:00
Andrew Tridgell 76f4ead7c1 Plane: fixed overshoot in guided takeoff of quadplanes 2021-11-29 19:02:57 +09:00
Andrew Tridgell 0fc47d793a AP_ADSB: bugfix vertical velocity sign was backwards 2021-11-29 19:02:57 +09:00
Andrew Tridgell bd441ef816 AP_NavEKF3: fixed switch to non-zero primary on disarm
if EK3_PRIMARY is not zero then we were not switching to it when
disarmed
2021-11-29 19:02:57 +09:00
Andrew Tridgell 6d4615ac7a Plane: default rate max to 75 for quadplane VTOL
this reduces overshoot when VTOL tune is less than ideal
2021-11-29 19:02:57 +09:00
Andrew Tridgell 1a33ca3ebe Plane: fixed a bug in POSITION1 speed thresholds (for plane 4.1)
we were comparing two different speeds in the threshold for going to
Q_WP_SPEED limit. The reason the two speeds were different was the
wp_nav init happened before the defaults were setup for quadplanes

this fixes both bugs
2021-11-29 19:02:57 +09:00
Andrew Tridgell a7973b3e7a AP_UAVCAN: added CAN_Dn_UC_OPTION parameter
this allows for 2 ways of controlling conflicts in the UAVCAN DNA
database. The first is to set CAN_Dn_UC_OPTION to 1, which resets the
DNA database, thus clearing any node conflicts.

The second is to set CAN_Dn_UC_OPTION to 2, which ignores node
conflicts in the DNA database

These options are useful for vehicles with UAVCAN smart batteries
where the node ID is fixed but the hwid changes and you want to do
battery swapping (possibly without rebooting)
2021-11-29 19:02:57 +09:00