Commits on Apr 9, 2020

  1. 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>
    Silvan authored and dagar committed Apr 9, 2020
  2. disable spinup tilt sequence if spinup tilt parameter is set to 0

    Signed-off-by: Silvan Fuhrer <silvan@auterion.com>
    sfuhrer authored and dagar committed Apr 9, 2020
  3. 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.
    DanielePettenuzzo authored and dagar committed Apr 9, 2020
  4. geofence: reposition to current location when violating geofence in h…

    …old mode
    
    This can only happen if the vehicle is executing a go to.
    DanielePettenuzzo authored and dagar committed Apr 9, 2020
  5. 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.
    DanielePettenuzzo authored and dagar committed Apr 9, 2020
  6. change RC action switch thresholds

    baumanta authored and MaEtUgR committed Apr 9, 2020
  7. px4/v5x: enable tx dma on telem2

    bkueng authored and LorenzMeier committed Apr 9, 2020
  8. px4/v{2,3}: enable tx dma on telem2

    bkueng authored and LorenzMeier committed Apr 9, 2020
  9. px4/v4: enable tx dma on telem2

    bkueng authored and LorenzMeier committed Apr 9, 2020
  10. uvify/core: enable tx dma on telem2

    bkueng authored and LorenzMeier committed Apr 9, 2020
  11. imu/invensense: minor cleanup

     - remove leftover Start()
     - remove "reset" from command line (stop + start is sufficient)
    dagar committed Apr 9, 2020
  12. mc_pos_control: correct sign of acceleration state

    Non-functional change, just change the sign in the correct place to
    avoid further confusion.
    MaEtUgR authored and bresch committed Apr 9, 2020
  13. 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
    dagar committed Apr 9, 2020
  14. 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>
    dagar and PX4BuildBot committed Apr 9, 2020

Commits on Apr 10, 2020

  1. workflows: file within docker not accessible

    Therefore, let's try with v2-preview.
    julianoes committed Apr 10, 2020
  2. 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.
    julianoes committed Apr 10, 2020
  3. 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
    PX4BuildBot authored and dagar committed Apr 10, 2020

Commits on Apr 11, 2020

  1. 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).
    dagar committed Apr 11, 2020
  2. boards: fmu was renamed pwm_out

    dagar committed Apr 11, 2020
  3. sensors/vehicle_angular_velocity: check filter based on time threshol…

    …d instead of samples
    
     - fixes #14303
    dagar committed Apr 11, 2020

Commits on Apr 12, 2020

  1. 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)
    dagar committed Apr 12, 2020

Commits on Apr 13, 2020

  1. 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
    dagar committed Apr 13, 2020
  2. tests: microbench uorb add sensor_gyro_fifo copy

     - gives an idea of the cost of copying a large message
    dagar committed Apr 13, 2020
  3. boards: px4/fmu-v4pro cleanup rc.board_sensors

     - board has either an icm20602 or icm20608g, not both
     - probe all typical externally compasses
    dagar committed Apr 13, 2020

Commits on Apr 14, 2020

  1. vtol: do not control deceleration during backtransition manual, acro …

    …or stabilized
    
    Signed-off-by: RomanBapst <bapstroman@gmail.com>
    RomanBapst authored and LorenzMeier committed Apr 14, 2020
  2. fix param_translation: set address to 0 only on NuttX

    On Linux it can be non-zero.
    bkueng authored and dagar committed Apr 14, 2020
  3. commander: fix preflight check spam

    julianoes authored and dagar committed Apr 14, 2020

Commits on Apr 15, 2020

  1. WIP: mavlink send hacks

    dagar authored and LorenzMeier committed Apr 15, 2020
  2. 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
    julianoes committed Apr 15, 2020

Commits on Apr 16, 2020

  1. 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
    dagar committed Apr 16, 2020
  2. 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>
    dagar and davids5 committed Apr 16, 2020