Commit Graph

1799 Commits

Author SHA1 Message Date
mcsauder e12acc4b28 Migrate hardware specific mavlink stream cases to rc.mavlink. 2018-07-12 08:10:59 +02:00
mcsauder 8b71bb4562 Breakout rc.mavlink from rcS script. 2018-07-11 09:38:58 +02:00
mcsauder 9386ab6afe Breakout rc.thermal_cal from rcS and group set/unset parameters at the beginning and end of the rcS script. Revert commit 2a3d66cf45 to reduce px4fmu-v2_default flash size. Standardize tabs/whitespaces across all files in the init.d directory. 2018-07-10 08:59:38 -04:00
Beat Küng 58c8c50174 frsky_telemetry: add scanning timeout parameter, and set it to 15s
This frees unused RAM in case frsky telemetry is not connected.
2018-07-08 23:24:17 +02:00
Daniel Agar 00c34d8a2b AV-X board support 2018-07-08 10:18:13 -04:00
DanielePettenuzzo e15d390f65 rc.sensors: fix 2018-07-03 17:33:18 +02:00
DanielePettenuzzo 0cc5a41bb8 rc.sensors: start all i2c distance sensor with -a flag 2018-07-03 17:33:18 +02:00
Roman e1117d175b ROMFS: updated deltaquad autoconfig params
Signed-off-by: Roman <bapstroman@gmail.com>
2018-07-03 08:53:30 +02:00
Hamish Willee 7402d8223b Fix up references to pixhawk.org 2018-07-02 13:11:15 +02:00
Roman 863cd52714 ROMFS: fixed some naming inconsistencies for the HITL VTOL model
Signed-off-by: Roman <bapstroman@gmail.com>
2018-07-02 13:09:35 +02:00
Roman 220068acb6 ROMFS: use more appropriate autostart ID for standard vtol hitl
Signed-off-by: Roman <bapstroman@gmail.com>
2018-07-02 13:09:35 +02:00
Roman d70e90f174 ROMFS: remove unnecessary params from hitl vtol config
Signed-off-by: Roman <bapstroman@gmail.com>
2018-07-02 13:09:35 +02:00
Roman b37ff23708 ROMFS: indicate that the hitl vtol config is for the gazebo standard vtol model
Signed-off-by: Roman <bapstroman@gmail.com>
2018-07-02 13:09:35 +02:00
Roman 1dea998be5 ROMFS: clean up quad x tailsitter mixer files
- use mixer for the simulation to the sitl mixer dir
- do not use virtual elevator in the mixer for the real vehicle

