Commit Graph
47063 Commits
Author SHA1 Message Date
David Sidrane 79f49fd851 bugfix:px4fmu-v5 (STM32F7) random sd write failures
This is a back port of upstream NuttX PX4 contrib of

   ef42c25 stm32f7:SDMMC add dcache alignment check in dma{recv|send}setup
                   In the where CONFIG_SDIO_PREFLIGHT is not used and dcache
                   write-buffed mode is used (not write-through) buffer alignment
                   is required for DMA transfers because a) arch_invalidate_dcache
                   could lose buffered writes data and b) arch_flush_dcache could
                   corrupt adjacent memory if the buffer and the bufflen, are not on
                   ARMV7M_DCACHE_LINESIZE boundaries.

   1e7ddfe  stm32f7:SDMMC remove widebus limitation on DMA
                    There is no documantation for the STM32F7 that limits DMA on
                    1 bit vrs 4 bit mode.

   dffab2f  stm32f7:DMA add dcache alignment check in stm32_dmacapable
                    In the case dcache write-buffed mode is used (not write-through)
                    buffer alignment is required for DMA transfers because
                    a) arch_invalidate_dcache could lose buffered writes data and
                    b) arch_flush_dcache could corrupt adjacent memory if the
                    maddr and the mend+1, the next next address are not on
                    ARMV7M_DCACHE_LINESIZE boundaries.

   38cbf1f  stm32f7:DMA correct comments and document stm32_dmacapable
            Updated comment to proper refernce manual for STM32F7 not STM32F4.
            Added stm32_dmacapable input paramaters documentation.
