Commit Graph

32228 Commits

Author SHA1 Message Date
Daniel Agar 9ae2f0ea96 bmi160: cleanup 2020-04-15 23:33:41 -04:00
Daniel Agar 06478d9997 delete obsolete SENSORIOCSPOLLRATE/SENSORIOCRESET and systemcmds/config 2020-04-15 23:33:41 -04:00
Daniel Agar 6867947033 irlock: remove ioctl(), read(), and RingBuffer 2020-04-15 23:33:41 -04:00
Daniel Agar 47098f026a bma180: move to PX4Accelerometer and cleanup 2020-04-15 23:33:41 -04:00
Daniel Agar 9f7c3b9f06 sf1xx: move to PX4Rangerfinder and cleanup 2020-04-15 23:33:41 -04:00
Daniel Agar f51715c7ab lps22hb: move to PX4Barometer and cleanup 2020-04-15 23:33:41 -04:00
Daniel Agar 7c7ee115e3 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>
2020-04-15 23:17:44 -04:00
mcsauder 6548fde024 Whitespace cleanup to quiet new blank line at EOF git hook. 2020-04-15 23:00:39 -04:00
Daniel Agar 5634b68354 Jenkins: hardware print px4io status, pwm info for all outputs, pwm_out status 2020-04-15 22:48:24 -04:00
Daniel Agar 1ac6230758 boards: always change default IMU_GYRO_RATEMAX on px4_fmu-v2/v3 and mro_x21
- this can lower cpu usage considerably on older boards
2020-04-15 21:52:02 -04:00
Julian Oes d67ecc971c 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
2020-04-15 21:20:42 +02:00
Daniel Agar b761060c9b perf counters fix perf free and cleanup naming 2020-04-15 16:22:06 +02:00
Daniel Agar dc2254aa34 WIP: mavlink send hacks 2020-04-15 16:22:06 +02:00
baumanta 050d5de93b add home pos check into global pos check 2020-04-15 11:02:48 +02:00
baumanta 9710289f5f PreFlightCheck: check for RC action switches 2020-04-15 11:02:48 +02:00
Daniel Agar d5e0a52f3f Jenkins: increase history for remaining builds 2020-04-14 19:14:10 -04:00
Julian Oes e2b8fd7b11 commander: fix preflight check spam 2020-04-14 10:17:43 -04:00
Beat Küng 0c5fbf5954 fix param_translation: set address to 0 only on NuttX
On Linux it can be non-zero.
2020-04-14 10:16:01 -04:00
RomanBapst 338dd45022 vtol: do not control deceleration during backtransition manual, acro or stabilized
Signed-off-by: RomanBapst <bapstroman@gmail.com>
2020-04-14 11:25:09 +02:00
Daniel Agar 588195f46c boards: px4/fmu-v4pro cleanup rc.board_sensors
- board has either an icm20602 or icm20608g, not both
 - probe all typical externally compasses
2020-04-13 15:52:45 -04:00
Daniel Agar aad2856872 tests: microbench uorb add sensor_gyro_fifo copy
- gives an idea of the cost of copying a large message
2020-04-13 14:49:39 -04:00
Daniel Agar 6c1e9c60ed tests: microbenchmarks reduce iterations and sleep inbetween 2020-04-13 14:49:39 -04:00
Daniel Agar 60836eabd5 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
2020-04-13 13:48:28 -04:00
Daniel Agar 66eacd24bc 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)
2020-04-11 21:16:10 -04:00
Daniel Agar 7b4f6b6918 sensors/vehicle_angular_velocity: check filter based on time threshold instead of samples
- fixes #14303
2020-04-11 16:07:11 -04:00
Daniel Agar 276b2cad5a boards: fmu was renamed pwm_out 2020-04-11 14:18:55 -04:00
Daniel Agar 751b3497a0 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).
2020-04-11 12:17:40 -04:00
PX4 BuildBot 3a2c4094be Update submodule sitl_gazebo to latest Fri Apr 10 12:39:18 UTC 2020
- sitl_gazebo in PX4/Firmware (ed0c25a562): https://github.com/PX4/sitl_gazebo/commit/e4f6bff206922d8ab85c68ece20c223812979560
    - sitl_gazebo current upstream: https://github.com/PX4/sitl_gazebo/commit/2f83192e70a590e4af87535b605f7aaa806a52f5
    - Changes: https://github.com/PX4/sitl_gazebo/compare/e4f6bff206922d8ab85c68ece20c223812979560...2f83192e70a590e4af87535b605f7aaa806a52f5

    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