Signed-off-by: Roman <bapstroman@gmail.com>
2018-07-02 13:09:35 +02:00
Roman 484a939779 added MAV_TYPE to standard vtol hitl config
Signed-off-by: Roman <bapstroman@gmail.com>
2018-07-02 13:09:35 +02:00
Roman 9546daadea ROMFS: added autostart and mixer file for standard vtol in hitl
Signed-off-by: Roman <bapstroman@gmail.com>
2018-07-02 13:09:35 +02:00
Mark Sauder d3c169b1e0 Fix whitespaces in PreflightCheck.cpp, tilt_quad.aux.mix, and tilt_quad.main.mix 2018-06-28 20:20:32 -04:00
DanielePettenuzzo 82b3e57abb rc.sensors: look for airspeed sensors on all busses 2018-06-21 07:37:53 +02:00
Philipp Oettershagen 7a82c777b2 LandDetector FW: Fix param min/max values and descriptions as well as some variable names which were wrong/outdated (#9708) 2018-06-20 16:13:33 -04:00
Ricardo Marques bf0a1f05fb Tilt-Quadrotor Mixer and Airframe files (#9496) 2018-06-20 10:35:05 -04:00
Beat Küng a76c82f5f2 airframes: update 4050 generic 250 racer defaults
- P and D gains are too high for a racer
- default I gain is too low (0.25 is still quite low)
- use the thrust curve param instead of TPA
- improve responsiveness in Manual & increase max tilt angle to 60 degrees
- enable one-shot
- enable high-rate logging profile
- disable RC filter
2018-06-09 17:00:35 +02:00
Beat Küng f8dd833a14 onmibus-f4sd: add ADC support 2018-05-31 19:13:00 +02:00
Beat Küng 77cea8844f ROMFS: fix SYS_USE_IO==0
When SYS_USE_IO was disabled, px4io would not start and thus there was no
RC. SYS_USE_IO=0 is interesting on Quads to avoid the IO and reduce output
latency.

Tested on Pixhawk 1 and Pixhawk 4
2018-05-28 19:03:33 +02:00
Beat Küng c9d179676e simple mixer: make output scalers O: optional and use default values instead
Reduces FLASH usage by about 4KB

Command to replace:
for i in *.mix; do sed -r -i '/O: +10000 +10000 +0 +-10000 +10000/d' $i; done
2018-05-25 07:57:08 +02:00
DanielePettenuzzo 28f616b1c1 crazyflie: updated default params in config file 2018-05-23 18:32:36 +02:00
Daniel Agar f208241074 SYS_COMPANION add RTPS client option 2018-05-22 20:37:37 -04:00
barzanisar 36131179d3 adding airframe config for s500 (#9342) 2018-05-22 18:39:28 -04:00
DanielePettenuzzo 22868dd5a4 crazyflie: add downsampling to pwm3901 optflow driver 2018-05-22 12:21:45 +02:00
DanielePettenuzzo f49fd2acc7 crazyflie: increase imu reading rate 2018-05-22 12:21:45 +02:00
DanielePettenuzzo b822966e8e crazyflie: support for sd card board via SPI 2018-05-22 12:21:45 +02:00
DanielePettenuzzo 56acce4491 rcS: start vl53lxx and pmw3901 drivers 2018-05-22 12:21:45 +02:00
Beat Küng 527070bb35 rcS: update default params for Omnibus F4 SD 2018-05-20 11:54:17 +02:00
nathan f754d092f8 Initial omnibusf4sd target support
Flight tested: ekf2 w/ mag and compass by @nathantsoi: https://logs.px4.io/plot_app?log=79b81031-cf1e-41f0-890b-d6cd7d559766

NOTE: external I2C devices need a pullup. I have tested with a 3.3v 2.2k pullup.

Working:
 - mpu6000, bench tested and verified via nsh
 - fmu
 - all 6 ch output bench tested w/ pwm and oneshot via nsh
 - ppm input bench tested
 - dsm input bench tested
 - bmp280, bench tested and verified via nsh
 - hmc5883, bench tested and verified via nsh, but requires an external i2c pullup
 - gps on uart6
 - startuplog, nsh, mavlink on uart4, but params are not sent for some reason. RSSI pin is TX, MOTOR 5 is RX (normal mode, 57600 baud)
 - rgbled over i2c, bench tested and workingp
 - sbus via the shared sbus/ppm pin (which includes an inverter to the mcu SBUS in pin), remove the solder bridge or jumper to the ppm pin before use

Not yet implemented:
  - ADC
  - OSD: passthrough video is untested, use at your own risk until a basic driver is implemented.
2018-05-20 11:54:17 +02:00
Beat Küng 873e036e85 px_romfs_pruner: reduce multiple consecutive spaces into a single space for mixers (#9457)
Reduces FLASH usage by about 3kb.

Plus add a missing cmake dependency.
2018-05-14 14:05:29 -04:00
Daniel Agar f131409bce FW defaults set commander eph, epv, evh thresholds 2018-04-24 00:02:48 -04:00
Beat Küng 64aab8a685 rcS: do not reset COM_FLTMODE* on airframe change
An airframe change keeps all RC params except the flight modes. This fixes
that.
2018-04-17 14:17:20 +02:00
Daniel Agar 95f17d5669 px4fmu_test update mixers 2018-04-09 02:23:26 -04:00
Daniel Agar 3b64325ff8 update px4fmu_test and add px4fmu-v2_test to Jenkins 2018-04-07 22:32:53 -04:00
DanielePettenuzzo 1b7fd5eae7 rcS: initialize TELEM4 on ttyS3 on FMUv5 2018-04-04 12:08:34 +02:00
Phillip Kocmoud c3b64f6d2a Corrected rotation for internal SPI LIS3MDL Sensor on R15 Pixracer 2018-03-28 13:47:22 -04:00
ksschwabe 500a1c808d ROMFS list files explicitly instead of using GLOB_RECURSE (#9107)
* Lists ROMFS files explicity instead of using GLOB_RECURSE

Previously, when ROMFS files that were not airframes were touched, the ROMFS
would not be rebuilt. The ROMFS files are now specified explicityl in a
CMakeLists.txt file that is located in the root ROMFS directory.

Now when one of the ROMFS files is touched the whole ROMFS is rebuilt.

When new files are added to the ROMFS, they need to be explicity added to
the CMakeLists in the ROMFS root directory.

* ROMFS: adds individual CMakeLists files in each subdirectory

Also moves the temporary ROMFS build directory to ${PX4_BINARY_DIR}/ROMFS/genromfs
so that the cmake_install.cmake files and the CMakeFiles directories (generated whenever
are not add_subdirectory() is called) are not generated in the temporary ROMFS directory
from which the ROMFS binary is created.

* cmake ROMFS generate add px4_add_romfs_files function

* ROMFS CMakeLists: adds explanatory comment to px4_add_romfs_files function

* ROMFS CMakeLists: updates copyright headers
2018-03-26 11:19:00 -04:00
Martin Trgina 01f5f8862a Support of HITL simulation for Intel Aero FC (#9132)
* Adding pwm_out_sim
* pwm_out_sim driver will be by default part of Aero FC PX4 Nuttx drivers
* tap_esc is off when SYS_HITL 1
2018-03-22 16:47:58 -04:00
Daniel Agar fd0f31ef50 FW Phantom FPV Flying Wing fix FW_R_RMAX 0 2018-03-21 18:34:52 -04:00
Roman e504dc86b7 fw & vtol startup scripts: don't start wind estimator for now
- need to make some flash space for fmuv2 to avoid user confusion about
why it wind estimator only runs on some platforms

Signed-off-by: Roman <bapstroman@gmail.com>
2018-03-21 18:46:58 +01:00
Roman df3a3daa0f start wind estimator for relevant platforms
Signed-off-by: Roman <bapstroman@gmail.com>
2018-03-21 18:46:58 +01:00
Roman cb30d66cef convergence config: increase multirotor idle speed
- increase the minimum pwm value for multirotor mode since we experienced
the rear motor stalling in certain situations when throttle was low

Signed-off-by: Roman <bapstroman@gmail.com>
2018-03-20 21:00:34 -04:00
Kabir Mohammed 7776789b7d rc.sensors : fix startup for lidars on Pixhawk boards (#9058) 2018-03-15 13:26:35 -04:00
Matthias Grob 6317d36ec9 mc_att_control: remove time constant parameter
Because the parameter does not make sense from a control theory
perspective. Either you have a gain with the unit 1/s or an inverse
gain or time constant with the unit s. But the time constant parameter
was neither bound to any exact unit nor did it apply instead of a gain.
Rather it adjusted multiple gains from rate and attitude control
according to an arbitrary scale. This can only by accident lead to
good tuning.
2018-03-15 17:16:14 +01:00
Beat Küng 06df2fcb65 rc.interface: disable AUX mixer on NXPHLITE_V3 2018-03-12 11:56:59 +01:00
Daniel Agar 5335778f6e nxphlite start correct sensors and disable debug 2018-03-11 18:19:12 -05:00
Mohammed Kabir f95f4c5f09 UAVCAN : Correct startup sequence and improve parameter description 2018-03-10 23:09:19 -05:00
Roman 4859cc04dc ROMFS: updated VT_TRANS_THR parameter name change
Signed-off-by: Roman <bapstroman@gmail.com>
2018-03-07 14:01:51 +01:00
Daniel Agar 6f47894929 rc.sensors ms5611 driver auto detect ms5607/ms5611 2018-03-06 13:47:37 +01:00
Roman bf097d7fa4 convergence config: increase idle speed in mc mode
- this makes sure that all motors are idling in mc mode. having this too
low can lead to a motor stopping in flight which is critical for
attitude control
- experienced loss of attitude control in RTL during descent prior to this
change

Signed-off-by: Roman <bapstroman@gmail.com>
2018-03-05 15:48:13 -05:00
Daniel Agar 5ef27c5425
mavlink add minimal mode (#8947) 2018-03-04 17:50:28 -05:00
Daniel Agar 38f5f60a1e pwm_out_sim cleanup
- move to ModuleBase
 - strip down to PWM 8 and 16 modes only
 - remove all dead code
 - implement missing pwm ioctls (current value, rates, etc)
 - default rate 50Hz -> 400Hz
2018-03-04 14:12:15 -05:00
Roman ff86d15c13 caipirinha vtol: do not lock elevons in hover mode
Signed-off-by: Roman <bapstroman@gmail.com>
2018-03-01 22:07:36 +01:00
Roman 86c472d8ff ROMFS sitl: added a mixer for the gazebo quad tiltrotor model
Signed-off-by: Roman <bapstroman@gmail.com>
2018-02-22 15:10:22 -05:00
Daniel Agar 4aeb70fcfe rcS move logger startup to rc.logging and end of init
- fixes #8903
2018-02-17 18:09:50 +01:00
Beat Küng 37a082255a rc.interface: enable aux mixer for FMU-v5 2018-02-16 07:58:40 +01:00
Roman 8ec1fb9999 ROMFS: added mixer for tailsitter simulation
- simulated tailsitter needs a virtual elevator since we cannot simulate
elevons yet (liftDrag plugin does not model longitudinal moment Cm)

Signed-off-by: Roman <bapstroman@gmail.com>
2018-02-13 20:47:40 -05:00
acfloria 6be5a0aacc Add AERT mixer 2018-02-13 20:45:19 -05:00
Phillip Kocmoud 4d0964385b Update rc.sensors : mRo X2.1 to enable the LIS3MDL
This change allows the LIS3MDL based GPS magnetometers to autostart on the mRo x2.1.
2018-02-12 21:33:39 -05:00
Daniel Agar f7a17ad5e5
cmake improve ROMFS dependencies for px4io inclusion (#8860)
- fixes #8858
2018-02-09 12:57:34 -05:00
Daniel Agar c7dfd2d17f ROMFS fix LeddarOne nsh init 2018-02-08 19:58:42 -05:00
Beat Küng 4772a25b77 rcS: add clarifying comment for Pixhawk 3 Pro UART port 2018-02-08 14:48:49 +01:00
Haukanes 35acdfa717 Start frsky_telemetry for PX4FMU_V4PRO 2018-02-08 14:46:55 +01:00
José Roberto de Souza 10df6729f3 ROMFS: aerofc: Do not start MAVLink in telemetry if LeddarOne is in use 2018-02-08 11:26:26 +01:00
José Roberto de Souza d0baf95df3 drivers: Add LeddarOne lidar driver
More information: https://leddartech.com/modules/leddarone/
2018-02-08 11:26:26 +01:00
ChristophTobler acaf7cd267 rcS: automate tfmini start
disable mavlink on aero telemetry if tfmini enabled and start on mavlink companion device for others (needs SYS_COMPANION to be 0)
2018-01-31 11:36:06 +01:00
Simone Guscetti 402ad9f48f rcS: partially change rcS to start the modified tone driver
- Start tone_alrm driver after uorb
- Replace tone_alarm $TUNE_ERR with tune_control play -m ${TUNE_ERR}
- TUNE_ERR is a string
2018-01-29 09:45:59 -05:00
ChristophTobler f294445cd0 rc.sensors: start tfmini with appropriate device path for FMUv3 2018-01-27 14:13:28 +01:00
ChristophTobler a63fce86d4 rcs: mention wifi mapping on v4 2018-01-27 00:41:44 +01:00
ChristophTobler 5cfe0e9a0f rcS: update comment on mavlink for FMUv4
Comment was a contradiction
2018-01-27 00:41:44 +01:00
Julien Lecoeur 0e65753568 Iris: set mixer to quad_wide
The geometry was previously quad_deadcat in which front motors are closer to CG and thus more loaded in hover.
quad_wide is the same geometry as quad_deadcat except the CG is centered so all motors are loaded equally.
Flight logs on IRIS with deadcat mixer showed that
- all motors are equally loaded during hover (actuator_outputs 0 to 3 have similar values)
- a negative pitch offset is building up soon after takeoff (visible in actuator_controls)
2018-01-16 16:09:15 +01:00
Beat Küng 5fe203a510 rcS: cleanup defaults for SYS_FMU_TASK & FMUv5 params
- SYS_FMU_TASK is now enabled for PX4FMU_V4 PX4FMU_V4PRO PX4FMU_V5, but
  it's only set on autoconf
- v5 companion is now TELEM2 (same as all other boards)
2018-01-10 07:59:32 +01:00
Beat Küng 48a6a98071 rcS: merge 'ver hwcmp' for different boards, add V5 to px4flow 2018-01-10 07:59:32 +01:00
Beat Küng 92a667fca5 rc.sensors: document sensors for NXPhlite 2018-01-10 07:59:32 +01:00
Beat Küng a56d2ab981 rc.interface: merge 'ver hwcmp' for different boards 2018-01-10 07:59:32 +01:00
Daniel Agar 992db1f415 delete snapdragon_rc_pwm and passthrough config 2018-01-08 03:07:10 -05:00
Lorenz Meier 50bd148f53 Aero: Update maintainer 2018-01-06 12:19:31 +01:00
Lorenz Meier ea545f2813 ROMFS: Exclude FMUv2 in Stampede 2018-01-06 11:35:53 +01:00
Lorenz Meier 6213b2266b ROMFS: Exclude FMUv2 in Axial Racing 2018-01-06 11:35:53 +01:00
Lorenz Meier f79c3bb5ea ROMFS: Exclude FMUv2 in ground vehicle 2018-01-06 11:35:53 +01:00
Lorenz Meier 25141ce184 ROMFS: Exclude FMUv2 in obscure airframe 2018-01-06 11:35:53 +01:00
Lorenz Meier 1930cc2fbe ROMFS: Exclude FMUv2 in VTOL 2018-01-06 11:35:53 +01:00
Lorenz Meier 90e7ce1b96 ROMFS: Remove reference to non-existent board 2018-01-06 11:35:53 +01:00
Lorenz Meier 1cfb441527 ROMFS: Reduce verbosity level 2018-01-06 11:35:53 +01:00
Lorenz Meier 59f56f4a5b Add support for Pixhack detection
This allows to boot a Pixhack 3.0 which is the same as Pixhawk 2.0 / 2.1
2018-01-06 11:35:53 +01:00
Lorenz Meier 31ab496f31 ROMFS: Free additional space 2018-01-05 23:03:02 +01:00
Lorenz Meier dd5524da3d Make boot slightly less verbose 2018-01-05 22:45:12 +01:00
Lorenz Meier 49bed47924 Add TFMini to autostart 2018-01-01 17:38:41 +01:00
Lorenz Meier fa8222e188 Logger: Free some RAM to leave space for mag calibration 2017-12-30 11:24:03 +01:00
Daniel Agar 28d1ec8afe
VTOL defaults set MIS_TAKEOFF_ALT 20 and remove tuning (#8481) 2017-12-17 00:58:23 -05:00
Sander Smeets 423241e7e2 Add forwarding on telem2 normal telemetry option (#8434) 2017-12-09 19:45:47 -05:00
Beat Küng c4ee5c318f px4fmu-v5: make sure the internal ist8310 is detected as internal mag 2017-12-07 17:17:17 +00:00
Avinash Reddy Palleti b1a16840c7 Fix typo error in micrortps_client module
Fixed the typo error in micrortps_client which was causing issue to update
baudrate and other options.
2017-12-01 12:56:45 +01:00
Daniel Agar d6a609c552 FW enable EKF2 synthetic sideslip fusion by default 2017-11-25 21:01:00 -05:00
Avinash Reddy Palleti 456227f39e Add RTPS cmake config for AeroFC
Adding a seperate cmake config to support RTPS messaging on AeroFC. This will
include compiling protocol_splitter and micrortps_client, and starting both
of them at boot time.
2017-11-21 16:51:46 +01:00
sanderux a07a2ebd73 Better scaling for reverse mixer 2017-11-18 13:51:46 +01:00
Beat Küng aa92ef3ca6 airframe 4040_reaper: fix type to quad h 2017-10-19 07:45:40 +02:00
Khoi Tran 1594c80bf4 Add icm20602 to auav-x21 sensors startup 2017-10-15 15:33:25 +02:00
acfloria 5f165e8b3e Add the flaperons again to the AAERTWF mixer 2017-10-12 12:03:22 +02:00
Beat Küng 553c8b38d2 rcS: start mavlink in normal mode on Pixracer for the WiFi module
The config mode uses high rates for many streams, leading to high CPU usage
(9-10% for the mavlink sender). The normal mode contains almost the same
set of messages but at lower rates.
This reduces the CPU load on a Pixracer by 3-4%.
2017-10-11 11:55:59 +02:00
Julian Oes 7229ec2a37 Move throttle check from land detector to posctrl
This commit is an attempt to fix a race condition happening on takeoff
between the land detector and the multicopter position controller.

Previously, an auto-takeoff leads to the following events:

1. A takeoff setpoint is given.
2. The thrust setpoint spikes because we don't enter smooth takeoff yet.
3. The land detector detects a takeoff because of the high thrust.
4. The position controller sees the landed state transition and
   initiates the smooth takeoff. Thrust goes back down.
5. Depending on control gains the takeoff is successful or fails
   if the smoothing takes too long which causes thrust to be too low, so
   the land detector detects land again.

The two obvious problems with this are:
- The intermittent spike.
- The failed takeoff because of the smoothing leads to a delay..

With this change, the logic for a takeoff detection is moved from the
land detector to the position controller.

The events are now:

1. A takeoff setpoint is given.
2. The position controller detects the takeoff setpoint and initiates
   the smooth takeoff.
3. As thrust ramps up, the land detector detects the take off.

In the same way, we now detect the intent to takeoff in manual,
altitude, control, position control in the position controller instead
of in the land detector.
2017-10-09 19:05:15 +02:00
Daniel Agar 38f45d1a9d airspeed sensor startup improvements (#7903) 2017-10-05 14:29:44 -07:00
David Sidrane 10f418a272 nxphlite-v3:rcS move mavlink to UART4 connector P10 2017-10-04 04:49:35 -10:00
David Sidrane 986607b37d PX4_SAME70XPLAINED_V1:Remove unnesasary conditional for FMU mode 2017-09-29 10:13:51 -04:00
Daniel Agar 474f216a0a UAVCAN bootloaders split into separate repository (#7878) 2017-09-29 10:13:51 -04:00
David Sidrane 8fe1abf8ff nxphlite-v3:Add fxas21002c to rc.sensors 2017-09-29 10:13:51 -04:00
Daniel Agar 01b3e6fd25 NuttX upgrade cmake wrapper (#7873)
* NuttX cmake

* px4_macros:Pass the stringified predicate as second arg to static assert

   CC_ASSERT mapes to the c++ static_assert or provides the same
   funtionality for c via the other macros. The c++ static assert
   takes 2 argumants the prdicate and a message. This fixes the
   lacking second argument.

* Updated nuttx and apps submodule to upstream nuttx 7.21+==master

   This is the latest uptake of upstream nuttx and apps.

* ROMFS generate with xxd instead of objcopy

* delete nuttx-patches

* NuttX update submodules to latest px4_nuttx-master

* fix nuttx apps and board dependency

* docker_run update to latest container 2017-08-29

* cmake ROMFS portable sed usage

* NuttX update submodules to latest px4_nuttx-master
2017-09-29 10:13:51 -04:00
David Sidrane 8e4e4fae36 rc.sensors:Align with master 2017-09-29 10:13:51 -04:00
David Sidrane be9c107309 NXPHLITE_V3:Start fxos8700cq 2017-09-29 10:13:51 -04:00
David Sidrane 1682101cff mpl3115a2:Rework per data sheet
The driver appeared to not be finished and was a clone
   of another driver that did not work.
2017-09-29 10:13:51 -04:00
David Sidrane c536bf95f0 px4-same70xplained-v1:ROMFS changes 2017-09-29 10:13:51 -04:00
Daniel Agar d04d62c37e airframe metadata sort by SYS_AUTOSTART and minor cleanup (#8009) 2017-09-25 11:17:50 -04:00
Daniel Agar 4e0ddf86e1 rcS print full version 2017-09-25 10:30:22 -04:00
Daniel Agar 4e6ca271e7 more px4fmu-v1 cleanup (#7981) 2017-09-20 00:04:23 -04:00
Daniel Agar 3498fe0c6f delete sdlog2 EKF2 replay (#7982) 2017-09-19 10:20:41 -04:00
Mateusz Sadowski e439070f25 drivers: refactor trone driver to work with Evo
This commit changes old trone driver into a generic
TeraRanger driver that supports both TeraRanger One
and TeraRanger Evo.

As a part of the change a new parameter was created
SENS_EN_TRANGER that allows to specify the following
modes of operation:

0 - sensors disabled
1 - autodetect sensors
2 - use TeraRanger One rangefinder
3 - use TeraRanger Evo rangefinder

Signed-off-by: Mateusz Sadowski <msadowski90@gmail.com>
2017-09-15 12:07:16 +01:00
Mateusz Sadowski d5f8a300df Revert "drivers: add support for TeraRanger Evo"
This reverts commit d1da112334a875d83abbd04c50fd3bed3b069886.
2017-09-15 12:07:16 +01:00
Mateusz Sadowski ee72931190 drivers: add support for TeraRanger Evo
This commit adds i2c support for TeraRanger Evo sensor
by Terabee

Signed-off-by: Mateusz Sadowski <msadowski90@gmail.com>
2017-09-15 12:07:16 +01:00
David Sidrane 694de32740 ROMFS::Removed ardrone_interface from PX4 only used PX4v1
Removed that driver was only referenced from the now depricated
      px4fmuv-1
2017-09-10 13:37:23 -04:00
David Sidrane f6a0765d3c ROMFS:px4io-v1:Removed px4io-v1 board from PX4
Only support px4io-v2 px4io
2017-09-10 13:37:23 -04:00
David Sidrane 62a2351a72 ROMFS:Removed FMUv1 from rcS etal 2017-09-10 13:37:23 -04:00
David Sidrane c0bff500fe ROMFS:Removed fmuv1 exclude from mixers 2017-09-10 13:37:23 -04:00
David Sidrane c01889ea4f ROMFS:Removed fmuv1 exclude from Air Frames 2017-09-10 13:37:23 -04:00
Lucas De Marchi 9d6aee82dd aerofc: switch companion baud to 921600 2017-09-05 20:28:15 +01:00
Daniel Agar 2fc29cf68f rc.fw_defaults FW position failsafe defaults 2017-09-05 12:57:25 -04:00
acfloria e5924f8172 ROMFS: Remove flaperons from AAERTWF mixer. 2017-08-26 22:37:51 +02:00
David Sidrane dd00858ca7 px4fmu_common:FMUv5 start ist8310 on I2C1, I2C2 & I2C3 2017-08-26 03:44:59 -10:00
David Sidrane a14d256a2f tap_common:Add passivly starting the PWM rgbled driver
Board builds may now inclulde both the PWM and I2C RGB LED
    To add the PWM RGB LED driver:The board must define
    BOARD_HAS_LED_PWM and include rgbled_pwm the moulde list.

    This change attempts to start the either rgbled driver, that
    may or may not be present. If it is not present the +e
    setting allows the start up to continue.
2017-08-26 03:44:59 -10:00
David Sidrane 5c3f2b783f px4fmu_common:Add passivly starting the PWM rgbled driver
Board builds may now inclulde both the PWM and I2C RGB LED
   To add the PWM RGB LED driver:The board must define
   BOARD_HAS_LED_PWM and include rgbled_pwm the moulde list.

   This change attempts to start the PWM rgbled driver, that
   may or may not be present. If it is not present the +e
   setting allows the start up to continue.
2017-08-26 03:44:59 -10:00
ChristophTobler a2cf87b3ab run px4flow for v4 pro 2017-08-21 16:47:59 +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
sanderux 1a0c23d8b3 Support thrust reversal for vtol back transition 2017-08-16 03:06:13 +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
sanderux 2f1327540a DeltaQuad mixer upgrade 2017-08-09 22:28:05 +02:00
sanderux 220bd82b93 Per channel PWM disarmed values 2017-08-09 22:28:05 +02:00
Lorenz Meier 45f2a52a7d Sensor startup: Simplify and fix Pixhawk 2.1
This change simplifies the sensor startup and fixes the detection of airspeed sensors on Pixhawk 2.1
2017-08-06 20:52:23 +02:00
David Sidrane 102003c664 rc.sensors:Use HW type to refine startup / deprecate mpu9250 on PixhawkMini
Using the hwvercmp on FMUv2 HW derivatives built with px4fmu_v3_default
   to ues a more targeted startup approach:

  1) Detect V3 and V2M

  2) On V3 use the external mpu9250 to further discriminate between 2.0
     and 2.1. Then only start the devices that are on that version of
     the board.

 3) Due to HW errata on PixhawkMini deprecate mpu9250.
     The mpu9250 will not start reliably on the PixhawkMini
     Since we have an ICM20608 and an External Mag the
     mpu9250 is not to be used.
2017-08-05 19:26:20 +02:00
José Roberto de Souza ce180af4ca aerofc: Move GPS to UART7
The UART3 also have the I2C bus 2 functions so moving GPS to UART7 to
have one additional I2C.
To keep GPS working is also necessary update the FPGA RTL to version
0xC1 or higher.
2017-08-02 11:49:10 +02:00
Daniel Agar fa18c3d6e6 delete vtol_quad_x (replaced with quad_x) 2017-08-01 09:59:26 +02:00
Jan Liphardt 11508e080a Create 3037_parrot_disco_mod (#7621)
* Create 3037_parrot_disco_mod

Add support for the Parrot Disco airframe. Tested with both Pixhawk Mini and Pixracer, using a generic 30A ESC and a Cobra 2221/16 motor.

* Update 3037_parrot_disco_mod

fixed indentation per @Dagar

* Use new generic FW wing mixer (fw_generic_wing.main.mix)
2017-07-29 23:12:14 +02:00
Lorenz Meier 61b0a81bf9 HITL startup: Further simplification of boot logic in commander 2017-07-29 23:06:50 +02:00
Lorenz Meier 03324e0fb1 ROMFS: Remove stale HITL config 2017-07-29 23:06:50 +02:00
Lorenz Meier 8aa1382e08 ROMFS: Switch HIL to a setting orthogonal to airframes
This makes it easy to flip any airframe config over to HIL.
2017-07-29 23:06:50 +02:00
Lorenz Meier 9124617315 MAVLink: Always enable forwarding for companion link 2017-07-27 10:15:53 +02:00
Lorenz Meier f746f9a9b3 UAVCAN: Reduce memory footprint 2017-07-26 07:55:31 +02:00
Beat Küng 0668d61665 SYS_FMU_TASK: add param to start fmu as task (default=work queue) 2017-07-18 20:06:10 +02:00
Beat Küng 5aa8b455c2 crazyflie airframe: add maintainer 2017-07-14 11:57:11 +02:00
Beat Küng 69f0288649 aerofc airframe: RTF -> Ready to Fly Drone & add maintainer 2017-07-14 11:57:11 +02:00
Beat Küng 6463bd4f6f sensors: use ModuleBase & add documentation 2017-07-14 11:57:11 +02:00
Beat Küng 9e4d1235ac pwm command: fix -e param (it was just ignored)
to keep the behavior the same, remove the -e flags from all pwm commands
that use it in the scripts.
2017-07-14 11:57:11 +02:00
Beat Küng 5bdbfa9b5c send_event: convert to use ModuleBase 2017-07-14 11:57:11 +02:00
Henry Zhang 145c05acc7 Add support for the mpu6k to the MindPXv2 2017-07-11 09:52:51 +02:00
Daniel Agar 164010ea4c
standard plane consistent metadata 2017-07-09 16:36:44 -04:00
Daniel Agar 8ff40d8048 consolidate standard plane configurations 2017-07-09 21:05:03 +02:00
Daniel Agar 7a9e31f440 delete unused MPC_XY_FF and MPC_Z_FF (#7563) 2017-07-08 20:57:10 -04:00
Daniel Agar 75a528e061 FW EKF2 and ublox defaults
- closes #7550
2017-07-09 00:24:00 +02:00
Lorenz Meier b42c1123a2 ROMFS: Add flaps and gear mixers to all standard planes
It makes sense to have this for all standard planes and our default PWM outputs for MAIN are always 6 wide, so this should scale to all known HW platforms.
2017-07-08 11:50:48 +02:00
Hamish Willee 7775953289 Fix up airframe URLS to point to the PX4 user guide airframe build info 2017-07-06 22:21:46 +02:00
Daniel Agar b66b734a74 rcS move additional sensors to rc.sensors 2017-07-06 10:05:07 -04:00
Daniel Agar 7029be87c0 MS5525 differential pressure driver 2017-07-06 10:05:07 -04:00
James Goppert 82d7332f1a Remove log profile set to thermal calibration for PX4FMU_V5. 2017-07-06 09:02:13 +02:00
James Goppert d10a491243 Add logging profiles to logger module. 2017-07-06 09:02:13 +02:00
imcnanie 629844adff Dodeca mixer using the AUX channels (#7532)
* Added Dodecarotor Mixer

* fixed formatting style

* Renamed dodeca mixers to top and bottom
2017-07-05 22:17:33 +02:00
Mohammed Kabir 0bda4a7edd rc.sensors : correctly start up sensors on AUAV-X2.1 2017-06-29 07:59:56 +05:30
Daniel Agar cd8c8ea5de FW default PWM_RATE 50 2017-06-28 09:13:19 +02:00
Beat Küng 0cfa99436f fix 13001_caipirinha_vtol: class should be VTOL 2017-06-27 11:19:55 +02:00
Lorenz Meier 04f9b0400e Add airframe class to hexa 2017-06-27 11:07:03 +02:00
Lorenz Meier f5ff283f17 Quad: Add vehicle class 2017-06-27 11:07:03 +02:00
Lorenz Meier 2ba65a0dcc Various experimental configs: Add class field 2017-06-27 11:07:03 +02:00
Lorenz Meier 51c7d01a19 Plane configs: Add class field 2017-06-27 11:07:03 +02:00
Lorenz Meier 01c074d9e5 Rover configs: add class field 2017-06-27 11:07:03 +02:00
Lorenz Meier 86acaf0159 Quad configs: add class field 2017-06-27 11:07:03 +02:00
Lorenz Meier 49d6853219 VTOL Configs: Add class field 2017-06-27 11:07:03 +02:00
Lorenz Meier ccc4f24ae8 Wing configs: Add class field 2017-06-27 11:07:03 +02:00
Lorenz Meier b78a138f16 Multicopter configs: Add class field 2017-06-27 11:07:03 +02:00
Lorenz Meier 53cda2de79 HIL configs: Add HIL field 2017-06-27 11:07:03 +02:00
Lorenz Meier 968fa39158 Copter configs: Add airframe class field 2017-06-27 11:07:03 +02:00
Lorenz Meier 0cd954e382 Start SDP3X with priority over the legacy devices 2017-06-11 11:19:25 +02:00
Lorenz Meier fd9f6e9415 ROMFS: Rework airspeed start to include SDP3X 2017-06-11 11:19:25 +02:00
Lorenz Meier a5581c6f25 ROMFS: Fix whitespace in rc.sensors 2017-06-11 11:19:25 +02:00
Lorenz Meier b93e1de883 ROMFS: Do not abort on error 2017-06-11 11:19:25 +02:00
Anton Matosov 890c415ff2 Set acro to allowed max values 2017-06-07 12:20:05 +05:30
Anton Matosov f692b87232 Replace tab with space between param name and value to prevent bricking 2017-06-07 12:20:05 +05:30
Marco Zorzi aef522553e unmanned ground vehicle (UGV) controllers and Traxxas Stampede configuration (#7175) 2017-06-06 13:26:51 -04:00
Lorenz Meier 6fbf09d8da Fix LPE exception handling in ROMFS 2017-06-04 16:59:25 +02:00
Lorenz Meier c9a28fc0eb ROMFS: Reset the estimator param to EKF2 if LPE fails to start 2017-06-04 12:43:28 +02:00
davidaroyer 0de70af78d mixers: add default mixer for Aerotenna OcPoC-Zynq hardware 2017-06-04 04:24:50 +08:00
Lorenz Meier aecfe38f65 BMI055: Allow the independent use of just the gyro driver 2017-06-02 18:41:54 +02:00
Lorenz Meier 5e1490b8a1 BMI055: Ensure that accel and gyro start consistently.
This was required on a BOSCH board which otherwise could end up mis-detecting the 055 and not running properly
2017-06-02 18:30:51 +02:00
Mohammed Kabir f97822155a rc.sensors : start external compass on v4Pro and v5 with temperature compensation and self-calibration at startup 2017-05-27 00:31:05 +02:00
Kevin Lopez Alvarez 588a8d3841 px4fmu-v4pro : Add support for ICM20602 2017-05-20 10:23:28 +02:00
Mohammed Kabir d79750a06c camera_feedback : inital module import 2017-05-12 22:11:17 +02:00
Lorenz Meier d31ee73354 FMUv5: Set sdlog mode param 2017-05-07 18:02:24 +02:00
Lorenz Meier 68e76d8ed3 FMUv5: Increase logging throughput considerably.
This will help to understand the sensor selection on FMUv5 in different airframes. We do have the RAM and CPU to do this on this platform.
2017-05-07 18:01:51 +02:00
Lorenz Meier 00efbc8049 ROMFS: Start EKF2 if no vehicle config is loaded
This allows to at least have a look at the attitude and check that the board is functional on a basic level.
2017-05-02 11:56:45 +02:00
Henry Zhang 92fc82da33 MindPX: Remove MPU6500 driver, use MPU9K driver instead 2017-05-02 11:52:12 +02:00