Commit Graph

28101 Commits

Author SHA1 Message Date
Beat Küng 12f1c342d0 mavlink_main: do not use message_buffer if _ftp_on
if _ftp_on is true, message_buffer was created and read, but it was
actually never written to, so this is not needed. It can only ever be
written to if _forwarding_on is true.
2017-08-24 19:03:58 +02:00
Beat Küng ca24c8e2b6 printload: add a column for the number of used file descriptors
And the maximum number of configured file descriptors.

Note that this is per group, not per thread, so that e.g. logger and
log_writer_file show the same number.
2017-08-23 08:11:44 +02:00
Beat Küng bc30a808ab DriverFramework: update submodule to latest master 2017-08-23 08:10:16 +02:00
Beat Küng 5f5dca4804 vdev: replace static list with an std::map
VDev::getDev() is used in px4_access, which is used in orb_exists. And if
the topic does not exist, it iterates over all 500 indexes, which is slow.
It was slow even if the topic existed, the map reduces runtime from linear
to logarithmic (there are around 80 items in the container).
This is only used on posix.
2017-08-23 08:10:16 +02:00
Beat Küng 409a1ce7d7 param SITL_BAT_DRAIN: add @unit s 2017-08-23 08:10:16 +02:00
Beat Küng 575e7be540 fix linux_pwm_out: return correct value for PCA9685::init() 2017-08-23 08:10:16 +02:00
Beat Küng 7a409cf843 vdev: remove unneeded devList & topicList methods 2017-08-23 08:10:16 +02:00
Daniel Agar 47eb371c01 delete Tools/make_color.sh 2017-08-23 08:07:36 +02:00
Daniel Agar c8bc6f961f topic_listener move generator to same directory 2017-08-23 08:07:36 +02:00
Daniel Agar 9f15c572a3 astyle scripting move to Tools/astyle 2017-08-23 08:07:36 +02:00
Daniel Agar a02caff1bc unit_test inline implementation and remove module build 2017-08-23 08:06:55 +02:00
Daniel Agar f282f50cff vmount run at default priority 2017-08-23 08:06:20 +02:00
Daniel Agar 47987f7e36 delete dummy tone alarm 2017-08-23 08:05:48 +02:00
Daniel Agar fd6499baca cmake simplify uavcan linking 2017-08-23 08:05:13 +02:00
PeterDuerr fb7b33e755 Use updated micro-CDR with memory leak fix (#7838)
* Fixed memory leak (indicated by cppcheck) upstream
2017-08-22 10:50:00 -04:00
Dennis Mannhart e39b38ba96 landdetector groundcontact: adjust climbrate if landing speed is low 2017-08-21 20:38:07 +02:00
Vicente Monge a9b12cc8b4 Changed the default behavior for the client launching as a infinite loop 2017-08-21 16:48:37 +02:00
ChristophTobler a2cf87b3ab run px4flow for v4 pro 2017-08-21 16:47:59 +02:00
Daniel Agar 1e42d523da mavlink main return main loop delay proper size 2017-08-21 01:31:27 +02:00
Daniel Agar 4b97e15714 commander remove orb_exists telemetry check 2017-08-21 01:30:17 +02:00
Lorenz Meier 52ba62d6c4 Navigator: Pause and unpause camera triggering on entering and exiting a mission 2017-08-20 22:47:48 +02:00
Lorenz Meier 447c167d3e Navigator: Add on_inactivation() interface.
This allows to run a command / function once when being deactivated. This avoids having flight modes which are not active run unnecessary code all the time.
2017-08-20 22:47:48 +02:00
NRottmann 0f8f5d29be Enable Simulation of the Hippocampus (AUV from TUHH)
Adding files which enable a simulation with the autonomous underwater
vehicle (AUV) from the Technical University Hamburg-Harburg
2017-08-20 20:59:15 +02:00
Lorenz Meier e33a2b6c8d Simulator: Add missing parameter_update topic 2017-08-20 20:54:58 +02:00
Daniel Agar b620da8f01 BlockParam update() and commit() add returns 2017-08-20 20:42:42 +02:00
Daniel Agar 633102e7ca List and ListNode cleanup 2017-08-20 20:42:42 +02:00
Daniel Agar b70b8288b9 px4_includes cleanup incomplete list 2017-08-20 20:42:42 +02:00
Daniel Agar e63da5860e uORB cleanup Subscription/Publication c++ 2017-08-20 20:42:42 +02:00
Lorenz Meier 7223780563 Simulator: Make battery discharging configurable. 2017-08-20 20:37:31 +02:00
AndresRengifo 641f2f856b fix: battery prearm check ignored when CBRK_SUPPLY_CHK is disabled 2017-08-20 19:36:54 +02:00
davidaroyer 0761d220b1 cmake: fix conflict in ocpoc ubuntu config 2017-08-20 19:35:55 +02:00
Julien Lecoeur 41cc679258 PX4Flow: allow restart directly after stop 2017-08-20 19:31:24 +02:00
Julien Lecoeur 7a3a9a75d5 Add command line options to PX4Flow app for I2C address and sampling rate 2017-08-20 19:31:24 +02:00
crossa 17ba5dd04a 1.Add sbus driver for linux . This driver can be used to read the
inverted S.bus signal and fetch the data of each channel and publish it

2. Fix the bug of linux_pwm_out, when the protocol is pca9685,
after the init method is executed,the method of determining the return
value of init method is incorrect,this will cause the driver to fail

3. Add linux_sbus driver to other posix prefixes cmake files
2017-08-20 16:51:04 +01:00
Daniel Agar b2a81ed35b multi diff pres sensor publication and logging 2017-08-19 22:49:29 +02:00
Daniel Agar 8db2883d84 delete unused tones 2017-08-19 09:50:41 +02:00
Mark Charlebois 295ffdc1b6 Use specific vesions
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2017-08-19 09:42:50 +02:00
Mark Charlebois 326445ba83 Removed support for astyle 2.05.1
There are bugs in version 2.05.1 (default version in Ubuntu 16.04)

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2017-08-19 09:42:50 +02:00
José Roberto de Souza 4462869432 Add support to new fields in command_ack 2017-08-19 09:04:52 +02:00
José Roberto de Souza d640d1aaf1 submodules: sitl_gazebo: Update to newest version 2017-08-19 09:04:52 +02:00
José Roberto de Souza 5136ccc647 submodules: mavlink: Update to newest version 2017-08-19 09:04:52 +02:00
José Roberto de Souza b7c705e790 msg: Add missing value of MAV_RESULT 2017-08-19 09:04:52 +02:00
José Roberto de Souza c200d0e9a4 Keep initialization of outgoing vehicle_command_s consistent
All others are initialized this way.
2017-08-19 09:04:52 +02:00
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