2017-08-18 09:21:55 +02:00
Beat Küng 236021cc01 vmount mavlink input: fix polling for position_setpoint_triplet
The code was violating the rule 'every successfull poll must be followed
by an orb_copy'.
The result was a busy loop.
2017-08-17 07:47:48 +02:00
bresch 25bbe76530 FW att ctrl - Fix vehicle_attitude_setpoint timestamp logging when in stabilized (#7803) 2017-08-16 20:38:19 -04:00
CAI Dongcai 63306ada92 FW attitude and position control minor code cleanup (#7802)
- change a little bit to make the code more readable
2017-08-16 10:51:41 -04:00
Beat Küng 83643a719a nuttx config: increase CONFIG_NFILE_DESCRIPTORS from 53 to 54
This is needed when logger is logging to file and ulog streaming gets
activated.
2017-08-16 16:46:56 +02:00
Beat Küng ebafa5698d log_writer_file: register hardfault handler before opening the log file
hardfault_store_filename() opens and closes a file descriptor, so if we do
it before opening the log file, we need one file descriptor less
2017-08-16 16:46:56 +02:00
Beat Küng 9e01842c6a mavlink ulog: advertise ulog_stream topic before subscribing to ulog_stream_ack
This reduces the maximum number of needed file descriptors by 1 when using
ulog streaming.
2017-08-16 16:46:56 +02:00
Julian Oes ba150566c6 mavlink_command_sender: add some log printfs
This improves the printfs which will be logged. This should improve to
debug the camera triggering. The debug printfs are disabled by default.
2017-08-16 09:47:50 +02:00
Julian Oes 31edab6d6d mavlink_command_sender: remove unused include 2017-08-16 09:47:50 +02:00
sanderux 33e67fd527 Disable PA during landing 2017-08-16 08:19:06 +02:00
sanderux e6c942033b Disable pusher assist when descending 2017-08-16 08:19:06 +02:00
sanderux 8f5293d7b0 Remove explicit pusher throttle setting 2017-08-16 08:19:06 +02:00
sanderux 33efd89ef8 Disable pusher assist for quadchute failsafe 2017-08-16 08:19:06 +02:00
sanderux 66bb7adc4c simplify back transition throttle scaling 2017-08-16 03:06:13 +02:00
sanderux 6b9a8daceb Correctly name b_trans_thr and remove contraint 2017-08-16 03:06:13 +02:00
sanderux ff669ee645 Move vtol standard params 2017-08-16 03:06:13 +02:00
sanderux 7a8d3c4ab2 Correctly check reverse thrust conditions 2017-08-16 03:06:13 +02:00
sanderux 4396e78d12 Allow negative thrust on reverse throttle 2017-08-16 03:06:13 +02:00
sanderux 01d9212a29 Widen pusher throttle constraint 2017-08-16 03:06:13 +02:00
sanderux e5a55cd142 Support negative thrust for back transition 2017-08-16 03:06:13 +02:00
sanderux 59d81ee0f1 Clarify parameters 2017-08-16 03:06:13 +02:00
sanderux fbbe3d1f41 Check velocity valid and param description 2017-08-16 03:06:13 +02:00
sanderux 50894e8615 VTOL control back transition ramp up time 2017-08-16 03:06:13 +02:00
sanderux 560e9e88dc Apply slew rate to reverse thrust 2017-08-16 03:06:13 +02:00
sanderux e9516db5b0 Back transition duration based on deceleration m/s/s 2017-08-16 03:06:13 +02:00
sanderux 2e481867e5 Consider back transtition complete when MPC_XY_CRUISE is reached 2017-08-16 03:06:13 +02:00
sanderux 1a0c23d8b3 Support thrust reversal for vtol back transition 2017-08-16 03:06:13 +02:00
Dennis Mannhart f50052f290 landdetector mc: widen acceptance threshold after landing instead of arming 2017-08-15 10:30:29 +02:00
Daniel Agar 3c26c11144 circleci force git to use git:// 2017-08-14 17:03:06 -04:00
Daniel Agar a3645b1ed1 travis-ci force git to use git:// 2017-08-14 17:03:06 -04:00
Peter Dürr 305a95aef9 Integrate Python-based tests and benchmark into Travis
* Unfortunately, due to the SWIG dependency, we need sudo to install on
  Travis (conflicts when adding with debian-sid source prevent using addons)
  which means we cannot use the container-based infrastructure anymore.
* Building the Python bindings requires g++5 (at least with -Werr set).
* When building the Python bindings on Travis, the numpy includes are not found
  by cmake, so they have to be added separately by running a Python process with
  `numpy.get_include()`
* The build script now (somewhat clumsily) depends on the RUN_PYTEST environment
  variable. If it is set to anything other than "", it will make the tests and
  run tests and benchmarks
2017-08-14 12:02:03 +02:00
Peter Dürr 15c8c24418 Fix time units on plots
* Time in plots was of by a factor of 1e3 due to wrong conversion from us.
2017-08-14 12:02:03 +02:00
Peter Dürr b29067a188 Better handle Python dependencies
* Add requirements.txt file with required Python packages
* Read requirements.txt from CMakeLists.txt to check dependencies and alert the
  user if necessary.
2017-08-14 12:02:03 +02:00
Peter Dürr bb5719a0da Add Python wrapper to ecl and use it to test functionality
* Add SWIG interface definition (and external numpy interface) to ecl classes
* Add section in CMakeLists.txt to build Python bindings and execute
  Python-based tests
* Write (property-based) tests that show the basic functionality of the Python
  bindings and the EKF (using pytest and hypothesis libraries)
* Write minimal benchmark for the EKF update (using benchmark plugin for pytest)
* Add plotting utilities to analyze tests
* Add lint script to keep the Python scripts clean
2017-08-14 12:02:03 +02:00
Peter Dürr 5988900044 Add getters for a few private variables of the EstimatorInterface
* For testing it is useful to have access to more internal states
* For the same reason I also promote the const FILTER_UPDATE_PERIOD_MS to
  public
2017-08-14 12:02:03 +02:00
Peter Dürr a2ed0a76f9 Make the destructor of EstimatorInterface virtual
* This is a sane choice (and should arguably always be done for classes with
  virtual methods to avoid undefined behavior)
* It is required for wrapping the EstimatorInterface with SWIG (without virtual
  destructor, deriving from the EstimatorInterface leads to
  -Werror=delete-non-virtual-dtor).
2017-08-14 12:02:03 +02:00
Lorenz Meier 891b2f640d TAPv1: Schedule sensor priority higher 2017-08-13 11:40:54 +02:00
Lorenz Meier 00b65f38aa FMUv5: Schedule work queue with higher priority 2017-08-13 11:40:54 +02:00
Lorenz Meier c2341ad7f6 FMUv4PRO: Schedule work queue with higher priority 2017-08-13 11:40:54 +02:00
Lorenz Meier 6f5499af7d FMUv4: Schedule work queue with higher priority 2017-08-13 11:40:54 +02:00
Lorenz Meier c6f9cd84d0 FMUv4: Schedule work queue with higher priority 2017-08-13 11:40:54 +02:00
Lorenz Meier b2572a5795 FMUv2: Schedule work queue with higher priority 2017-08-13 11:40:54 +02:00
Lorenz Meier fa482b4ebd Racing boards: Default FMU to task as there is plenty of RAM to do this. 2017-08-13 11:39:44 +02:00
Lorenz Meier 9af9475541 RTPS: Ignore example processes 2017-08-13 11:39:00 +02:00
Lorenz Meier 23c790650a FMUv5: Enable DDS 2017-08-13 11:38:14 +02:00
Lorenz Meier 0e661e5a84 FMUv4PRO: Enable DDS 2017-08-13 11:38:00 +02:00
Lorenz Meier 2adb9e8c4f FMUv4: config style 2017-08-13 11:37:34 +02:00
Lorenz Meier fa123db5c3 FMUv3: Enable DDS 2017-08-13 11:37:15 +02:00
Lorenz Meier 9e312e8dba Uploader: Do not show timeout for larger binaries when everything is still as expected. 2017-08-13 11:36:12 +02:00
Paul Riseborough 9cf0948bcf matlab: add derivation for air data error equations 2017-08-12 20:59:41 +10:00