2020-04-10 13:06:01 -04:00
Daniel Agar 322671ea27 mc_pos_control: align updates with ekf2 2020-04-10 13:04:06 -04:00
Julian Oes 474c3c45f0 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.
2020-04-10 14:55:18 +02:00
Julian Oes dc95b4487c workflows: file within docker not accessible
Therefore, let's try with v2-preview.
2020-04-10 14:55:18 +02:00
Julian Oes 4aebf9f02c workflows: upload can't access outside of docker 2020-04-10 14:55:18 +02:00
Julian Oes 14a111f5bd workflows: upload px4 coredump and binary 2020-04-10 14:55:18 +02:00
Julian Oes cc0b834d15 mavsdk_tests: don't fail if DISPLAY is not set 2020-04-10 14:55:18 +02:00
Julian Oes 28ec3744a6 workflows: add core dumps and backtrace to CI 2020-04-10 14:55:18 +02:00
Daniel Agar ed0c25a562 Update submodule mavlink v2.0 to latest Thu Apr 9 20:22:33 UTC 2020
- mavlink v2.0 in PX4/Firmware (bad9b64ca281d2e8c0863738263c75888da63e38): https://github.com/mavlink/c_library_v2/commit/4b493591c4c8125c3592d406197b3b0efbe311af
    - mavlink v2.0 current upstream: https://github.com/mavlink/c_library_v2/commit/0f9e4218df24b9fa0e922307cad68e2d0e18f286
    - Changes: https://github.com/mavlink/c_library_v2/compare/4b493591c4c8125c3592d406197b3b0efbe311af...0f9e4218df24b9fa0e922307cad68e2d0e18f286

    0f9e4218 2020-04-09 PX4BuildBot - autogenerated headers for rev https://github.com/mavlink/mavlink/tree/d3d37b6ebc02ff434279864a7e146b5cd365a083

Co-authored-by: PX4 BuildBot <bot@px4.io>
2020-04-09 17:19:14 -04:00
Daniel Agar b64a5783bb Update submodule NuttX-apps to latest Thu Apr 9 20:22:38 UTC 2020
- NuttX-apps in PX4/Firmware (cf2b0a47ce64ea50e9539689b1b704cd536b9558): https://github.com/PX4/NuttX-apps/commit/91b6ad6a0d00ac107088b18588cd54d40e3cb796
    - NuttX-apps current upstream: https://github.com/PX4/NuttX-apps/commit/95e105548a2037f42bf2f13b214ae083b921ff03
    - Changes: https://github.com/PX4/NuttX-apps/compare/91b6ad6a0d00ac107088b18588cd54d40e3cb796...95e105548a2037f42bf2f13b214ae083b921ff03

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
2020-04-09 17:18:33 -04:00
Daniel Agar 55fc0cbdc7 boards/px4/fmu-v4: fix internal hmc5883 start 2020-04-09 15:54:10 -04:00
Matthias Grob 38093e4887 mc_pos_control: correct sign of acceleration state
Non-functional change, just change the sign in the correct place to
avoid further confusion.
2020-04-09 17:15:46 +02:00
Daniel Agar 74e99faedf imu/invensense: minor cleanup
- remove leftover Start()
 - remove "reset" from command line (stop + start is sufficient)
2020-04-09 09:47:30 -04:00
Beat Küng 8338f4e543 uvify/core: enable tx dma on telem2 2020-04-09 14:59:28 +02:00
Beat Küng 31937c280d px4/v4: enable tx dma on telem2 2020-04-09 14:59:28 +02:00
Beat Küng cbed023334 px4/v{2,3}: enable tx dma on telem2 2020-04-09 14:59:28 +02:00
Beat Küng 68e1172bb5 px4/v5x: enable tx dma on telem2 2020-04-09 14:59:28 +02:00
baumanta 8b89cfc498 change RC action switch thresholds 2020-04-09 14:41:09 +02:00
Hamish Willee 0a2c48c69a airframe markdown script: Improve header text. 2020-04-09 08:21:25 +02:00
daniele 38e635e386 navigator_main: allow altitude change when the current lat and lon are 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.
2020-04-08 21:16:31 -04:00
daniele 6ea60b5165 geofence: reposition to current location when violating geofence in hold mode
This can only happen if the vehicle is executing a go to.
2020-04-08 21:16:31 -04:00
daniele d53dccc319 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.
2020-04-08 21:16:31 -04:00
daniele 6b97361c92 add dummy if statement to avoid messing up the pr review 2020-04-08 21:16:31 -04:00