Commit Graph

48503 Commits

Author SHA1 Message Date
Dr.-Ing. Amilcar do Carmo Lucas
4fa548c86c AP_Arming: call fettec prearm checks 2021-11-29 19:02:38 +09:00
Peter Barker
4903224b47 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:38 +09:00
Peter Barker
1943938bc5 SITL: add simulated FETtec ESC 2021-11-29 19:02:38 +09:00
Peter Barker
443912ed9f AP_HAL_SITL: add simulated FETtec ESC
do not overwrite FETTecESC telemetry data w/SITL ESC data
2021-11-29 19:02:38 +09:00
Peter Barker
8cffcde7bd AP_Math: move crc8_dvb_update into crc library 2021-11-29 19:02:38 +09:00
Pierre Kancir
64091cf24c SRV_Channel: add FETtec support 2021-11-29 19:02:38 +09:00
Pierre Kancir
4049c15557 Tools: link AP_FETtecOneWire 2021-11-29 19:02:38 +09:00
Pierre Kancir
381945cc63 AP_SerialManager: add FETtecOneWire protocol 2021-11-29 19:02:38 +09:00
Torsten Z
b4f4ad7c01 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:38 +09:00
Andrew Tridgell
617f8e3979 Plane: prepare for 4.1.3 release 2021-11-29 19:02:38 +09:00
Andrew Tridgell
fee5be32d6 Plane: update release notes for 4.1.3 2021-11-29 19:02:38 +09:00
Andrew Tridgell
eb159af13e ChibiOS: fixed mkdir DMA for 4.1 2021-11-29 19:02:38 +09:00
Andrew Tridgell
206d5e468c 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:38 +09:00
Andrew Tridgell
72647b1a85 hwdef: added alternative Durandal 20602 IMU 2021-11-29 19:02:38 +09:00
Andrew Tridgell
845e2ab888 Plane: enable fixed wing autotune switch 2021-11-29 19:02:38 +09:00
Andrew Tridgell
168eb91ed3 RC_Channel: added fixed wing autotune rc option 2021-11-29 19:02:38 +09:00
Andrew Tridgell
662849f2d9 Plane: prepare for 4.1.3beta1 release 2021-11-29 19:02:38 +09:00
Andrew Tridgell
22ffd62aa9 Plane: rename release-notes.txt to ReleaseNotes.txt 2021-11-29 19:02:38 +09:00
Andrew Tridgell
6c77f660dc Plane: update release notes for 4.1.3beta1 2021-11-29 19:02:38 +09:00
Andrew Tridgell
ab9a453b47 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:38 +09:00
Andrew Tridgell
2d73a0bc38 Plane: fixed overshoot in guided takeoff of quadplanes 2021-11-29 19:02:38 +09:00
Andrew Tridgell
e844cd7625 AP_ADSB: bugfix vertical velocity sign was backwards 2021-11-29 19:02:38 +09:00
Andrew Tridgell
fd6c9d476d 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:38 +09:00
Andrew Tridgell
c857f889b3 Plane: default rate max to 75 for quadplane VTOL
this reduces overshoot when VTOL tune is less than ideal
2021-11-29 19:02:38 +09:00
Andrew Tridgell
79c7a238b1 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:38 +09:00
Andrew Tridgell
f2e97b9342 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:38 +09:00
Mohammad Hefny
89135ff831 AP_Notify: link to notify module 2021-11-29 19:02:38 +09:00
Mohammad Hefny
97ae5d8bca AP_Batt: link to battery monitor 2021-11-29 19:02:38 +09:00
Mohammad Hefny
11944811df AP_HAL_Linux: define board features on Linux module 2021-11-29 19:02:38 +09:00
Mohammad Hefny
8ce6d7e101 AP_HAL: define board features 2021-11-29 19:02:38 +09:00
Andrew Tridgell
c8b8aa1f4f Tools: define obal board 2021-11-29 19:02:38 +09:00
Andrew Tridgell
352046d7f9 Plane: suppress rate D terms in ground mode
this prevents a common oscillation issue on the ground
2021-11-29 19:02:38 +09:00
Andrew Tridgell
c7d89b7288 APM_Control: suppress roll/pitch D term in ground_mode
prevent oscillations which are quite common
2021-11-29 19:02:38 +09:00
Andrew Tridgell
a17a0c130d Plane: avoid qpos approach when very close to destination
this prevents a fwd transition when doing something like LOITER_TIME
close to a VTOL_LAND wp. We use 1.5 times the stopping distance at
cruise airspeed for the threshold
2021-11-29 19:02:38 +09:00
Andrew Tridgell
f8acd38adc Plane: fixed VTOL state error when using Q_ENABLE=2
this ensures the poscontrol state is reset if it has not been
initialised before a VTOL loiter operation

thanks to Pete Hall for finding this
2021-11-29 19:02:38 +09:00
Samuel Tabor
4e86cc8b41 ArduPlane: altitude: rangefinder correction should be relative to the altitude source being used for navigation. This avoid applying it twice when there is an existing correction saved. 2021-11-29 19:02:38 +09:00
Samuel Tabor
541435cb83 AP_Landing_Slope: Log height used for flare timing. 2021-11-29 19:02:38 +09:00
Samuel Tabor
b733f6cd95 autotest: fly_mission should respect mission_timeout when waiting for wps. 2021-11-29 19:02:38 +09:00
Samuel Tabor
5eea705234 autotest: Add plane test for landing with barometer drift. 2021-11-29 19:02:38 +09:00
Iampete1
3fde3942b8 Plane: Quadplane: allow scripting matrix frame class 2021-11-29 19:02:38 +09:00
Andrew Tridgell
7916fc7852 Plane: prepare for 4.1.2 release 2021-11-29 19:02:38 +09:00
Andrew Tridgell
2e6362a794 Plane: update release notes for 4.1.2 2021-11-29 19:02:38 +09:00
Andrew Tridgell
cb0817ccb5 Plane: prepare for 4.1.2beta2 2021-11-29 19:02:38 +09:00
Andrew Tridgell
5b4321275f Plane: update release notes for 4.1.2beta2 2021-11-29 19:02:38 +09:00
Randy Mackay
01d1aa1e92 Copter: version to 4.1.1 2021-11-09 19:00:09 +09:00
Randy Mackay
04121706a5 Copter: 4.1.1 release notes 2021-11-09 18:59:11 +09:00
Andrew Tridgell
5d360e8327 git: changed to https git protocol 2021-11-02 19:36:29 +11:00
Randy Mackay
bc6b31bcfe Copter: version to 4.1.1-rc1 2021-10-17 19:03:42 -04:00
Randy Mackay
0ebb5f6580 Copter: 4.1.1-rc1 release notes 2021-10-17 19:03:42 -04:00
Bill Geyer
67842ea53b Copter: fix tradheli landing detector bug 2021-10-17 19:03:42 -04:00