VTOL tiltrotor: introduce spin up time with spin up tilt angle
As some tiltrotor systems need a certain tilt angle of their motors in oder to spin up freely,
this commit introduces an additional parameter VT_TILT_SPINUP and sets the motor tilt to
this value if disarmed or within 1s since arming.
The spinup consists of 2 phases:
1st phase fixed tilt (duration hardcoded to 1s)
2nd phase transition from spinup tilt to multicopter tilt (hardcoded to 0.5s)
Signed-off-by: Silvan Fuhrer <silvan@auterion.com>disable spinup tilt sequence if spinup tilt parameter is set to 0
Signed-off-by: Silvan Fuhrer <silvan@auterion.com>
reposition (goto): add check if goto location is outside the geofence
Before this check we were free to fly outside of a geofence with a goto command. With this check we ignore the command if the location of the goto is outside the fence. If this is the case we send back a mavlink warning to the ground station.
geofence: reposition to current location when violating geofence in h…
…old mode This can only happen if the vehicle is executing a go to.
navigator_main: allow altitude change when the current lat and lon ar…
…e still nan This is a corner case that happens when the user wants to command an altitude change just after a takeoff. Takeoff doesn't set the current lat and lon therefore the user had to change altitude twice to get it working. The first time to set the current lat and lon and the second time to actually change altitude.
- remove leftover Start() - remove "reset" from command line (stop + start is sufficient)
mc_pos_control: correct sign of acceleration state
Non-functional change, just change the sign in the correct place to avoid further confusion.
Update submodule NuttX-apps to latest Thu Apr 9 20:22:38 UTC 2020
- NuttX-apps in PX4/Firmware (cf2b0a4): PX4/NuttX-apps@91b6ad6 - NuttX-apps current upstream: PX4/NuttX-apps@95e1055 - Changes: PX4/NuttX-apps@91b6ad6...95e1055 95e10554 2020-03-30 Peter van der Perk - [Backport] Add CONFIG_NET_CAN support to netinit.c e17eeb31 2020-03-28 Peter van der Perk - [Backport] netutils SocketCAN suport & candump, cansend tool
Update submodule mavlink v2.0 to latest Thu Apr 9 20:22:33 UTC 2020
- mavlink v2.0 in PX4/Firmware (bad9b64): mavlink/c_library_v2@4b49359 - mavlink v2.0 current upstream: mavlink/c_library_v2@0f9e421 - Changes: mavlink/c_library_v2@4b49359...0f9e421 0f9e4218 2020-04-09 PX4BuildBot - autogenerated headers for rev https://github.com/mavlink/mavlink/tree/d3d37b6ebc02ff434279864a7e146b5cd365a083 Co-authored-by: PX4 BuildBot <bot@px4.io>
workflows: file within docker not accessible
Therefore, let's try with v2-preview.
platforms: don't catch floating point errors
When this triggered it actually just kept printing "floating point exception" and never recovered. By removing this we can at least catch it with a core dump, in CI as well as locally.
Update submodule sitl_gazebo to latest Fri Apr 10 12:39:18 UTC 2020
- sitl_gazebo in PX4/Firmware (ed0c25a): PX4/PX4-SITL_gazebo@e4f6bff - sitl_gazebo current upstream: PX4/PX4-SITL_gazebo@2f83192 - Changes: PX4/PX4-SITL_gazebo@e4f6bff...2f83192 2f83192 2020-04-09 Ricardo Marques - Remove uuv_hippocampus from uuv_hippocampus world (#455) bab4880 2020-04-08 JaeyoungLim - Remove boat from boat world (#454) 7cb466c 2020-04-07 JaeyoungLim - Remove rubble and uneven world a928906 2020-04-02 JaeyoungLim - Fix race condition in gimbal controller
icm20608g/icm20689: force FIFO count check sooner
The InvenSense icm20608g and icm20689 don't have a FIFO watermark interrupt, but they do have a data ready interrupt and the ability to get the current FIFO count in the same large transfer as the actual FIFO data. So instead of manually checking the FIFO count before every transfer (costs ~ 1-3% cpu) we trust the data ready counts, verify things are in sync after the large transfer (fifo count + fifo contents), and force a manual check before the next transfer if necessary. As a precaution this change lowers the threshold for forcing a manual FIFO count check before the large transfer. Forcing the check if out of sync by 2 (or more) samples makes sense because we always do transfers in multiples of 2 (gyro samples per accel). The other small cosmetic changes are keeping the icm20608g and icm20689 in sync (they're nearly identical).
sensors/vehicle_angular_velocity: check filter based on time threshol…
…d instead of samples - fixes #14303
px4_fmu-v5_stackcheck: update stack sizes and add to Jenkins
- increase stack sizes to run cleanly under stackcheck
- this is likely overkill for most boards, but using stackcheck to set our minimum ensures we have a very safe margin on regular builds and it's something we can currently afford
- remove holybro_durandal-v1_stackcheck from test rack (there's only one unit)Jenkins HIL remove px4_fmu-v4_optimized
- this was interesting to monitor, but slows down the entire build with only one pixracer on the test rack
tests: microbench uorb add sensor_gyro_fifo copy
- gives an idea of the cost of copying a large message
boards: px4/fmu-v4pro cleanup rc.board_sensors
- board has either an icm20602 or icm20608g, not both - probe all typical externally compasses
vtol: do not control deceleration during backtransition manual, acro …
…or stabilized Signed-off-by: RomanBapst <bapstroman@gmail.com>
fix param_translation: set address to 0 only on NuttX
On Linux it can be non-zero.
commander: add check for VTOL airfame on fmu-v2 (#14633)
* commander: add check for VTOL airfame on fmu-v2 This adds a preflight check when a VTOL airframe is configured on a fmu-v2 where VTOL is no longer included. * commander: address code review comments
boards: always change default IMU_GYRO_RATEMAX on px4_fmu-v2/v3 and m…
…ro_x21 - this can lower cpu usage considerably on older boards
boards: px4_io-v2 defconfig optimizations to save memory
* disable CONFIG_ARMV7M_MEMCPY to save flash * disable CONFIG_LIB_BOARDCTL * remove unnecessary pthread and task settings * reduce preallocated watchdogs * reduce console buffer size * reduce IDLE thread stack * reduce user main stack Co-Authored-By: David Sidrane <David.Sidrane@Nscdg.com>