Roman
f13bbacd52
mc_att_control: copy sensor_correction topic once initially
...
Signed-off-by: Roman <bapstroman@gmail.com >
2018-11-12 21:00:28 -05:00
Daniel Agar
82aa24adfc
tap_esc increase stack 1100 -> 1180 bytes
2018-10-19 20:11:14 -04:00
Daniel Agar
a7969de738
cmake fix BUILD_URI
2018-10-19 20:11:14 -04:00
Daniel Agar
33e86d25b9
FMU relocate MOT_SLEW_MAX and THR_MDL_FAC parameters centrally
2018-10-19 20:11:14 -04:00
Daniel Agar
805dfc4312
PWM parameters centralize under sensors and add aux 7&8
2018-10-19 20:11:14 -04:00
Daniel Agar
ab2d595224
FMU PWM parameters respect instance for MAIN/AUX usage
2018-10-19 20:11:14 -04:00
Philipp Oettershagen
ab044e274d
Navigator: Fix fixed-wing first order altitude hold ( #9850 )
...
i.e. the altitude reference oscillations caused by it in LOITER mode
2018-10-19 20:11:14 -04:00
Daniel Agar
b0f766d90e
mavlink MOUNT_ORIENTATION use math::degrees
2018-10-19 20:11:14 -04:00
Daniel Agar
2bb9d7e91f
mavlink properly wrap heading fields
...
- fixes #9867
2018-10-19 20:11:14 -04:00
Beat Küng
5f8c08db79
mavlink_ulog: clear potential existing ulog_stream messages on start
...
- the uorb behavior got recently changed so that we now need to clear
any potential existing messages when we start log streaming.
- ulog_stream_ack should also not use a queue, since the ack is done
synchonous between mavlink and the logger.
2018-09-13 12:56:00 +02:00
DanielePettenuzzo
a936dc291e
airspeed drivers: add PX4_I2C_BUS_ONBOARD as possible bus
2018-08-03 13:41:56 +02:00
DanielePettenuzzo
42dc2bd890
rc.sensors: look for airspeed sensors on all busses
2018-08-03 13:41:56 +02:00
DanielePettenuzzo
9d878c719d
ets_airspeed: add -a flag to scan all i2c busses during start
2018-08-03 13:41:56 +02:00
DanielePettenuzzo
649d4be185
sdp3x_airspeed: add -a flag to scan all i2c busses during start
2018-08-03 13:41:56 +02:00
DanielePettenuzzo
bec74085f1
ms5525_airspeed: add -a flag to scan all i2c busses during start
2018-08-03 13:41:56 +02:00
DanielePettenuzzo
350df41e42
ms4525_airspeed: remove i2c_bus parameter from start function (it tries all busses)
2018-08-03 13:41:56 +02:00
DanielePettenuzzo
95295b30e8
ms4525_airspeed: change start_bus from bool to int
2018-08-03 13:41:56 +02:00
DanielePettenuzzo
dd044ed4be
ms4525_airspeed: remove PX4_I2C_ALL
2018-08-03 13:41:56 +02:00
DanielePettenuzzo
9b2e32c976
ms4525_airspeed: add -a flag to scan all i2c busses during start
2018-08-03 13:41:56 +02:00
Roman
e1bca8d01a
mavlink: fixed nullptr dereferencing in case unknown mavlink message is
...
forwarded
Signed-off-by: Roman <bapstroman@gmail.com >
2018-08-02 15:09:03 +02:00
Lorenz Meier
96443b3cf3
Update README
2018-06-19 08:23:34 +02:00
Beat Küng
d1343b0ccb
calibration_routines: fix 'Command denied during calibration' error message
...
The uorb subscribe logic got changed for queued topics with
https://github.com/PX4/Firmware/pull/9436 , meaning an orb_subscribe will
return past messages as well now.
This lead to an error 'Command denied during calibration' for the previously
received calibration start command.
2018-06-18 15:06:58 +02:00
PX4 Jenkins
1fac3a1cee
Update submodule sitl_gazebo to latest Sat Jun 16 21:27:20 EDT 2018
...
- sitl_gazebo in PX4/Firmware (ebc40067c7 ): https://github.com/PX4/sitl_gazebo/commit/8a3166bf5d315274cfd503a75880e9837faa9694
- sitl_gazebo current upstream: https://github.com/PX4/sitl_gazebo/commit/b5a92095bfb1b6a218a80f58ad9fe09c89ef4598
- Changes: https://github.com/PX4/sitl_gazebo/compare/8a3166bf5d315274cfd503a75880e9837faa9694...b5a92095bfb1b6a218a80f58ad9fe09c89ef4598
b5a9209 2018-06-10 TSC21 - travis_ci: Add OSX build
2018-06-17 10:30:44 +02:00
rolandash
ebc40067c7
otherwise posix_sitl_rtps fail to build (MACOS)
2018-06-16 10:13:33 +02:00
Lorenz Meier
d14d31df14
PX4IO: Initialize all channels to zero
...
This sets all channels to zero, including unused channels. Any consumer of the data using the channel count will not see a difference, but this is helpful to avoid confusion in log analysis.
2018-06-16 00:05:18 +02:00
PX4 Jenkins
af07d4b37b
Update submodule apps to latest Fri Jun 15 15:25:42 UTC 2018
...
- apps in PX4/Firmware (1bc4a73eaacdb40f7d3f5ebd11882913b541b419): https://github.com/PX4-NuttX/apps/commit/7e2f17db4e770e65ee39b1a964cf4644720d976c
- apps current upstream: https://github.com/PX4-NuttX/apps/commit/36806ba3d84c0fa07ed86857d4c92a997b7cd194
- Changes: https://github.com/PX4-NuttX/apps/compare/7e2f17db4e770e65ee39b1a964cf4644720d976c...36806ba3d84c0fa07ed86857d4c92a997b7cd194
36806ba 2018-06-06 Beat Küng - nsh_parse.c: fix 'while' and 'until' loop condition
2018-06-15 11:56:15 -04:00
PX4 Jenkins
499337ad7f
Update submodule v2.0 to latest Fri Jun 15 15:25:36 UTC 2018
...
- v2.0 in PX4/Firmware (a19fecad94 ): https://github.com/mavlink/c_library_v2/commit/653ac745a57794a38c831f1ff296066a2e09c09b
- v2.0 current upstream: https://github.com/mavlink/c_library_v2/commit/033fa8e7a4a75a0c3f17cea57e3be8966e05f770
- Changes: https://github.com/mavlink/c_library_v2/compare/653ac745a57794a38c831f1ff296066a2e09c09b...033fa8e7a4a75a0c3f17cea57e3be8966e05f770
033fa8e 2018-05-24 PX4BuildBot - autogenerated headers for rev https://github.com/mavlink/mavlink/tree/d8ea87b9c6173ad72a032219588e302eb8cb212a
2018-06-15 11:55:52 -04:00
David Sidrane
a19fecad94
Removed zero termination as a for constuct was used
2018-06-15 17:08:01 +02:00
David Sidrane
3e0928d9ea
Changed variable type and used cpp array init.
2018-06-15 17:08:01 +02:00
David Sidrane
22b8a6c57e
Fixed capitalization grammar
2018-06-15 17:08:01 +02:00
David Sidrane
afc8fe39df
Rename trigger argument for clarity
2018-06-15 17:08:01 +02:00
David Sidrane
4e5e0c6921
camera_trigger:Refacter GPIO camera triggering
...
Refactored for efficiency and simplicity.
2018-06-15 17:08:01 +02:00
Beat Küng
ff365cad08
rtl: change "RTL: land at home" message from critical to info
2018-06-15 15:53:28 +02:00
Beat Küng
04db56638e
ecl: update submodule
...
contains:
- https://github.com/PX4/ecl/pull/460
- https://github.com/PX4/ecl/pull/462
2018-06-15 15:53:28 +02:00
Anthony Lamping
e263af359e
launch: make px4 required ( #9682 )
2018-06-14 20:37:25 -04:00
DanielePettenuzzo
1da87aa173
Vl53lxx Driver Coverity Fixes ( #9671 )
2018-06-14 20:36:43 -04:00
David Sidrane
3098b09bbd
Updated submudule platforms/nuttx/NuttX/nuttx
...
to include [BACKPORT] Merged in kekiefer/nuttx/stm32f7-serial-fix-tiocssinglewire-upstream
2018-06-14 17:25:24 -04:00
Beat Küng
229b1274d0
fix camera_trigger gpio: _pins[i] == 0 is valid
...
Because _pins[i] is set from parameter value - 1
2018-06-14 15:03:39 -04:00
David Sidrane
a38b94c7dd
BUGFIX:GPS not working. Invalid values passed to px4_arch_configgpio
...
This is the root cause of https://github.com/PX4/Firmware/issues/9461
The _pins array was initialized to -1. It was used to index the
_gpios array. The value at _gpios[-1] was a number that mapped to
Analog mode on Port A pin 0. These is the UART4_TX pin and was
being reconfigured by the fault in the camera_trigger to an
alaog input.
2018-06-14 15:03:39 -04:00
David Sidrane
ae389ed0e3
Revert "gps: reopen the gps port on failed auto-detection"
...
This reverts commit a62a71f48f .
The root cause was the camera trigger passing invalid pin
configuration setting overwriting the UART4 TX pin setting
2018-06-14 15:03:39 -04:00
Roman Bapst
27fa29787d
updated sitl_gazebo: use asphalt plane instead of uneven ground to reduce ( #9675 )
...
computational load in optical flow simulation
Signed-off-by: Roman <bapstroman@gmail.com >
2018-06-14 14:28:28 -04:00
Daniel Agar
322c7ad5da
Jenkins SITL tests completely wipe workspace ( #9677 )
2018-06-14 14:27:35 -04:00
Beat Küng
b66f0f36a5
ros tests: add an interactive flag & disable the PX4 shell for ROS tests ( #9672 )
2018-06-14 12:37:47 -04:00
Philipp Oettershagen
753ad0e0df
Fixed-wing autoland: Fix bug that could cause a steep pitch increase and thus aircraft stall during the flare ( #9674 )
2018-06-14 11:29:03 -04:00
Oleg Kalachev
23cd6adbe7
precland: put land precision parameter to MAVLink mission item
2018-06-13 23:32:51 -04:00
Oleg Kalachev
86d3603e2d
precland: fix landing target pose validity checking
...
In precland the copter may switch to horizontal approach state with an
old landing target pose message.
2018-06-13 23:32:51 -04:00
Beat Küng
036b59f3de
posix main: convert c to a char when extending add_string
2018-06-13 16:19:34 +02:00
Beat Küng
f241e49ebf
voted_sensors_update: initialize _last_magnetometer & _last_airdata
2018-06-13 16:19:34 +02:00
Beat Küng
20f2303e8a
test_mixer: fix resource leak (unclosed dp)
2018-06-13 16:19:34 +02:00
Beat Küng
76c94b08f1
PositionControl: use constant references instead of pass-by-value for structs
2018-06-13 16:19:34 +02:00
Beat Küng
5cc450c7cb
srf02: fix resource leak (unclosed fd)
2018-06-13 16:19:34 +02:00
Beat Küng
ab94bf1d60
batt_smbus: initialize _last_report
2018-06-13 16:19:34 +02:00
Beat Küng
4eda0ed782
posix main shell: fix getchar() return value and check for EOF to avoid busy loop
2018-06-13 16:19:34 +02:00
Beat Küng
226d7c79da
sensors: initialize adc only if BOARD_NUMBER_BRICKS > 0
...
Fixes the SITL startup error:
ERROR [sensors] no ADC found: /dev/adc0 (9)
Introduced in 8404889098
2018-06-13 15:54:45 +02:00
Beat Küng
08064c2b71
mavlink_main: remove nonexisting streams
...
Removes SITL startup warnings:
WARN [mavlink] stream SCALED_IMU2 not found
WARN [mavlink] stream SCALED_IMU3 not found
Introduced in 9122725052
2018-06-13 15:54:45 +02:00
Ivo Drescher
42ebbd14bb
Changed the intendation to tabs
...
Signed-off-by: Ivo Drescher <ivo.drescher@gmail.com >
2018-06-13 12:46:42 +02:00
Ivo Drescher
77d4554e6d
Modified comment about feed forward of yaw setpoint rate.
...
Added more explanations regarding the coordinate transformation.
Signed-off-by: Ivo Drescher <ivo.drescher@gmail.com >
2018-06-13 12:46:42 +02:00
johannes
b583c5f69a
ekf-tools: fix late start early end buffer, split imu checks
...
analyse_logdata_ekf:
- fix the buffer to start the analyses 5s after takeoff and end
them 5s before landing for logs that start or finish in air
- add flag for turning on-off 5s late start early end buffer
- split the combined imu sensor check into checks for vibration,
bias and output predictor
2018-06-13 08:37:48 +02:00
Daniel Agar
daa6f29b58
commander ignore failsafe transitions when in mission and disarmed
2018-06-13 08:37:00 +02:00
Anthony Lamping
aa625d9af8
Jenkins rm duplicate sitl build node def, don't checkout scm for S3 upload
2018-06-12 19:08:51 -04:00
Anthony Lamping
fc2e7e4dc4
Jenkins tests verbose package extract and list workspace on failure
2018-06-12 19:08:51 -04:00
Daniel Agar
f24353d02a
Jenkins artifacts don't allow empty and skip test builds
2018-06-12 19:08:51 -04:00
Daniel Agar
b183764dc7
cmake nuttx fix upload target
2018-06-12 16:46:21 -04:00
Daniel Agar
44ad3c98ad
Update submodule matrix to latest Tue Jun 12 15:14:08 CDT 2018 ( #9649 )
...
- matrix in PX4/Firmware (ed6db94ec0f1ce2b6e4a975229c51fb5e3ff559a): https://github.com/PX4/Matrix/commit/03a3e3ad46d21bb90e78f8cedd3526d24617df5f
- matrix current upstream: https://github.com/PX4/Matrix/commit/b815fc97c4e686a93a8074f27d1830a031b0d38d
- Changes: https://github.com/PX4/Matrix/compare/03a3e3ad46d21bb90e78f8cedd3526d24617df5f...b815fc97c4e686a93a8074f27d1830a031b0d38d
b815fc9 2018-06-12 Roman Bapst - replace quiet_NaN() with INFINITY (#70 )
2018-06-12 16:45:51 -04:00
David Sidrane
8aa1d4d68d
BUGFIX hardfault FMUv5 List was used before being initalized.
...
_uavcan_open_request_list was accessed before it was initalized.
2018-06-12 13:44:04 -07:00
PX4 Jenkins
55728ab129
Update submodule nuttx to latest Tue Jun 12 15:14:01 CDT 2018
...
- nuttx in PX4/Firmware (ed7eb8b4b4f792b8c373692812c8e255669f482e): https://github.com/PX4-NuttX/nuttx/commit/0ac630e6d0e90480121c74d59a92676f0b951dce
- nuttx current upstream: https://github.com/PX4-NuttX/nuttx/commit/80e58380a8d2b4da0f29eee7e0a820abf0d9f793
- Changes: https://github.com/PX4-NuttX/nuttx/compare/0ac630e6d0e90480121c74d59a92676f0b951dce...80e58380a8d2b4da0f29eee7e0a820abf0d9f793
80e5838 2018-06-07 David Sidrane - [REJECTED] When console is absent preserve stdio fd numbering.
2018-06-12 13:43:03 -07:00
David Sidrane
b42794f3b9
Updated libuavcan to 883cba97 + NuttX IRQ patch
2018-06-12 13:01:12 -07:00
Florian Achermann
4697bf428b
Navigator Fix: Do not set the closest mission item in normal mission mode ( #9646 )
...
- fixes #9606
2018-06-12 12:11:14 -04:00
Beat Küng
9151351b8d
l3gd20: add argc check and use px4_getopt
2018-06-12 11:02:50 +02:00
Daniel Agar
4d3ad1b5c3
cmake consistency with build directory and and nuttx binary naming
2018-06-12 10:14:03 +02:00
Daniel Agar
0430520371
Revert "px4io: fix NuttX build"
...
This reverts commit 27e75920bd .
2018-06-12 10:14:03 +02:00
Daniel Agar
20aabd3566
move systemlib/airspeed to standalone lib
2018-06-12 09:06:30 +02:00
Daniel Agar
b23e40ca42
move systemlib/pid to standalone lib
2018-06-12 09:06:30 +02:00
Daniel Agar
e468a9bbcc
move systemlib/pwm_limit to standalone lib
2018-06-12 09:06:30 +02:00
Daniel Agar
387bc81f26
move systemlib/circuit_breaker.cpp to standalone lib
2018-06-12 09:06:30 +02:00
Daniel Agar
7eeba7b8ca
systemlib delete unused board_serial
2018-06-12 09:06:30 +02:00
Daniel Agar
965eaecf4d
systemlib printload naming consistency
2018-06-12 09:06:30 +02:00
Daniel Agar
dfb98b2a70
systemlib delete unused getopt_long
2018-06-12 09:06:30 +02:00
Daniel Agar
f913e062da
systemlib delete unused err.c
2018-06-12 09:06:30 +02:00
Daniel Agar
d3f7de6f9c
systemlib delete unused state_table.h
2018-06-12 09:06:30 +02:00
Daniel Agar
d73d20bcce
systemlib delete unused systemlib.h
2018-06-12 09:06:30 +02:00
Daniel Agar
fda25e9f3a
systemlib delete unused ppm_decode
2018-06-12 09:06:30 +02:00
Daniel Agar
d0bde9ab2a
replace geo _wrap_pi with matrix::wrap_pi
2018-06-12 09:00:52 +02:00
TSC21
518daa4a8d
fastrtps: clean up and fix template for client/agent code
2018-06-11 22:54:58 +02:00
Daniel Agar
3399ec9e73
move systemlib/rc_check to commander (the only usage) and convert to c++
2018-06-11 22:53:38 +02:00
Daniel Agar
a6883c3a0d
uORB generated header use full name in C define
2018-06-11 22:53:38 +02:00
Julian Oes
27e75920bd
px4io: fix NuttX build
...
This change lead to a build error and is therefore reverted here.
2018-06-11 12:09:36 +02:00
Elia Tarasov
9ccf17dbee
add sitl init file for iris_vision model
2018-06-10 21:26:44 -04:00
Elia Tarasov
981db0e21d
add iris_vision sitl model
2018-06-10 21:26:44 -04:00
PX4 Jenkins
5d066f95c7
Update submodule matrix to latest Sun Jun 10 18:15:08 UTC 2018
...
- matrix in PX4/Firmware (a138252aea03ff414ef5b4444c61e2f7d5075ebc): https://github.com/PX4/Matrix/commit/21d47424c6050bb94da5de3f7580a8df66b6fcc7
- matrix current upstream: https://github.com/PX4/Matrix/commit/03a3e3ad46d21bb90e78f8cedd3526d24617df5f
- Changes: https://github.com/PX4/Matrix/compare/21d47424c6050bb94da5de3f7580a8df66b6fcc7...03a3e3ad46d21bb90e78f8cedd3526d24617df5f
03a3e3a 2018-06-09 Daniel Agar - helper_functions add wrap_2pi
abc8f82 2018-06-09 Daniel Agar - travis-ci add codecov.io (#69 )
2018-06-10 20:42:33 +02:00
Lorenz Meier
3da459899a
Gazebo Sim fix: Remove duplicate message spec causing compile error.
2018-06-10 13:51:19 +02:00
JohannesBrand
3b4d9efc8f
ecl_ekf tools: add sideslip and gps fix type to fix bit error ( #9619 )
...
analyse_logdata_ekf:
- add sideslip innovation fail check flag to fix wrongly selected
bits for hagl innovation and optical flow innovations
- plot sideslip innovation fail
- add gps fix type fail flag to fix wrongly selected bits for all
gps check fail flags
- plot gps fix type
2018-06-09 21:57:46 -04:00
PX4 Jenkins
7278bdd4ab
Update submodule sitl_gazebo to latest Sat Jun 9 21:28:20 UTC 2018
...
- sitl_gazebo in PX4/Firmware (1b33445c7b ): https://github.com/PX4/sitl_gazebo/commit/e8b3624b9dad63a492ae58c1ce8661488128966b
- sitl_gazebo current upstream: https://github.com/PX4/sitl_gazebo/commit/59f01ae9bd8ee1937be368f9b536fda02bf1aba6
- Changes: https://github.com/PX4/sitl_gazebo/compare/e8b3624b9dad63a492ae58c1ce8661488128966b...59f01ae9bd8ee1937be368f9b536fda02bf1aba6
59f01ae 2018-06-07 Julian Oes - cmake: add tinyxml dependency
2018-06-09 17:55:56 -04:00
Daniel Agar
1b33445c7b
simulator mavlink set lpos ground truth limits to infinity
2018-06-09 17:24:35 -04:00
PX4 Jenkins
fc29e78978
Update submodule ecl to latest Sat Jun 9 15:26:38 CDT 2018
...
- ecl in PX4/Firmware (f7937d783496e954efc52439148ef66824d9c80a): https://github.com/PX4/ecl/commit/1fdf33b343e361de6410515a0359f3cb7f34d499
- ecl current upstream: https://github.com/PX4/ecl/commit/d177e96508d2572f6fa8eb7ff41852749c882548
- Changes: https://github.com/PX4/ecl/compare/1fdf33b343e361de6410515a0359f3cb7f34d499...d177e96508d2572f6fa8eb7ff41852749c882548
d177e96 2018-06-08 Paul Riseborough - EKF: Fix bug causing slow drift when high rate flow data is used
ee2dc7d 2018-05-30 Paul Riseborough - EKF: Rework optical flow selection logic
e383b6a 2018-05-29 Paul Riseborough - EKF: rework optical flow selection logic
487e6a0 2018-05-28 Paul Riseborough - EKF: enable user selection of auto mag free operation
6bdbe03 2018-05-28 Paul Riseborough - EKF: Fallback to optical flow for all in-flight loss of navigation scenarios
b4d2b8c 2018-05-19 Mohammed Kabir - EKF : introduce new architechture for navigation limits
8a71339 2018-05-19 Paul Riseborough - EKF: Improve ground effect compensation
39697f1 2018-05-18 Paul Riseborough - EKF: rework optical flow switching
1cfe845 2018-05-18 Paul Riseborough - EKF: rework GPS quality check
99a8038 2018-05-18 Paul Riseborough - EKF: improve optical flow GPS quality checking
7f36add 2018-05-18 Paul Riseborough - EKF: scale GPS vertical accuracy check when using optical flow
fc9f532 2018-05-18 Paul Riseborough - EKF: relax range finder data continuity check
93c456f 2018-05-18 Paul Riseborough - EKF: Improve protection against badly conditioned dVel bias covariances
225057a 2018-05-18 Paul Riseborough - EKF: Fix bug preventing use of terrain estimator
adb4a09 2018-05-17 Paul Riseborough - EKF: Fix bug causing large yaw innovations when GPS is lost
f59cd0f 2018-05-16 Paul Riseborough - EKF: Don't make detection of indoor operation dependent on optical flow
1562a82 2018-05-16 Paul Riseborough - EKF: Add parameter to adjust on-ground movement detector sensitivity
ea9e824 2018-05-16 Paul Riseborough - EKF: Improve detection of indoor flight condition
565f992 2018-05-16 Paul Riseborough - EKF: Reduce effect of yaw gyro bias when using optical flow indoors
e10798b 2018-05-16 Paul Riseborough - EKF: Add on ground movement detector
2d3b652 2018-05-15 Paul Riseborough - EKF: Reset yaw gyro bias learning when resuming use of magnetometer
8191068 2018-05-15 Paul Riseborough - EKF: Don't start using mag if optical flow use is interrupted
4889e84 2018-05-15 Paul Riseborough - EKF: Don't fuse multi rotor drag if yaw angle is bad
092a8d8 2018-05-15 Paul Riseborough - EKF: Fix GPS validity time check error
0160aaa 2018-05-15 Paul Riseborough - EKF: Don't use magnetometer with optical flow only nav if GPS checks are failing
8451676 2018-05-14 Paul Riseborough - EKF: Use stricter GPS accuracy test when optical flow is being used
a80b3ab 2018-05-27 Daniel Agar - set MODULE define for each library
2018-06-09 17:24:35 -04:00
Daniel Agar
619cc6aedc
mavlink disable conversion helpers and use Matrix
2018-06-09 21:19:33 +02: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
Daniel Agar
a99f75dde2
Mavlink set last sent timestamp to space out initial publication
...
- remove QURT defines no longer required
2018-06-09 13:38:44 +02:00
Paul Riseborough
98465171aa
ecl: include fix for bug affecting use of high frequency optical flow data
2018-06-09 13:38:04 +02:00
Paul Riseborough
c84d35e3d7
mc_pos_control: rework height limiter to stay in velocity mode
2018-06-09 13:38:04 +02:00
Paul Riseborough
d26da5fa3b
mc_pos_control: Improve maximum height limiter
...
Implements a better method of determining when to switch from velocity to altitude control to keep height limit from being exceeded.
This method removes the overshoot and transients in height caused by the switching of the previous algorithm.
2018-06-09 13:38:04 +02:00
Paul Riseborough
f0a1cd197e
mc_pos_control: formatting fixes
2018-06-09 13:38:04 +02:00
Paul Riseborough
b77845a3c0
mc_pos_control: Fix bug in calculation of altitude limit
...
The correction for stopping distance applied to the maximum altitude limiter uses the vertical velocity estimate and gives the same offset for both positive (down) and negative (up) velocity.
This calculation has been corrected and simplified and variable names changes to make the functionality clearer.
2018-06-09 13:38:04 +02:00
Paul Riseborough
967b27f131
ecl: rework optical flow selection logic
...
Fixes a race condition introduced by use of _is_dead-reckoning.
Only runs flow use logic when there is flow data available
2018-06-09 13:38:04 +02:00
Paul Riseborough
e3a6528a80
ecl: include fixes to flow selection logic
2018-06-09 13:38:04 +02:00
Paul Riseborough
366e36a07b
ekf2: Update parameter description
2018-06-09 13:38:04 +02:00
Paul Riseborough
d46ee571ce
ecl: test changes to pr-ekfOptFlowFixes
2018-06-09 13:38:04 +02:00
Mohammed Kabir
9a83f55c6a
ecl: test PX4/ecl/pull/452
2018-06-09 13:38:04 +02:00
Mohammed Kabir
c1169eb38b
mc_pos_control : update to use new navigation limits architechture
2018-06-09 13:38:04 +02:00
Mohammed Kabir
8f5ceac936
ekf2 : use INFINITY when altitude limiting is not needed
2018-06-09 13:38:04 +02:00
Mohammed Kabir
1a2f9dd37a
land_detector : use INFINITY when altitude limiting is not needed
2018-06-09 13:38:04 +02:00
Mohammed Kabir
31aa1cbf01
simulator : publish optical flow limits over uORB
2018-06-09 13:38:04 +02:00
Mohammed Kabir
e8f1d50758
mavlink : update for compatibility with new navigation limits architechture
2018-06-09 13:38:04 +02:00
Mohammed Kabir
1d1dec0a8b
inav : update for compatibility with new navigation limits architechture
2018-06-09 13:38:04 +02:00
Mohammed Kabir
9483885ed9
lpe : update for compatibility with new navigation limits architechture
2018-06-09 13:38:04 +02:00
Mohammed Kabir
6a9377846f
ekf2 : update to use new navigation limits architechture
2018-06-09 13:38:04 +02:00
Mohammed Kabir
8299f571c8
msg : add height limits to local position
2018-06-09 13:38:04 +02:00
Mohammed Kabir
7f1686171b
sensors : add parameter for maximum flow rate
2018-06-09 13:38:04 +02:00
Mohammed Kabir
32a7097018
px4flow : publish sensor limits over uORB
2018-06-09 13:38:04 +02:00
Mohammed Kabir
230d6c5aa2
msg : add sensor limits to optical flow message
2018-06-09 13:38:04 +02:00
Mohammed Kabir
b3c5e53333
Unify optical flow height limiting
2018-06-09 13:38:04 +02:00
Paul Riseborough
0113212b34
mc_pos_control: Update parameter descriptions
2018-06-09 13:38:04 +02:00
Paul Riseborough
9e567cadd6
ekf2: Update parameter description
2018-06-09 13:38:04 +02:00
Paul Riseborough
0dc2377c2f
mc_pos_control: format fixes
2018-06-09 13:38:04 +02:00
Paul Riseborough
9fb674929c
commander: do not check global position when using flow in POSCTL
2018-06-09 13:38:04 +02:00
Paul Riseborough
2c325414f9
mc_pos_control: limit maximum height when reliant on optical flow data
2018-06-09 13:38:04 +02:00
Paul Riseborough
9028592c5f
mc_pos_control: control height above ground when reliant on optical flow
2018-06-09 13:38:04 +02:00
Paul Riseborough
98597dcffc
commander: allow position uncertainty to grow when operator can correct for drift
2018-06-09 13:38:04 +02:00
Paul Riseborough
e5d428bd65
msg: add definitions for estimator status control mode bit positions
2018-06-09 13:38:04 +02:00
Lorenz Meier
aee05d0ac5
FMU: Increase stack space as needed (shown by instrumentation) to retain a 300 bytes buffer.
2018-06-08 08:39:14 +02:00
Beat Küng
a62a71f48f
gps: reopen the gps port on failed auto-detection
...
work-around for https://github.com/PX4/Firmware/issues/9461
2018-06-07 22:20:47 +02:00
Lorenz Meier
f87fa9131b
FMUv5: Fix RGB led usage - these are individual status leds.
2018-06-06 23:03:28 +02:00
Lorenz Meier
02eaf2ce28
FMUv5: Fix safety switch led
...
Both IO and FMU are connected to the safety switch for default models. This needs later to be broken out to a config option for builds that do not contain an IO.
2018-06-06 22:23:24 +02:00
Philipp Oettershagen
9f414e82f6
Subsystem_info status flags & checks: Add comment to indicate that the IMU+MAG consistency checks need to be performed AFTER the individual checks are complete
2018-06-06 18:54:24 +02:00
Philipp Oettershagen
e12b470cac
Subsystem_info status flags & checks: Small fixes according to @bkueng's review
2018-06-06 18:54:24 +02:00
Philipp Oettershagen
0b71c52225
Subsystem_info status flags & checks: Suppress sensor failover warnings in Hardware in the loop (HITL)
2018-06-06 18:54:24 +02:00
Philipp Oettershagen
302cb0a285
Subsystem_info status flags & checks: Moved the set_health_flags helper functions out of the /lib/ folder and into the module/commander folder because they are actually only needed there
2018-06-06 18:54:24 +02:00
Philipp Oettershagen
bd2af289f5
Subsystem_info status flags & checks: Code style fixes and cleanup to avoid strcmp() as suggested by @LorenzMeier
2018-06-06 18:54:24 +02:00
Philipp Oettershagen
e4d863b95f
Subsystem_info status flags & checks: Separate the functionality to a) set the health flags inside commander and b) to publish them from external modules
2018-06-06 18:54:24 +02:00
Philipp Oettershagen
a807d34a7a
Remove distance sensor checks again. These checks should be handled by EKF2 and should thus be added there later
2018-06-06 18:54:24 +02:00
Philipp Oettershagen
be4ba32cf0
vl53lxx distance sensor: Remove subsystem_info calls because all sensors are now checked inside commander
2018-06-06 18:54:24 +02:00
Philipp Oettershagen
075009be2f
Subsystem_info status flags & checks: 1) Set health flags in commander directly instead of publishing via uORB 2) move publish_subsystem_info into lib/ folder"
2018-06-06 18:54:24 +02:00
Philipp Oettershagen
f5847a4a7b
Subsystem_info status flags & checks: Switch back to uORB for inter-process communication, handle GPS checks completely inside ekf2, add distance_sensor checks
2018-06-06 18:54:24 +02:00
Philipp Oettershagen
6f1f414b49
Subsystem_info status flags & checks : Initial commit, updating the health flags in a centralized way mostly in commander and the votedSensorsUpdate function.
2018-06-06 18:54:24 +02:00
DanielePettenuzzo
40e6a5a39b
fmu-v5: fix ms5611
2018-06-06 17:31:33 +02:00
DanielePettenuzzo
2ab5dc2951
fmu-v5: remove i2c3 as bus expansion because used just for internal mag (ONBOARD)
2018-06-06 17:31:33 +02:00
DanielePettenuzzo
7a760ee501
fmu-v5: add PX4_I2C_BUS_EXPANSION1 and 2 to all drivers that check all the busses
2018-06-06 17:31:33 +02:00
MaEtUgR
01afeed967
cmake nuttx upload: add verbatim parameter
...
to disable automatic evaluation of /dev/ttyS* expression in cygwin.
On linux verbatim seems to be default anyways. At least it doesn't get
evaluated on linux.
2018-06-06 12:32:03 +02:00
Philipp Oettershagen
ba2cf5fa9a
fw_att_control: Fix stuttering rudder in manual mode ( #9607 )
...
fw_att_control: Fix bug that caused the rudder to stutter when FW_RLL_TO_YAW_FF>0 and aileron input was supplied
2018-06-06 12:31:24 +02:00
PX4 Jenkins
64cf043481
Update submodule sitl_gazebo to latest Tue Jun 5 20:26:27 CDT 2018
...
- sitl_gazebo in PX4/Firmware (bbc104ad4c ): https://github.com/PX4/sitl_gazebo/commit/371e7c36c34d7dd45da5602a14a6ee01e9fe74db
- sitl_gazebo current upstream: https://github.com/PX4/sitl_gazebo/commit/e8b3624b9dad63a492ae58c1ce8661488128966b
- Changes: https://github.com/PX4/sitl_gazebo/compare/371e7c36c34d7dd45da5602a14a6ee01e9fe74db...e8b3624b9dad63a492ae58c1ce8661488128966b
e8b3624 2018-06-04 Elia Tarasov - tune gimbal pid gains
54c256d 2018-06-05 Poutshi - Update README.md (#211 )
1992b0d 2018-06-05 TSC21 - CMakeLists: fix targe msg links
10b0597 2018-06-01 TSC21 - validade_sdf: fix typo
8fee88e 2018-06-01 TSC21 - travis_ci: add catkin build
de983cc 2018-05-31 TSC21 - generate separate protobuff libs for each msg category
6cb9360 2018-05-31 TSC21 - restructure proto msg API (rename, organize list)
5a250a2 2018-05-31 TSC21 - proto msgs: use PascalCase convention
ea6e2da 2018-05-31 TSC21 - remove the rotors_ prefix from plugin names
7989043 2018-05-31 TSC21 - allow building with the most recent C++ compiler available on the host
b819817 2018-05-31 TSC21 - package.xml: update and reorganize package list
a20bf63 2018-05-31 TSC21 - CMakeLists: reorganize build target and dependecies list
ae7df80 2018-05-31 TSC21 - CMakeLists: remove exception for ROS when building gazebo_geotagged_images_plugin (no longer applicable)
0a4e27b 2018-05-31 TSC21 - CMakeLists: fix typo on building gazebo_motor_failure_plugin
27f977b 2018-05-31 TSC21 - gazebo_mavlink_interface: add support for Gazebo 9 for model_param func
eded9b2 2018-05-31 Elia Tarasov - set default pid gains as constants
29b5424 2018-05-31 Elia Tarasov - add default pid control gains to sdf xml
4caf496 2018-05-30 Elia Tarasov - move pid control gains to sdf xml
2018-06-06 08:40:41 +02:00
githubDLG
563200fee6
fix rgbled On and Powersave value in read mode
...
fix rgbled On and Powersave value in read mode.
In read mode, the ENABLE and SHDN is in bit 4 and bit5, so we may need a 4bit left shift to get a correct value.
2018-06-06 08:19:18 +02:00
Lorenz Meier
bbc104ad4c
Added missing fields to IST8310 mag report.
2018-06-05 23:21:53 +02:00
Elia Tarasov
384028aa7b
decrease rollrate P gain due to gimbal oscillations
2018-06-05 20:57:08 +02:00
Beat Küng
2fa8783795
mavlink_receiver: implement MAV_CMD_REQUEST_STORAGE_INFORMATION
2018-06-05 14:40:01 +02:00
mcsauder
ca5e22583f
Remove extra newline in omnibus-f4sd/usb.c to quiet git new blank line at EOF warning.
2018-06-05 09:15:21 +05:30
Beat Küng
d1a7a367ac
fix px4_getopt: add argc check for options that take an argument
...
Fixes the following corner case:
mpu9250 start -R
This would return a valid result (myoptind < argc), but myoptind pointed
to a NULL argument (and thus mpu9250 would crash).
With this patch, px4_getopt will return '?', indicating a parser error.
2018-06-04 16:33:55 +02:00
Beat Küng
2de6192f66
position_estimator_inav: add missing return
2018-06-04 16:33:55 +02:00
Beat Küng
ad587def24
test_ppm: add argc check
2018-06-04 16:33:55 +02:00
Beat Küng
dc7db9d793
iridiumsbd: add argc check
2018-06-04 16:33:55 +02:00
Beat Küng
7c79c1ae9f
pwm_input: add argc check
2018-06-04 16:33:55 +02:00
Beat Küng
cce3c270c3
lis3mdl: add argc check and use px4_getopt
2018-06-04 16:33:55 +02:00
Beat Küng
ffccba12e2
bmm150: add argc check and use px4_getopt
2018-06-04 16:33:55 +02:00
Beat Küng
009b2d4d6b
mpu9250: add argc check and use px4_getopt
2018-06-04 16:33:55 +02:00
Beat Küng
c2c3780918
mpu6000: add argc check and use px4_getopt
2018-06-04 16:33:55 +02:00
Beat Küng
a0d4e7aa90
bmi160: add argc check and use px4_getopt
2018-06-04 16:33:55 +02:00
Beat Küng
8f5fb3d0e5
bma180: add argc check
2018-06-04 16:33:55 +02:00
Beat Küng
7a3b34be74
tfmini: add argc check and fix argv index
2018-06-04 16:33:55 +02:00
Beat Küng
eabfac71d6
teraranger: add argc check and fix argv index
2018-06-04 16:33:55 +02:00
Beat Küng
554003b3f1
srf02: add argc check
2018-06-04 16:33:55 +02:00
Beat Küng
490ccc0076
sf1xx: add argc check
2018-06-04 16:33:55 +02:00
Beat Küng
2a7cd392b1
sf0x: add argc check and fix argv index
2018-06-04 16:33:55 +02:00
Beat Küng
85c676316c
mb12xx: add argc check and fix argv index
2018-06-04 16:33:55 +02:00
Beat Küng
19933b4d3b
sdp3x: add argc check and use px4_getopt
2018-06-04 16:33:55 +02:00
Beat Küng
4b8658a318
ms5525: add argc check and use px4_getopt
2018-06-04 16:33:55 +02:00
Beat Küng
d3f9f419f1
ms4525: add argc check and use px4_getopt
2018-06-04 16:33:55 +02:00
Beat Küng
61b4b2df88
ets_airspeed: add argc check and use px4_getopt
2018-06-04 16:33:55 +02:00
Beat Küng
ae8439f0af
ms5611: add argc check
2018-06-04 16:33:55 +02:00
Beat Küng
7e7905acd1
lps22hb: add argc check and use px4_getopt
2018-06-04 16:33:55 +02:00
Beat Küng
22bc35c048
bmp280: add argc check and use px4_getopt
2018-06-04 16:33:55 +02:00
Beat Küng
5f87545e48
mavlink_messages: fill in all 16 servo channels
2018-06-04 10:55:29 +02:00
Lorenz Meier
eb188996d0
Update LICENSE
...
Update year to 2018
2018-06-03 10:21:56 +02:00
Alessandro Simovic
15a44a059d
addressing review comments from #9563
2018-06-02 08:36:35 +02:00
Alessandro Simovic
52c290e234
commander: moved emergency shutdown to end of cycle
2018-06-02 08:36:35 +02:00
mcsauder
861af1dac7
Remove whitespace from the top-level CMakeLists.txt.
2018-06-02 06:22:54 +05:30
Beat Küng
537451c2a0
Debug/Nuttx.py: fix 'mon reg' does not exist
...
Also there was no register xPSR.
Stack usage calculation is still broken...
2018-06-01 19:27:30 +02:00
Simone Guscetti
700b2c6294
logger: fix overflow on SD card total bytes
2018-06-01 19:27:30 +02:00
Jun-Tao
c7cb62eb28
logger: Fix calculation of total and left bytes
2018-06-01 19:27:30 +02:00
Beat Küng
f8dd833a14
onmibus-f4sd: add ADC support
2018-05-31 19:13:00 +02:00
Beat Küng
acc1cb08d4
omnibus-f4sd cmake config: minor cleanup
2018-05-31 19:13:00 +02:00
Daniel Agar
6ca078425e
Jenkins archive nuttx bin file
2018-05-31 07:38:07 +02:00
PX4 Jenkins
35963abddd
Update submodule sitl_gazebo to latest Thu May 31 01:26:50 UTC 2018
...
- sitl_gazebo in PX4/Firmware (1ee08da9c4 ): https://github.com/PX4/sitl_gazebo/commit/651ca351fd1030870b42528db17e4fe2816d46e5
- sitl_gazebo current upstream: https://github.com/PX4/sitl_gazebo/commit/371e7c36c34d7dd45da5602a14a6ee01e9fe74db
- Changes: https://github.com/PX4/sitl_gazebo/compare/651ca351fd1030870b42528db17e4fe2816d46e5...371e7c36c34d7dd45da5602a14a6ee01e9fe74db
371e7c3 2018-04-10 korotkoves - udp port for each model instance from options file
376258d 2018-04-17 korotkoves - change file format to use common and model specific parameters
b4b7245 2018-01-17 korotkoves - function to load parameters for each model from xml file
2018-05-30 21:08:26 -07:00
johannes
1ee08da9c4
ekf log analysis: fix filter_fault_status and one-off index bug
...
- analysed_logdata: add filter_fault_status check to test_results
dictionary to prevent a missing entry exception
- analyse_logdata: fix one-off errors of list indices due to python
non-inclusive end indices
2018-05-29 23:43:34 +02:00
Daniel Agar
2fbe1428a3
Jenkins temporarily disable address sanitizer mission test and test codecov
2018-05-29 21:29:24 +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
ae75ff6c72
px4fmu-v5/board_config.h: update BOARD_BATTERY1_V_DIV
2018-05-28 15:38:29 +02:00
Beat Küng
3f00e2e6c2
mavlink mission: send an ack on duplicated last uploaded mission item
2018-05-28 11:57:35 +02:00
acfloria
ff4d95168e
IridiumSBD: Fix for multiple MT messages
...
If MT messages are waiting on the server immediately restart a new session.
2018-05-28 09:26:11 +02:00
Hamish Willee
309b5bae98
Fix link to flight reporting page ( #9541 )
...
* Fix link to flight reporting page
2018-05-28 09:21:49 +02:00
Daniel Agar
3e843ba2d2
posix main add SIGSEGV handler
2018-05-28 08:40:05 +02:00
Daniel Agar
5234ba49ad
Jenkins code coverage build
2018-05-28 08:40:05 +02:00
Hamish Willee
92d4a54012
Delete old issue template
2018-05-28 08:38:12 +02:00
Hamish Willee
1c5c3232fd
Fix link to slack (Broken)
2018-05-28 08:37:43 +02:00
Beat Küng
4f1c01de7f
fmu params: add MOT_ORDERING to adjust the motor ordering
...
Useful for 4-in-1 ESCs such as the Hobbywing XRotor Micro 40A 4in1
where the FC can be directly plugged on top.
2018-05-28 08:37:08 +02:00
Daniel Agar
e8fa94126e
set MODULE_NAME for parameters library and external ecl libraries ( #9536 )
2018-05-27 14:36:41 -04:00
Daniel Agar
2c7788060d
Jenkins mission tests delete old build first
2018-05-27 19:49:25 +02:00
acfloria
ab279d5fe9
IridiumSBD: Fixes for receiving data
...
- Catch the case where the case where the driver gets stuck because nothing is received by +SBDRB
- Add a mutex for the rx buffer
- Stop the standby loop if a mode change is already scheduled
2018-05-27 12:11:35 -04:00
acfloria
57162ff08d
Improve high latency switching and acknowledge
...
- Move publishing the telemetry status from the IridiumSBD driver to the mavlink instance
- In the commander use the iridiumsbd_status message for heartbeat in case of a high latency link
- Move positive acknowledge to the mavlink instance
- Add a failed acknowledge in the commander if no high latency link exists
2018-05-27 12:11:35 -04:00
acfloria
30fc8cd608
Add iridiumsbd_status to logger
2018-05-27 12:11:35 -04:00
acfloria
12f6affdfa
Commander: Avoid sending ack for VEHICLE_CMD_CONTROL_HIGH_LATENCY if from_external is false
2018-05-27 12:11:35 -04:00
acfloria
d8cf012641
IridiumSBD: Add iridiumsbd_status uorb message
2018-05-27 12:11:35 -04:00
Florian Achermann
84578748f4
Navigator Mission RTL ( #8749 )
...
* Add return to land to mission
This method uses the planned mission for rtl. If a landing sequence
is present it will continue the mission and land. If not it will
fly back the mission and loiter/land at the home position.
2018-05-27 12:07:06 -04:00
Lorenz Meier
fdfa764913
Update feature_request.md
2018-05-27 12:06:58 +02:00
Lorenz Meier
ab7442093a
Update bug_report.md
2018-05-27 12:06:58 +02:00
Daniel Agar
65c8142c59
[WIP] Update issue templates
...
These are the default github examples and need to be customized.
https://blog.github.com/2018-05-02-issue-template-improvements/
2018-05-27 12:06:58 +02:00
mcsauder
9122725052
Alphabetize the mavlink stream lists in mavlink_main.cpp.
2018-05-26 14:49:08 -04: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
Daniel Agar
a9275d6c5b
Jenkins don't distclean without checkout
2018-05-25 01:32:26 -04:00
Anthony Lamping
dbdf6d90a0
jenkins: don't do checkout step for ROS tests with package
2018-05-25 01:32:26 -04:00
Anthony Lamping
780d147c01
cmake: package don't use bin and share dirs
2018-05-25 01:32:26 -04:00
Anthony Lamping
ef5de4de87
cmake: package create tarball
2018-05-25 01:32:26 -04:00
Anthony Lamping
a3c13e0fbe
tools: cleanup setup for gazebo env vars
2018-05-25 01:32:26 -04:00
Anthony Lamping
0e80210f33
cmake: package px4 with sitl_gazebo plugins for jenkins ROS tests
2018-05-25 01:32:26 -04:00
Daniel Agar
a4a0ccf7f7
initial dev env setup scripts for Ubuntu and OSX ( #8818 )
2018-05-24 15:57:43 -04:00
Daniel Agar
b03cfd9afa
Jenkins remove address sanitizer mission test
2018-05-24 13:58:45 -04:00
Sander Smeets
04cc5c5611
Navigator: VTOL only apply acceptance radius calculation for FW part of back transition ( #9519 )
2018-05-23 19:46:36 -04:00
Daniel Agar
222a91c6be
mathlib delete Matrix, Quaternion, Vector
2018-05-23 17:27:09 -04:00
Daniel Agar
0d7b5c4a4e
commander accel calibration switch to matrix lib
2018-05-23 17:27:09 -04:00
mcsauder
0da01cd6f0
Alphabetize #include list in mavlink_receiver.h
2018-05-23 15:42:23 -04:00
Joshua Whitehead
3b6b1ee066
Use Nuttx defconfig defines to determine arch ( #9516 )
...
These hard coded paths assume all Nuttx targets are ARMv7-M targets. Updating them to use ${CONFIG_ARCH} and ${CONFIG_ARCH_FAMILY} instead allows for the architecture defined by the incoming Nuttx defconfig to be correctly targeted.
2018-05-23 15:20:39 -04:00
DanielePettenuzzo
28f616b1c1
crazyflie: updated default params in config file
2018-05-23 18:32:36 +02:00
DanielePettenuzzo
094490190f
crazyflie: pmw3901 driver publish gyro equal to NAN for optflow estimator interface
2018-05-23 18:32:36 +02:00
Roman
464db32567
removed error message in qurt stub implementation of putchar
...
Signed-off-by: Roman <bapstroman@gmail.com >
2018-05-23 10:08:28 -04:00
Roman
20b51d6256
sdflight config: weird changes to get things working
...
- just use external mag, if they run together the sensor_mag_0 topic gets
corrupted even though they publish on different instances
- added sleep at two places, they resolve weird boot problems like params
not being read correctly...
Signed-off-by: Roman <bapstroman@gmail.com >
2018-05-23 10:08:28 -04:00
Daniel Agar
305e1b7b95
qurt cmake dependency fixes
2018-05-23 10:08:28 -04:00
Roman
835275f1a4
df_mpu9250_wrapper: publish imu based on integrator dt, not fixed count
...
Signed-off-by: Roman <bapstroman@gmail.com >
2018-05-23 10:08:28 -04:00
Roman
f3c12bc7c7
DfBmp280Wrapper: initialise baro report
...
Signed-off-by: Roman <bapstroman@gmail.com >
2018-05-23 10:08:28 -04:00
PX4 Jenkins
9cd03817b3
Update submodule ecl to latest Wed May 23 01:26:53 UTC 2018
...
- ecl in PX4/Firmware (9e6449570a58587b7dd0f4919ea9d6f0a52f5239): https://github.com/PX4/ecl/commit/cb63f16d48d56de7ab407d2f78317ddfabd23747
- ecl current upstream: https://github.com/PX4/ecl/commit/50631e5d98e61093e85e798570503e4055e887ca
- Changes: https://github.com/PX4/ecl/compare/cb63f16d48d56de7ab407d2f78317ddfabd23747...50631e5d98e61093e85e798570503e4055e887ca
50631e5 2018-05-21 Daniel Agar - geo remove use of DBL_EPSILON
2018-05-23 02:32:22 -04:00
PX4 Jenkins
1edc368e70
Update submodule sitl_gazebo to latest Wed May 23 01:26:42 UTC 2018
...
- sitl_gazebo in PX4/Firmware (ac55a0de58 ): https://github.com/PX4/sitl_gazebo/commit/cd91ef411aff947f234eb829479e6242d9fabcf7
- sitl_gazebo current upstream: https://github.com/PX4/sitl_gazebo/commit/651ca351fd1030870b42528db17e4fe2816d46e5
- Changes: https://github.com/PX4/sitl_gazebo/compare/cd91ef411aff947f234eb829479e6242d9fabcf7...651ca351fd1030870b42528db17e4fe2816d46e5
651ca35 2018-05-18 Elia Tarasov - fix vision quaternion transformation
2018-05-23 02:19:02 -04:00
PX4 Jenkins
ff033f1e65
Update submodule DriverFramework to latest Wed May 23 01:26:47 UTC 2018
...
- DriverFramework in PX4/Firmware (381d3ccd577484a57e555ec9ad6166249d590140): https://github.com/PX4/DriverFramework/commit/e06222dd151e2f92476762e483915df5bd67929d
- DriverFramework current upstream: https://github.com/PX4/DriverFramework/commit/410e9fc4e78da91030e9d535a7f8e023a9ddd1f4
- Changes: https://github.com/PX4/DriverFramework/compare/e06222dd151e2f92476762e483915df5bd67929d...410e9fc4e78da91030e9d535a7f8e023a9ddd1f4
410e9fc 2018-05-18 Roman - mpu9250: set internal gyro dlpf frequency to 92 Hz
2018-05-23 02:14:54 -04:00
Daniel Agar
ac55a0de58
airspeed calibration log critical when ports are swapped
2018-05-22 21:02:33 -04:00
Daniel Agar
f208241074
SYS_COMPANION add RTPS client option
2018-05-22 20:37:37 -04:00
Daniel Agar
e9e01f7559
RTPS bridge send all EKF sensors
2018-05-22 20:37:37 -04:00
barzanisar
36131179d3
adding airframe config for s500 ( #9342 )
2018-05-22 18:39:28 -04:00
Daniel Agar
10cc827ce1
initial probot stale configuration ( #9508 )
2018-05-22 16:18:49 -04:00
Daniel Agar
48724e44dd
NuttX build use 'all' target within each lib
2018-05-22 15:17:21 -04:00
DanielePettenuzzo
9cad11d832
crazyflie: clean up
2018-05-22 12:21:45 +02:00
DanielePettenuzzo
22868dd5a4
crazyflie: add downsampling to pwm3901 optflow driver
2018-05-22 12:21:45 +02:00
DanielePettenuzzo
2770e1d2c7
mpu9250: remove define from integrator interval when using i2c
2018-05-22 12:21:45 +02:00
DanielePettenuzzo
8b54346d52
mpu9250: decrease sampling rate when using i2c
2018-05-22 12:21:45 +02:00
DanielePettenuzzo
9c8e97a1ba
crazyflie: optical flow and distace sensor driver fixes
2018-05-22 12:21:45 +02:00
DanielePettenuzzo
533f42adb8
crazyflie: add probe() to vl53lxx driver and set imu sampling rate to 200 Hz for this board
2018-05-22 12:21:45 +02:00
DanielePettenuzzo
ffbb53454e
crazyflie: removed crazyflie specific #ifdefs from mpu9250
2018-05-22 12:21:45 +02:00
DanielePettenuzzo
f49fd2acc7
crazyflie: increase imu reading rate
2018-05-22 12:21:45 +02:00
DanielePettenuzzo
2359b73d1f
pmw3901 driver: lock bus during transfers (avoid conflicts with sd card on crazyflie)
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
818a6759d4
nuttx_crazyflie_default.cmake: add vl53lxx driver, pmw3901 driver and topic_listener
2018-05-22 12:21:45 +02:00
DanielePettenuzzo
9c1cbdfa11
vl53lxx driver: change I2C frequency to 400 kHz
2018-05-22 12:21:45 +02:00
DanielePettenuzzo
8a4e144e86
crazyflie: add spi expansion to board configurations (modify spi bus and device in pmw3901 driver)
2018-05-22 12:21:45 +02:00
DanielePettenuzzo
2d20f31a70
vl53lxx and pmw3901 drivers: style fix
2018-05-22 12:21:45 +02:00
DanielePettenuzzo
4098d50ff9
pmw3901 driver: remove integrator and publish data at sampling rate (about 10ms)
2018-05-22 12:21:45 +02:00
DanielePettenuzzo
3377ec181e
vl53lxx driver: add saturation when distance goes beyond max_distance
2018-05-22 12:21:45 +02:00
DanielePettenuzzo
ad49509b84
vl53lxx driver: added work queue between measure and collect
2018-05-22 12:21:45 +02:00
DanielePettenuzzo
3644dd2d8c
pmw3901 driver: multiply output of integrator by a constant to match gyro data during simple rotation
2018-05-22 12:21:45 +02:00
DanielePettenuzzo
56acce4491
rcS: start vl53lxx and pmw3901 drivers
2018-05-22 12:21:45 +02:00
DanielePettenuzzo
6ca341f84e
pmw3901 driver: cleanup for pull request
2018-05-22 12:21:45 +02:00
DanielePettenuzzo
ddf75db154
vl53lxx driver: cleanup for pull request
2018-05-22 12:21:45 +02:00
DanielePettenuzzo
c73ca29f44
pmw3901 driver: added integrator
2018-05-22 12:21:45 +02:00
DanielePettenuzzo
2d3f6737d7
pmw3901 driver: fixed communication with sensor
2018-05-22 12:21:45 +02:00
Daniele Pettenuzzo
cbafe03989
added path to pmw3901 driver for fmu-v4pro cmake file
2018-05-22 12:21:45 +02:00
Daniele Pettenuzzo
10fc3b8763
created driver for pmw3901 optical flow module
2018-05-22 12:21:45 +02:00
DanielePettenuzzo
4348852363
vl53lxx driver: change to I2C4 on fmu-v5 (I2C connector)
2018-05-22 12:21:45 +02:00
Daniele Pettenuzzo
5aa4759e2d
created new distance sensor driver for vl53lxx
2018-05-22 12:21:45 +02:00
Julian Oes
f09f305866
Updated mavlink submodule
...
This fixes the compiler warning with GCC 8.
2018-05-21 16:49:52 +02:00
Daniel Agar
87a0e943d4
commander add geo dependency
2018-05-21 01:32:16 -04:00
Daniel Agar
c06e28b379
snapdragon_pwm_out add full mixer dependency
2018-05-21 01:32:16 -04:00
Daniel Agar
0334fadcde
spektrum_rc add rc library dependency
2018-05-21 01:32:16 -04:00
Daniel Agar
3e8132935f
mc_att_control add conversion library dependency
2018-05-21 01:32:16 -04:00
Daniel Agar
fc74e06341
sensors add conversion library dependency
2018-05-21 01:32:16 -04:00
nathan
59c1d3fc92
remove unnecessary param_find for mag and baro
...
in parameters.cpp
per @dagar: As soon as commander starts it runs the preflight checks which does the param_find.
2018-05-20 11:54:17 +02:00
nathan
5483b59674
bring omnibusf4 defconfig up to date via menuconfig
2018-05-20 11:54:17 +02:00
Beat Küng
527070bb35
rcS: update default params for Omnibus F4 SD
2018-05-20 11:54:17 +02:00
Beat Küng
d99b72ea41
attitude_estimator_q: set mag weight to 0 if SYS_HAS_MAG is not set
2018-05-20 11:54:17 +02:00
Beat Küng
f2516bbf5f
system_params: add SYS_HAS_MAG and SYS_HAS_BARO params
...
This allows to use PX4 on systems that do not have a mag or a baro,
such as the 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
JohannesBrand
eb6086cc39
ecl-ekf-tools: fix a bug related to time index calculation ( #9489 )
...
- fix start and end time indices calculation
2018-05-19 19:25:48 -04:00
Daniel Agar
da5a9043a7
clang-tidy modernize-use-equals-delete
2018-05-18 22:48:55 +02:00
Daniel Agar
4e32cb17df
clang-tidy modernize-use-equals-default
2018-05-18 22:48:55 +02:00
Beat Küng
9b5df10631
logger watchdog: avoid using printf from IRQ context
...
PX4_ERR calls printf, which calls lib_sem_initialize, which calls sem_wait
2018-05-18 22:23:32 +02:00
Beat Küng
b8a94bf8d4
logger: move pthread_t cast to pid_t into watchdog_initialize
...
avoids compile error on OSX, trying to cast pthread_t to pid_t
2018-05-18 22:23:32 +02:00
Beat Küng
f2703abce0
top: increase process priority to 255
...
Helps debugging busy-looping tasks.
2018-05-18 22:23:32 +02:00
Beat Küng
bda237b368
logger: ensure that fsync is called at least every second
...
In case a log ends abruptly, we will know that we have everything up to the
last second.
A test showed that CPU load and the amount of logging drops are unaffected
by this.
2018-05-18 22:23:32 +02:00
Beat Küng
dd30012b27
logger: add watchdog that boosts its priority when the writer is blocked for >1s
...
This is to guard against busy-looping tasks, so that we at least have a
log. In case the watchdog is triggered, it also logs CPU load of all
tasks.
2018-05-18 22:23:32 +02:00
Beat Küng
401eefd39b
refactor logger: add struct timer_callback_data_s used in the timer callback
2018-05-18 22:23:32 +02:00
Beat Küng
9b72080ec1
refactor logger: add an enum for the reason of printing the cpu load
2018-05-18 22:23:32 +02:00
Daniel Agar
2f553b956d
dataman file read fixed size buffer
2018-05-18 08:03:56 +02:00
Daniel Agar
af168e42b9
Jenkins run tests under address sanitizer
2018-05-18 08:03:56 +02:00
Daniel Agar
ac4053fbd6
Update submodule ecl to latest Fri May 18 01:26:47 UTC 2018 ( #9484 )
...
* cb63f16 2018-05-17 Daniel Agar - cmake cache ECL source directory path to work with catkin (#447 )
* fixes #9447
2018-05-18 00:15:15 -04:00
Daniel Agar
d652e019c5
Jenkins run VTOL standard mission test under ASAN
2018-05-17 22:49:21 -04:00
Daniel Agar
dc1e91137a
cmake add bloaty helpers for nuttx and use in Jenkins
2018-05-17 18:27:00 -04:00
Daniel Agar
f607ea5180
auav-x21 sync with px4fmu-v3 modules list
2018-05-17 14:44:07 -04:00
Beat Küng
11f4631b2a
fix commander: initialize tune_durations ( #9468 )
...
Fixes #9451
2018-05-16 10:20:28 -04:00
Jake Dahl
ad4b3a738a
set the range to the correct value
2018-05-16 08:35:55 +02:00
Jake Dahl
306d1e7e24
a few corrections
2018-05-16 08:35:55 +02:00
Jake Dahl
6324a8851d
Complete refactor of the lis3mdl driver. This has been bench tested, flight tested, and verified functional.
2018-05-16 08:35:55 +02:00
PX4 Jenkins
8a114c2f05
Update submodule ecl to latest Mon May 14 20:26:35 CDT 2018
...
- ecl in PX4/Firmware (bcebb33f8618c8d1827ae65b904e9d85f2610b52): https://github.com/PX4/ecl/commit/372f9f430bb0edb901b3265ecd0cddf8ee4d1ffb
- ecl current upstream: https://github.com/PX4/ecl/commit/bae4b8a5e7786304e33deaf33bbbcbb256fdda1e
- Changes: https://github.com/PX4/ecl/compare/372f9f430bb0edb901b3265ecd0cddf8ee4d1ffb...bae4b8a5e7786304e33deaf33bbbcbb256fdda1e
bae4b8a 2018-05-11 Bart Slinger - remove superfluous elseif (#431 )
16976d3 2018-05-11 Paul Riseborough - Merge branch 'pr-ekfOptFlowFixes'
75e6590 2018-05-10 Paul Riseborough - EKF: fix bug causing height offset when GPS use stops
e8e9e34 2018-05-10 Paul Riseborough - EKF: fix bug causing height offset when GPS use stops
6cadc92 2018-05-09 Paul Riseborough - EKF: Don't reject saturated flow data when it is the only aiding source
bf902e5 2018-05-09 Paul Riseborough - EKF: Prevent flow motion check false positives
bdf5b3e 2018-05-07 Paul Riseborough - EKF: Don't assume large position uncertainty when starting optical flow nav
e26711a 2018-05-05 Paul Riseborough - EKF: relax terrain update requirements for continuing optical flow use
868bc01 2018-05-05 Paul Riseborough - EKF: Relax minimum required range finder measurement rate
02963a8 2018-05-05 Paul Riseborough - EKF: relax optical flow on ground motion checks
24b005e 2018-05-03 Paul Riseborough - EKF: range finder aiding logic fixes
0c0a660 2018-05-03 Paul Riseborough - EKF: Decouple range finder use criteria checking and selection
6708bec 2018-04-29 Paul Riseborough - EKF: Don't auto select range finder for height when on ground.
0a63052 2018-04-26 Paul Riseborough - EKF: Fix false triggering of optical flow bad motion checks
f9d4934 2018-04-19 Paul Riseborough - EKF: update comments
82de314 2018-04-18 Paul Riseborough - EKF: Don't use optical flow if GPS is good and the vehicle is not using range finder for height
389786e 2018-03-12 Paul Riseborough - EKF: Stop using EV for yaw when GPS fusion starts
4ab7823 2018-02-26 Paul Riseborough - EKF: Add persistence criteria to GPS fail check
67d71ca 2018-02-26 Paul Riseborough - EKF: allow GPS fallback if quality bad and alternative aiding available
bd59e38 2018-02-26 Paul Riseborough - EKF: always run GPS checks
b227aca 2018-05-05 Daniel Agar - geo_lookup fix table bounds
e494a4e 2018-05-05 Daniel Agar - Jenkins set git username and email with environment variables
3639087 2018-05-05 Daniel Agar - cmake and Jenkins add basic address santiizer test buld
1fba622 2018-05-05 Daniel Agar - travis-ci basic build script
cde2ee9 2018-05-05 Daniel Agar - cmake ignore missing-field-initializers
2100127 2018-05-05 Daniel Agar - geo: zeroing static unnecessary
0f12db5 2018-05-03 Daniel Agar - travis-ci enable coverity_scan
aceab8c 2018-05-05 Daniel Agar - Jenkins upload coverage to codecov.io
5780cd3 2018-05-05 Daniel Agar - Jenkins create PX4/Firmware test branch and push (#436 )
cf957b5 2018-05-04 Daniel Agar - code coverage cmake and Jenkins support
4e0cd45 2018-05-03 Daniel Agar - doxygen cmake and Jenkins support
2018-05-15 19:18:36 +02:00
Mohammed Kabir
bbcf5b1b65
logger : log ping topic
2018-05-15 18:57:34 +02:00
Mohammed Kabir
92457bcafd
mavlink : implement full ping protocol and link latency reporting
2018-05-15 18:57:34 +02:00
Mohammed Kabir
8d6e209888
msg : add ping message
2018-05-15 18:57:34 +02:00
Julien Lecoeur
e380adb9b6
Fix format with Artistic Style 3.1
2018-05-15 10:38:49 -04:00
Julien Lecoeur
b299d6222a
Astyle: allow version 3.1
2018-05-15 10:38:49 -04: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
e33da0a821
fw_att_control set default yaw rate max and update parameter descriptions
2018-05-14 00:56:46 +02:00
David Riseborough
a32333994f
The single line UART setup was replaced with a locked down configuration.
...
As per issue #9428 , this code change locks down the termios configuration
for the UART to non-canonical, binary tx/rx, 8 bits, 1 stop bit, no parity.
2018-05-11 17:11:40 +02:00
TSC21
7220fb1b21
update sitl_gazebo submodule
2018-05-11 14:25:28 +02:00
Beat Küng
12436c1d64
fix attitude_estimator_q: swap quaternion multiplication & fix from_dcm init
...
Quaterion::from_dcm does not set *this, but just returns the resulting
Quaterion.
2018-05-11 09:34:26 +02:00
Daniel Agar
421b01e677
attitude_estimator_q move to matrix lib
2018-05-11 09:34:26 +02:00
Beat Küng
9e24875131
attitude_estimator_q: fuse accel data only if close to 1g if GPS velocity not used
...
This reduces attitude drift on vehicles w/o GPS. The default behavior is
unchanged, to use it, disable ATT_ACC_COMP.
2018-05-11 09:34:26 +02:00
Beat Küng
f77b8d9aa8
attitude_estimator_q: remove double initialization
2018-05-11 09:34:26 +02:00
Beat Küng
54fac26327
attitude_estimator_q: allow it to be used on boards w/o a mag
...
By setting ATT_W_MAG to 0
2018-05-11 09:34:26 +02:00
Matthias Grob
58dd7be12a
Cygwin: enable arm nuttx upload within cygwin
...
In the Cygwin environment the native Windows serial COM# ports get mapped
to /dev/ttyS# for POSIX compatibility. While # is one number lower inside
the environment than the COM port number because it's 0 indexed instead
of 1.
I added the necessary handling to all the dependent parts I found which
allows uploading to /dev/ttyS# when the cygwin platform is detected.
Now the usual "make px4fmu-v4 upload" and
"./Tools/upload.sh build/px4fmu-v4_default/px4fmu-v4_default.px4" work.
2018-05-09 11:31:42 +02:00
Beat Küng
c6b0d5c76a
navigator: don't complain 'Using minimum takeoff altitude' in case of numerical inaccuracies
...
Happend in SITL.
2018-05-09 07:59:46 +02:00
Beat Küng
473fa15026
BlockParam: : ensure result of strncpy is null-terminated
2018-05-09 07:59:46 +02:00
Beat Küng
258b1ea473
navigator: ensure result of strncpy is null-terminated
2018-05-09 07:59:46 +02:00
Beat Küng
8c638ac88c
sdlog2: check result of snprintf and ensure result of strncpy is null-terminated
2018-05-09 07:59:46 +02:00
Beat Küng
f2092dd690
mixer_test: use snprintf instead of strncpy to fix compiler warning
...
compiler warning:
../../src/systemcmds/tests/test_mixer.cpp: In member function ‘bool MixerTest::loadAllTest()’:
../../src/systemcmds/tests/test_mixer.cpp:202:18: error: ‘char* strncpy(char*, const char*, size_t)’ output truncated before terminating nul copying 1 byte from a string of the same length [-Werror=stringop-truncation]
(void)strncpy(&buf[strlen(MIXER_ONBOARD_PATH)], "/", 1);
2018-05-09 07:59:46 +02:00
Beat Küng
289e618b6c
mavlink: fix compiler warnings with GCC 8.0.1
...
-Wno-extra-semi is not valid for C code
2018-05-09 07:59:46 +02:00
Beat Küng
8bd61a9330
uORBDevices: avoid memset, use braced initializer instead
2018-05-09 07:59:46 +02:00
Beat Küng
19a12ba75d
logger: avoid memset, use braced initializer instead
2018-05-09 07:59:46 +02:00
Beat Küng
3dd791c92c
vfile: rename fops to fix shadowing warning
...
for GCC 8.0.1
2018-05-09 07:59:46 +02:00
Beat Küng
13ab5ed0d0
px4_main_t: fix method declaration throughout the code base
...
px4_main_t is defined as:
typedef int (*px4_main_t)(int argc, char *argv[]);
which matches with the definition in NuttX, given to task_create
2018-05-09 07:59:46 +02:00
Beat Küng
9772380779
posix main: avoid declaring px4_main_t, include the correct header instead
2018-05-09 07:59:46 +02:00
Matthias Grob
2c56ceec93
astyle: switch condition to empty string check
...
Thanks to @bkueang 's review comment I switched to an explicit check for
an empty sting instead of a condition that could be theoretically true
in other cases and is less readable.
Type "man test" on your terminal to read up what -n stands for.
2018-05-09 07:54:22 +02:00
Matthias Grob
ef7e885644
Makefile: fix parameter -e printed by echo
...
It seems that on linux only inside a makefile the parameter after the echo
command gets printed if no single quoted sting comes afterwards so I had
to switch to single quotes such that I can use the parameter.
2018-05-09 07:54:22 +02:00
Matthias Grob
4e139d2426
Makefile: fix color output of makefile echos
...
Force interpretation of backslash escapes with the parameter -e of echo.
Switch to a lighter blue because on certain terminals default blue is
hard to read on black background.
2018-05-09 07:54:22 +02:00
Matthias Grob
72db7d3396
astyle: fix display language dependency
...
The shell script which checks the style relies on greping for the
keyword "Formatted" in the output of astyle. But the program has
localization support and will output in other languages e.g. german.
This leads to all style checks always succeeding. I only tested this
on Windows in Cygwin but I can imagine the problem also exists in
non-english Ubuntu installations.
Solution is the parameter --formatted of astyle which only produces
any output if there was something to fix. This allows for a display
language independent condition for an empty string inside the shell
script.
2018-05-09 07:54:22 +02:00
Beat Küng
71b4ad62a1
ekf2 replay: handle multi multiple GPS instances ( #9433 )
2018-05-09 10:00:59 +10:00
Hamish Willee
9a7195cb2d
Change offboard mode fallback option back to Manual
2018-05-08 07:04:32 +02:00
Hamish Willee
19032b91e3
Change RTL @group to Return Mode
2018-05-08 07:04:32 +02:00
Hamish Willee
66d4b495d4
Return params to reflect current mode names
2018-05-08 07:04:32 +02:00
Hamish Willee
09986237b6
Navigator failsafe action params to reflect current mode names
2018-05-08 07:04:32 +02:00
Hamish Willee
2c1eb443ca
Geofence failsafe action params to reflect current mode names
2018-05-08 07:04:32 +02:00
Hamish Willee
42d1708d7c
Commander failsafe action params to reflect current mode names
2018-05-08 07:04:32 +02:00
Daniel Agar
ffbd75d1b9
adis16477 driver
2018-05-07 00:07:29 +02:00
Daniel Agar
5de5d6ea49
Jenkins simple mission code coverage build
2018-05-05 19:49:50 -04:00
Daniel Agar
1b5396436e
Update submodule genmsg to latest Fri May 4 20:26:30 CDT 2018 ( #9416 )
...
- genmsg in PX4/Firmware (3ed093ba59 ): https://github.com/ros/genmsg/commit/3cea1fe528cd7ecdae7f8930fe90451271aec937
- genmsg current upstream: https://github.com/ros/genmsg/commit/a189fc78558e7276df59d2961cfe4f8b4de08a8b
- Changes: https://github.com/ros/genmsg/compare/3cea1fe528cd7ecdae7f8930fe90451271aec937...a189fc78558e7276df59d2961cfe4f8b4de08a8b
a189fc7 2018-05-01 Dirk Thomas - 0.5.11
c641725 2018-05-01 Dirk Thomas - update changelog
2018-05-05 16:48:09 -04:00
alessandro
3ed093ba59
Add baro temperature to sensor voter observation ( #9411 )
...
When determining the confidence of a barometer sensor, we should
consider the temperature as well, alongside the pressure.
Low-noise baros can show the same pressure reading for a second
or two when not moving and in an indoor location.
2018-05-04 12:40:10 -04:00
Daniel Agar
6b94ef1a03
mpu9250 allow a 2nd internal spi instance and remove px4fmu-v4 fake external ( #9386 )
2018-05-04 12:38:43 -04:00
Jake Dahl
92f15283c1
changed int to float
2018-05-04 12:08:55 -04:00
Daniel Agar
df042ab20e
cmake update option to enable doxygen generation (off by default)
2018-05-04 01:08:58 -04:00
Daniel Agar
2e92484325
ecl update to latest master with separate libraries ( #9406 )
2018-05-03 23:48:09 -04:00
Daniel Agar
94d1593e5b
doxygen move to cmake and cleanup ( #9234 )
2018-05-03 22:07:24 -04:00
Martina Rivizzigno
41b0db2860
vmount: input_mavlink point gimbal towards current triplet instead of next ( #9405 )
2018-05-03 12:26:04 -04:00
Daniel Agar
9649a9d7a5
update PX4/ecl submodule to latest master
...
- eec71d1 (HEAD, origin/master, origin/HEAD, master) EKF get_ekf_soln_status() fix pred_pos_horiz_abs
- 1bd1809 EKF: Fix bug causing simultaneous range and baro height fusion (#429 )
2018-05-03 09:25:54 -04:00
Mohammed Kabir
fc07b23f41
logger : log timesync topic
2018-05-03 09:59:16 +02:00
Mohammed Kabir
40df193700
sdlog2 : remove old timesync logging
2018-05-03 09:59:16 +02:00
Mohammed Kabir
39bb65ffd7
mavlink : add advanced timesync algorithm
2018-05-03 09:59:16 +02:00
Daniel Agar
6b2daef5ec
lps22hb barometer driver
2018-05-02 09:05:28 -04:00
Daniel Agar
598743bbdc
delete srf02_i2c which is nearly identical to srf02 ( #9396 )
2018-05-02 08:50:12 -04:00
Daniel Agar
977ab4e7b8
improve end to end control latency measurement ( #9388 )
2018-05-02 03:03:32 -04:00
Daniel Agar
edea1b65cd
uORB delete unused Flavor
2018-05-02 00:48:46 -04:00
David Sidrane
cc061885f0
nxphlite-v3:Remove OTG config qualifier
...
This board supports USB but not doen not support OTG.
2018-05-01 11:33:29 -07:00
PX4 Jenkins
1d9bf83c51
Update submodule nuttx to latest Mon Apr 30 20:26:28 CDT 2018
...
- nuttx in PX4/Firmware (8404889098 ): https://github.com/PX4-NuttX/nuttx/commit/65b87d092a6d5f776ab5f9dbb095d31e45861789
- nuttx current upstream: https://github.com/PX4-NuttX/nuttx/commit/0ac630e6d0e90480121c74d59a92676f0b951dce
- Changes: https://github.com/PX4-NuttX/nuttx/compare/65b87d092a6d5f776ab5f9dbb095d31e45861789...0ac630e6d0e90480121c74d59a92676f0b951dce
0ac630e 2018-04-28 David Sidrane - [BACKPORT] Merged in david_s5/nuttx/master_kinetis_usb_fixes (pull request #634 )
2018-05-01 11:33:29 -07:00
Daniel Agar
1b3803fbe5
px4io driver remove unnecessary class fields
2018-05-01 17:55:47 +02:00
Daniel Agar
8404889098
delete unused ADCSIM
...
- set BOARD_NUMBER_BRICKS to 0 for boards without analog power bricks
2018-04-29 21:48:54 -04:00
Daniel Agar
ea3acb7121
cmake remove circular linking and reorganize
...
- px4_add_module now requires MAIN
- px4_add_library doesn't automatically link
2018-04-29 21:48:54 -04:00
Lorenz Meier
a8bc3d187f
Update MAVLink submodule
...
This updates the MAVLink submodule to the current version including the trajectory WIP messages.
2018-04-29 20:17:56 +02:00
aklimaj
25528a5ae0
Adds support for another MPU9250 or MPU6500 on px4fmu-v4 internal SPI bus. Adds PX4_SPI_BUS_EXT, PX4_SPIDEV_EXT_MPU to board config and spi.c. Call 'mpu9250 -S start' to enable.
2018-04-28 15:16:41 +02:00
Beat Küng
c7c3e23f0d
MC acro: update param descriptions
2018-04-27 22:34:55 +02:00
johannes
b98cd6ecb5
ecl-ekf tools: separate the analysis from the visualization and preprocessing
...
- move the analysis parts of the process_logdata_ekf script to
the 'analyse_ekf' function in a new file analyse_logdata_ekf.py
- return a test_results dictionary from analyse_ekf
- still process log loading, preprocessing and results file output in
process_logdata_ekf
- add command line argument to toggle plotting
- add command line argument to use different dictionary to check_level_dict.csv
2018-04-27 22:34:17 +02:00
johannes
a0b4bbed5e
ecl-ekf tools: clean up - move code to correct scope
...
- move code that is needed for general analysis out of plot scope
2018-04-27 22:34:17 +02:00
Beat Küng
12e967173d
MC: set default MPC_THR_MAX & MPC_MANTHR_MAX to 1
...
With the updated mixer (#9062 ) it's safe to set maximum thrust to 1 (in
both cases, if MC_AIRMODE is set, or not set).
So I see no reason to limit the maximum thrust.
2018-04-26 14:37:48 +02:00
Beat Küng
f2cee9970c
MC acro: add separate params to configure yaw expo
...
So that it can be customized better according to personal preferences.
The limitation of 16 chars did not allow to use a better param name.
2018-04-26 14:17:16 +02:00
Beat Küng
58c757a9db
mc_att_control_params: increase max acro rates to 1800
...
This matches the maximum rates for the attitude controller.
2018-04-26 14:17:16 +02:00
Beat Küng
332a612f35
mc_att_control_main: do not apply the yaw weight for the feedforward term
...
The meaning of the yaw weight changed with #8003 :
- before, the yaw weight decreased with increasing tilt angle error, so
it was mostly 1
- now, it is constant and depends on the tuning gains (around 0.4 by default)
It means that #8003 reduced the feedforward term, and we get the closer
behavior as before with this change.
It also reduces coupling between different parameters.
2018-04-25 16:33:09 +02:00
Beat Küng
202505fd73
mixer_multirotor: fix initialization of _outputs_prev
...
memset (http://www.cplusplus.com/reference/cstring/memset/ ) interprets
the value argument as unsigned char, so passing a float will not work.
2018-04-25 16:33:09 +02:00
Beat Küng
4ef3d258eb
imu drivers: do not set on-chip filter based on driver filter setting
...
The description of IMU_GYRO_CUTOFF was incorrectly saying that it only
affects the driver filtering, but in fact it also set the on-chip filter
to the next higher supported value. This patch fixes that.
And because the IMU_GYRO_CUTOFF and not the IMU_ACCEL_CUTOFF was used for
the on-chip filter, after #9070 which sets the default gyro filter to 80,
we were effectively using a dlpf of 98 Hz.
For this reason this patch changes the on-chip cutoff frequency to 98 as
well, so that the overall default behavior is unchanged.
2018-04-25 16:32:06 +02:00
Daniel Agar
fbbe1f5288
commander use new time literals
2018-04-24 00:02:48 -04:00
Paul Riseborough
cbb4559c15
ecl : update to version that fixes wind relative dead reckoning bug
2018-04-24 00:02:48 -04:00
Daniel Agar
35cb2d0a9e
EKF2 fix airspeed orb_copy check
2018-04-24 00:02:48 -04:00
Paul Riseborough
477a42e6f6
ekf2: Enable adjustment of nav validity timeout
2018-04-24 00:02:48 -04:00
Daniel Agar
89ad46dd15
commander delete unused DIFFPRESS_TIMEOUT
2018-04-24 00:02:48 -04:00
Daniel Agar
cd69a573b5
commander restore MC nav failure latch
2018-04-24 00:02:48 -04:00
Daniel Agar
f13f8f9c64
commander add COM_POS_FS_PROB and COM_POS_FS_DELAY metadata limit
2018-04-24 00:02:48 -04:00
Daniel Agar
fc26fd99bd
commander move remaining position failsafe params to class and cleanup
2018-04-24 00:02:48 -04:00
Daniel Agar
439ed7d3f5
posix sitl ekf2 plane model add fw defaults
...
- EKF2 airspeed fusion and synthetic sideslip fusion
- commander eph/epv failsafe thresholds appropirate for FW
2018-04-24 00:02:48 -04:00
Daniel Agar
fa9f400dbd
commander update super block parameters
2018-04-24 00:02:48 -04:00
Daniel Agar
f131409bce
FW defaults set commander eph, epv, evh thresholds
2018-04-24 00:02:48 -04:00
Daniel Agar
b70e7433dc
commander add parameters for eph, epv, evh requirements
2018-04-24 00:02:48 -04:00
alessandro
255cc12c48
tap_esc: removed a zero-memset
2018-04-23 12:08:51 +02:00
alessandro
c0efe2db56
tap_esc: replaced PWM_DEFAULT_UPDATE_RATE
2018-04-23 12:08:51 +02:00
alessandro
d7c9f5c101
tap_esc: paranoid check
2018-04-23 12:08:51 +02:00
alessandro
c869fa3431
tap_esc: moved device path to drv_tap_esc.h
2018-04-23 12:08:51 +02:00
Daniel Agar
5f175f9712
Update submodule nuttx to latest px4_firmware_nuttx-7.22+ ( #9354 )
...
- Changes: https://github.com/PX4-NuttX/nuttx/compare/fe0dc6c41a6bd7d942945459ac960ff2d3e1f4fc...65b87d092a6d5f776ab5f9dbb095d31e45861789
65b87d0 2018-04-19 Daniel Agar - [PX4 BACKPORT] Merged in dagar/nuttx/pr-stm32f777_typo (pull request #628 )
2018-04-23 00:18:19 -04:00
Daniel Agar
0e823c82b6
FW landing check if prev valid before using ( #9284 )
2018-04-21 12:03:46 -04:00
Roman
4be4b9810e
mpu9250 wrapper: support updating gyro & accel cutoff via parameter
...
- useful for tuning snapdragon flight
Signed-off-by: Roman <bapstroman@gmail.com >
2018-04-20 11:53:31 -04:00
alessandro
b066ef3427
libecl: checked out recent commit of master ( #9339 )
...
* ECL update includes physical constants for https://github.com/PX4/Firmware/pull/9319
2018-04-19 11:25:39 -04:00
CarlOlsson
56150c28dd
ll40ls: increase the sleep time after resetting registers
...
Signed-off-by: CarlOlsson <carlolsson.co@gmail.com >
2018-04-19 07:52:15 +02:00
CarlOlsson
cbf3cee096
ll40ls: increase the number of samples used to find a correlation peak for LitarLite
...
Signed-off-by: CarlOlsson <carlolsson.co@gmail.com >
2018-04-19 07:52:15 +02:00
Daniel Agar
d75fd72c02
stop manually defining physical constants
2018-04-19 07:24:58 +02:00
Daniel Agar
7538ea44e3
Jenkins add VTOL tiltrotor mission test
2018-04-19 07:21:00 +02:00
Roman
7fa91ad3dd
posix-configs: increase tailsitter land speed
...
Signed-off-by: Roman <bapstroman@gmail.com >
2018-04-18 17:23:38 -04:00
Roman
bb4b5e7c1d
posix-configs: set tailsitter SITL SYS_AUTOSTART to quad tailsitter
...
Signed-off-by: Roman <bapstroman@gmail.com >
2018-04-18 17:23:38 -04:00
Roman
694df08b37
posix-configs: better tailsitter front transition parameters
...
- reduce height increase during front transition
Signed-off-by: Roman <bapstroman@gmail.com >
2018-04-18 17:23:38 -04:00
Daniel Agar
e0cb5a6164
Jenkins add tailsitter CI mission
2018-04-18 17:23:38 -04:00
Roman
e7e791fb1a
tailsitter: use forward transition throttle for climb-rate controlled mode
...
- the mc pos controller will decrease throttle during the transition
and thus the vehicle will not pick up enough airspeed to complete the
transition
Signed-off-by: Roman <bapstroman@gmail.com >
2018-04-18 17:23:38 -04:00
Roman
0f1c9504d5
FixedWingPositionControl: rotate attitude consistenly for tailsitters
...
Signed-off-by: Roman <bapstroman@gmail.com >
2018-04-18 16:20:15 +02:00
Beat Küng
e46e6f99f3
module template: move documentation to a new category 'template' ( #9324 )
2018-04-18 08:53:52 -04:00
alessandro
a05bf390c1
rc_check: typos in mavlink error
2018-04-18 13:15:16 +02:00
alessandro
5ebe76207d
tap_esc: formatting and renaming
2018-04-18 07:48:24 +02:00
alessandro
05548829d3
tap_esc: addressing review comments for #9313
2018-04-18 07:48:24 +02:00
alessandro
4f5644c0ef
tap_esc: more cleanup
...
- removing unused variables
- removing unused code blocks
- improving code readability
- initialising members at definition
2018-04-18 07:48:24 +02:00
alessandro
1ab2d22e42
tap_esc: removed redundant _initialized member
2018-04-18 07:48:24 +02:00
alessandro
b49ccb889c
tap_esc: removed unused NO_VERIFY_CONFIG
2018-04-18 07:48:24 +02:00
alessandro
edf6f6c97a
tap_esc: removed unnecessary includes
2018-04-18 07:48:24 +02:00
alessandro
fceffb1d01
tap_esc: removed unused mode var/struct
2018-04-18 07:48:24 +02:00
Alessandro Simovic
b71ac78959
tap_esc: converted to module
2018-04-18 07:48:24 +02:00
Alessandro Simovic
5da7beb8f5
tap_esc_common: docs & function return types etc.
2018-04-18 07:48:24 +02:00
Alessandro Simovic
f95b823e31
tap_esc: moved common functions to tap_esc_common
2018-04-18 07:48:24 +02:00
Alessandro Simovic
4ab8c2a682
tap_esc: made _uart_fd a class member
2018-04-18 07:48:24 +02: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
Hamish Willee
1a0c312f28
Fix description of VT_FW_ALT_ERR
2018-04-17 08:28:05 +02:00
Daniel Agar
7bc3a12efe
commander move telemetry checks to new preflightcheck helper
2018-04-16 20:43:33 -04:00
Daniel Agar
64fb4b43b6
commander preflightCheck don't report failures during calibration
2018-04-16 20:43:33 -04:00
Daniel Agar
2271b3f127
commander preflight checks pass status and status_flags messages
2018-04-16 20:43:33 -04:00
Daniel Agar
f2104217d4
commander arm_auth check last
2018-04-16 20:43:33 -04:00
Daniel Agar
a2bc0bd947
commander prearm_check limit simultaneous error messages
2018-04-16 20:43:33 -04:00
Daniel Agar
55596fad20
commander move safety check to prearm
2018-04-16 20:43:33 -04:00
Daniel Agar
a4703c6be4
commander arming state transition consolidate HIL special checks and remove atomic
2018-04-16 20:43:33 -04:00
Daniel Agar
54ea78898c
commander arming state transition delete useless errors
2018-04-16 20:43:33 -04:00
Daniel Agar
1400652724
commander arming state machine pass checks by default
...
- this is needed for the unit tests
2018-04-16 20:43:33 -04:00
Daniel Agar
f81a1aedcd
commander state machine add global position check
2018-04-16 20:43:33 -04:00
Daniel Agar
729c98d9e2
commander move avionics rail voltage check out of state machine
...
- add preflight_check helper
2018-04-16 20:43:33 -04:00
Daniel Agar
8931f1a75c
commander set status_flags.usb_connected directly and delete static
2018-04-16 20:43:33 -04:00
Daniel Agar
415c5f13bb
commander move power check to prearm_check
2018-04-16 20:43:33 -04:00
Daniel Agar
c679703da4
commander move arm authorization to prearm_check
2018-04-16 20:43:33 -04:00
Daniel Agar
082126610d
commander status flags delete condition_system_prearm_error_reported
...
- this flag often results in hiding useful information, or adding
useless information to the mavlink console
2018-04-16 20:43:33 -04:00
Daniel Agar
8f543d300d
commander COMPONENT_ARM_DISARM remove useless arm error
2018-04-16 20:43:33 -04:00
Daniel Agar
c673c9f531
commander preflight sensor failure report one at a time
2018-04-16 20:43:33 -04:00
Daniel Agar
bb13b602e2
commander arming_state_transition cleanup preflight and prearm calls
...
- only call prearm if preflight passes
- prearm always provide feedback
2018-04-16 20:43:33 -04:00
Daniel Agar
208e320975
commander prearm_check is always prearm
2018-04-16 20:43:33 -04:00
Daniel Agar
e73317a720
commander preflightCheck fail silently for the 2 seconds (rather than skip checks entirely)
2018-04-16 20:43:33 -04:00
Daniel Agar
e5d9c826d8
commander state machine fix preflight and prearm error
...
- fixes #9155
2018-04-16 20:43:33 -04:00
Daniel Agar
35bf37d617
commander state machine helper shorten names
2018-04-16 20:43:33 -04:00
Simone Guscetti
8a7dc1b320
commander: Remove usb_ connected flag on battery warnings
...
Battery warning gets only fired if a battery is inserted.
2018-04-16 14:33:43 -04:00
Thomas Stastny
71170dce0a
mavlink: HIGHRES_IMU set diff_pressure in fields_updated ( #9296 )
2018-04-16 11:43:52 -04:00
alessandro
c16e17f47b
mag_calibration: only allocate as much memory as needed
2018-04-16 14:49:45 +02:00
Beat Küng
123f11fcdd
land_detector: use user-defined literals for time constants
2018-04-14 13:45:57 +02:00
Beat Küng
e98919cf3c
drv_hrt: add user-defined integer literals for time constants
...
The goal is to improve the readability for expressions like:
if (hrt_elapsed_time(&start_time) > 8000000)
Available since C++11
2018-04-14 13:45:57 +02:00
Daniel Agar
17beeb13c4
Jenkins set CCACHE_BASEDIR on Mac
2018-04-14 02:11:30 -04:00
Daniel Agar
e9aa79e309
Update submodule ecl to latest Fri Apr 13 20:26:41 CDT 2018 ( #9303 )
...
- ecl in PX4/Firmware (163fdded13d1cb48ea4849a4596feaa7025cb796): https://github.com/PX4/ecl/commit/ba2b9dfdd96d50d697165407b88b5bc94cdef84c
- ecl current upstream: https://github.com/PX4/ecl/commit/02e319431b948f660f8548707849489d6c822fad
- Changes: https://github.com/PX4/ecl/compare/ba2b9dfdd96d50d697165407b88b5bc94cdef84c...02e319431b948f660f8548707849489d6c822fad
02e3194 2018-04-11 Daniel Agar - cmake remove embedded vim settings
91b5bfe 2018-04-11 Daniel Agar - attitude_fw remove unused perf include
02055ac 2018-04-09 Paul Riseborough - EKF: Fix non GPS aiding data reset logic (#418 )
2018-04-13 23:43:48 -04:00
Daniel Agar
90b81cf4c4
move check stack to cmake and run in Jenkins
2018-04-13 23:24:34 -04:00
PX4 Jenkins
0c9f483581
Update submodule DriverFramework to latest Fri Apr 13 20:26:36 CDT 2018
...
- DriverFramework in PX4/Firmware (1297859680ce15980a970c95d7caa95be67957c7): https://github.com/PX4/DriverFramework/commit/f98ea65e9bd35a8d2bdedd39e519b7320fe82b16
- DriverFramework current upstream: https://github.com/PX4/DriverFramework/commit/e06222dd151e2f92476762e483915df5bd67929d
- Changes: https://github.com/PX4/DriverFramework/compare/f98ea65e9bd35a8d2bdedd39e519b7320fe82b16...e06222dd151e2f92476762e483915df5bd67929d
e06222d 2018-04-11 Daniel Agar - cmake change px4_add_module -> px4_add_library
2018-04-13 23:22:43 -04:00
Daniel Agar
119fe0a24f
Update submodule v2.0 to latest Fri Apr 13 20:26:31 CDT 2018
...
- v2.0 in PX4/Firmware (23017d051b7ff6686c8c8ff025a8e98af094780a): https://github.com/mavlink/c_library_v2/commit/163d4c84b9eb58a02cab94d039f54c303977d991
- v2.0 current upstream: https://github.com/mavlink/c_library_v2/commit/c55dd0ec312a667f28b0cab4f1fe697d2888c00c
- Changes: https://github.com/mavlink/c_library_v2/compare/163d4c84b9eb58a02cab94d039f54c303977d991...c55dd0ec312a667f28b0cab4f1fe697d2888c00c
c55dd0e 2018-04-12 PX4BuildBot - autogenerated headers for rev https://github.com/mavlink/mavlink/tree/292874beed6bf756be45421bd2ae2420de921f2b
e2916e5 2018-04-10 PX4BuildBot - autogenerated headers for rev https://github.com/mavlink/mavlink/tree/012765b923546224ef928caeb86c72d5a78a433a
2018-04-13 23:21:45 -04:00
PX4 Jenkins
8c9b941e60
Update submodule sitl_gazebo to latest Fri Apr 13 20:26:27 CDT 2018
...
- sitl_gazebo in PX4/Firmware (4ffa98aa2a ): https://github.com/PX4/sitl_gazebo/commit/28921bca9df9a212675b8e888c926d1ec6f6b28e
- sitl_gazebo current upstream: https://github.com/PX4/sitl_gazebo/commit/0df46c53b14ef4241b33fb7a74a3cb6f9d83c6dd
- Changes: https://github.com/PX4/sitl_gazebo/compare/28921bca9df9a212675b8e888c926d1ec6f6b28e...0df46c53b14ef4241b33fb7a74a3cb6f9d83c6dd
0df46c5 2018-04-13 Tully Foote - Only use catkin env hook command if building with catkin.
38c0d07 2018-04-12 Tully Foote - Add package to GAZEBO_RESOURCE_PATH to make the worlds accessible.
5811488 2018-04-11 Tully Foote - updating OpticalFlow submodule
7c79bd7 2018-04-10 Tully Foote - Add environment hooks to export paths for plugins and resources.
2018-04-13 23:21:05 -04:00
Daniel Agar
4ffa98aa2a
Jenkins add OSX builds and disable circleci ( #9198 )
2018-04-12 12:19:44 -04:00
Beat Küng
d4faaff854
logger: remove some unneeded SITL topics
...
We got over the limit
2018-04-12 11:32:15 +02:00
Roman
c206e0f1ac
vtol_type.cpp: close pwm output device file descriptor
...
Signed-off-by: Roman <bapstroman@gmail.com >
2018-04-12 09:19:47 +02:00
Roman
bd434636e9
vtol_type: avoid code duplication
...
- created one method which has access to the pwm output device
Signed-off-by: Roman <bapstroman@gmail.com >
2018-04-12 09:19:47 +02:00
Roman
733d773bcc
drv_pwm_output: include board config header
...
- board config can define PX4_PWM_ALTERNATE_RANGES which needs to be known
by the compiler prior to processing this file
Signed-off-by: Roman <bapstroman@gmail.com >
2018-04-12 09:19:47 +02:00
Roman
41a9ac0acb
vtol_att_control: initialise VT_FW_MOT_OFFID correcly for standard vtol
...
Signed-off-by: Roman <bapstroman@gmail.com >
2018-04-12 09:19:47 +02:00
Roman
df53dce6e1
vtol_type.h: initialise flag_idle_mc correctly
...
Signed-off-by: Roman <bapstroman@gmail.com >
2018-04-12 09:19:47 +02:00
Roman
cd49c4bc17
vtol_type: improve comments
...
Signed-off-by: Roman <bapstroman@gmail.com >
2018-04-12 09:19:47 +02:00
Roman
79ff1436b8
vtol_att_control: move handling of motor state and idle speed selection
...
to VtolType class
Signed-off-by: Roman <bapstroman@gmail.com >
2018-04-12 09:19:47 +02:00
Roman
744f806214
vtol_att_control: merge methods to disable a selection of motors
...
- moved methods used to modify channel maximum pwm value to VtolType
class so that the can be shared by the differnt vtol types
Signed-off-by: Roman <bapstroman@gmail.com >
2018-04-12 09:19:47 +02:00
Daniel Agar
00f98c64db
VTOL preserve PWM min and max when enabling/disabling actuators
2018-04-12 09:19:47 +02:00
Daniel Agar
a78ab02144
fw_pos_control_l1 don't store TECS and L1 parameters
2018-04-12 00:46:49 -04:00
Daniel Agar
d2abd53692
mixer lib remove custom constrain and cleanup includes
2018-04-12 00:14:50 -04:00
Daniel Agar
08cc963de3
px4iofirmware use std NAN instead of undefined 0.0f/0.0f
...
- closes #9277
2018-04-12 00:14:50 -04:00
Daniel Agar
1ecfb22dbc
EKF2 move all orb_subscribe/unsubsribe to the constructor/destructor
2018-04-11 23:26:58 -04:00
Daniel Agar
2a58c7a28c
EKF2 and replay add all consumed messages to ekf2_timestamps and refactor
2018-04-11 23:26:58 -04:00
Daniel Agar
07edec282e
replay update sensor_combined fields
2018-04-11 23:26:58 -04:00
Daniel Agar
3b5b12e1d1
move baro and magnetometer data out of sensor_combined
2018-04-11 23:26:58 -04:00
Paul Riseborough
3e6ba1d541
simulator: Use baro pressure direct from simulator
2018-04-11 23:26:58 -04:00
Daniel Agar
5dc23def2a
move pressure altitude from baros to sensors module
2018-04-11 23:26:58 -04:00
Daniel Agar
bdf4f19867
enable -fno-math-errno as we never check errno ( #9281 )
...
- disables setting of the errno variable as required by C89/C99 on calling math library routines
2018-04-11 22:17:39 -04:00
Mohammed Kabir
28f9b38919
mavlink : fix pointer for main_mode and sub_mode
2018-04-11 22:03:12 +02:00
Oleg Kalachev
1b1617b5a0
Add new mode AUTO_PRECLAND
2018-04-11 14:50:07 -04:00
Beat Küng
f02ef20a23
commander: set timestamp for vehicle_command publication
2018-04-11 15:19:47 +02:00
acfloria
0caa4dc171
Mavlink: Don't use a packed struct as input for the convert_limit_safe function
...
- Addional small cleanup of the iridium driver and the include guards of mavlink module header files
2018-04-11 15:15:28 +02:00
acfloria
477a4e7ec8
MavlinkReceiver: Don't start MissionManager in IRIDIUM mode
2018-04-11 15:15:28 +02:00
acfloria
41de588a73
Move HIGH_LATENCY2 stream to separate file and update some comments"
2018-04-11 15:15:28 +02:00
acfloria
fb1bb7a769
Move the SimpleAnalyzer to a separate file
2018-04-11 15:15:28 +02:00
acfloria
ae807fc189
Move VEHICLE_CMD_CONTROL_HIGH_LATENCY ack to commander
2018-04-11 15:15:28 +02:00
acfloria
975d7ddcb2
IridiumSBD: Clean up MavLink message parsing
2018-04-11 15:15:28 +02:00
acfloria
f1a6aecb4d
IridiumSBD: Log tx buffer reset in the telemetry_status instead of a status text
2018-04-11 15:15:28 +02:00
acfloria
53fdbb6c04
Remove unnecessary newlines
2018-04-11 15:15:28 +02:00
acfloria
219980cec1
Commander: Combine telemetry variables into struct
2018-04-11 15:15:28 +02:00
acfloria
6f0d3ffe9b
Mavlink: Add acknowledge for VEHICLE_CMD_CONTROL_HIGH_LATENCY
2018-04-11 15:15:28 +02:00
acfloria
2a5c7efd8d
Mavlink: Use filtered update rate for HIGH_LATENCY2 stream instead of main loop delay
2018-04-11 15:15:28 +02:00
acfloria
e9dde721f7
Commander: Remove Mavlink from CMakeFile
2018-04-11 15:15:28 +02:00
acfloria
8c0450b483
revert v2 cmake changes
2018-04-11 15:15:28 +02:00
acfloria
b95d65df53
Commander: Fix bug when changing to high latency telemetry
...
Due to the old heartbeat of the high latency telemetry when activating it after flying sufficiently long in normal telemetry it is first detected as lost until the first message is sent.
By updating the heartbeat to the current time on switching this issue is avoided.
Also includes a small style fix for the HIGH_LATENCY2 stream
2018-04-11 15:15:28 +02:00
acfloria
1124a397f2
Commander: Move telemetry logic to separate functions
2018-04-11 15:15:28 +02:00
acfloria
443a4016af
Commander: Improve handling and generating of VEHICLE_CMD_CONTROL_HIGH_LATENCY
2018-04-11 15:15:28 +02:00
acfloria
da57dbbce0
Increase the MavLink module stack size
2018-04-11 15:15:28 +02:00
acfloria
b66b997c66
IridiumSBD: Robustify state machine and fix format
...
- Check if changing to a non standby state if the current state is the standy state and no change is already scheduled.
- Add prefix _ to all class variables
2018-04-11 15:15:28 +02:00
acfloria
63cb895a1d
MavlinkStream: Ensure that not multiple messages are sent after some time sending nothing
2018-04-11 15:15:28 +02:00
acfloria
0e89a6b8bd
IridiumSBD: Do not allow stopping the driver when the device is used to prevent hardfault
2018-04-11 15:15:28 +02:00
acfloria
d4f703bde8
IridiumSBD: Improve TX buffer handling
...
- Allow using the full buffer size (340 bytes)
- Add tx mutex for sbd session to avoid dropping message which are written during an sbd session
2018-04-11 15:15:28 +02:00
acfloria
28da1492d3
IridiumSBD: Only write to modem if new data arrived
2018-04-11 15:15:28 +02:00
acfloria
44937c3a99
Iridiumsbd driver: Publish log message when TX buffer is deleted
2018-04-11 15:15:28 +02:00
acfloria
47567c5c24
Improve IridiumSBD TX buffer handling
...
- Every time data is written to the iridium module all previous untransmitted data is overwritten
- The buffer is reset only on the following conditions
- A sbd session is successfully completed
- An incoming mavlink message would result in less than SATCOM_MIN_TX_BUF_SPACE free bytes after it is written
- Any other incomming data would result in less than SATCOM_MIN_TX_BUF_SPACE free bytes after it is written to the buffer.
2018-04-11 15:15:28 +02:00
acfloria
6c3857a147
Remove exception for command acknowledge in mavlink transmitting
2018-04-11 15:15:28 +02:00
acfloria
f5a66782e5
Reduce required stack for HIGH_LATENCY2
2018-04-11 15:15:28 +02:00
acfloria
ebb5ec7c46
Fix bug when ISBD parameters were too large
2018-04-11 15:15:28 +02:00
acfloria
edd337880d
Improve message handling in mavlink IRIDIUM mode
...
- Do not send any mission updates as they are handled within HIGH_LATENCY2
- Always send a command acknowledge even if transmitting is not enabled
2018-04-11 15:15:28 +02:00
acfloria
32815dc1d3
Only generate the HIGH_LATENCY2 message if transmitting is allowed
2018-04-11 15:15:28 +02:00
acfloria
22e234724f
Update timestamp for last sent message im mavlink stream only if the message was sent
2018-04-11 15:15:28 +02:00
acfloria
1fd8b681a0
Transmit one message over high latency telemetry on boot
2018-04-11 15:15:28 +02:00
acfloria
392af4fbb6
Small improvements for the IridiumSBD driver
2018-04-11 15:15:28 +02:00
acfloria
e061b1a3a5
Do not enable hil for high latency mavlink
2018-04-11 15:15:28 +02:00
acfloria
e01763a7c7
Set the HIGH_LATENCY2 stream to a constant rate
2018-04-11 15:15:28 +02:00
acfloria
17a157b9da
Adopt high latency switching to new MAV_CMD design
2018-04-11 15:15:28 +02:00
acfloria
fa1586249a
Fixes IridiumSBD driver bug when transmitting data
2018-04-11 15:15:28 +02:00
acfloria
ce1b908714
Adopt mavlink stream to new HIGH_LATENCY2 definition
2018-04-11 15:15:28 +02:00
acfloria
78950f2b39
Fix format and remove ets driver from fmu-v2 build
2018-04-11 15:15:28 +02:00
acfloria
cbe75188e9
Add the HighLatency2 mavlink stream
2018-04-11 15:15:28 +02:00
acfloria
75ed9b002b
Add the SimpleAnalyzer to generate messages for MAVLink streams
2018-04-11 15:15:28 +02:00
acfloria
a026575e37
commander: Fix for qurt and improve high latency switch logic
2018-04-11 15:15:28 +02:00
acfloria
1cc84ad8c9
Remove magic numbers from commander.cpp and style fixes
2018-04-11 15:15:28 +02:00
acfloria
00f6ef1d2f
Style fix and iridium signal check rate fix
2018-04-11 15:15:28 +02:00
acfloria
1223a9abd5
Commander: High latency telem fallback only in non-manual mode
2018-04-11 15:15:28 +02:00
acfloria
b613ca051a
Refactor Iridiumsbd driver
...
- Reorder functions so that they have the same order in the .h and .cpp file
- Update documentation for functions
- Make variables and some functions private
2018-04-11 15:15:28 +02:00
acfloria
634697946a
Add switch logic for high latency telemetry in commander
...
Switch to the high latency telemetry, if available, if every low latency link is lost. Switch back if any low latency link is regained. Only indicate that all links are lost if all high and low latency links are lost. Allow different timeouts for high and low latency links.
2018-04-11 15:15:28 +02:00
acfloria
4f256cca20
Improvements for the iridiumsbd driver
...
- Update heartbeat after successful sbd session and fill it in the telemetry_status message
- Add parameter for session timeout, read interval, and stacking time
- Add sbd session timeout
- Fix updating the rssi at a constant rate when no sbd session is scheduled
- Add variable timout to read_at function
- Check if test command is valid to avoid being stuck in the test state
2018-04-11 15:15:28 +02:00
acfloria
631f314e89
En-/disable transmitting from a mavlink instance using a uORB message
...
Allow enabling/disabling transmitting data from all mavlink instances
with a specific mode/type. When disabled the instance can still receive
data. The uORB message used is the vehicle_command and uses the following
parameter:
param1: Specifies the mode/type of the instances to enable/disable transmitting
param2: Boolean to indicate if transmitting should be enabled or disabled
2018-04-11 15:15:28 +02:00
Roman
8f9e8a6282
FixedWingAttitudeControl: use trim airspeed if airspeed is disabled
...
- prior to this fix the fw attiude controller used airspeed to scale control
surfaces even though airspeed was disabled
Signed-off-by: Roman <bapstroman@gmail.com >
2018-04-11 15:03:45 +02:00
Matthias Grob
711b21cc5b
mc_att_control: improve a quaternion control comment
2018-04-11 11:14:47 +02:00
Beat Küng
b52a8de5ff
nuttx_px4fmu-v2_test.cmake: enable modules required to build mc_pos_control
...
due to param dependencies
2018-04-11 07:47:06 +02:00
Beat Küng
90513e719e
ASSERT: remove some inappropriate asserts
...
Since assertions lead to crashes, we need better failure handling. In all
the cases in this patch, the assert is not required.
All the ones with the task id should be replaced with the module base
class.
Ah yes, and this reduces flash space, since the ASSERT macro will expand to
a printf that contains the source file name.
2018-04-11 07:47:06 +02:00
Beat Küng
a8645b51d5
voted_sensors_update: reduce flash usage by allowing compiler to dedup equal strings
...
reduces roughly 130 bytes. Almost enough to pass CI.
2018-04-11 07:47:06 +02:00
Beat Küng
b97d432844
px4_param.h: add override to _DEFINE_PARAMETER_UPDATE_METHOD_CUSTOM_PARENT
2018-04-11 07:47:06 +02:00
Beat Küng
5eb7d8ec5f
flight tasks smoothing: refactor param_find -> Param
...
Plus some style fixes
2018-04-11 07:47:06 +02:00
Beat Küng
398d511fd9
flight tasks smoothing: fix style issues
2018-04-11 07:47:06 +02:00
Beat Küng
0eaa6222a2
flight tasks: refactor BlockParam -> Param and handle param updates
2018-04-11 07:47:06 +02:00
Beat Küng
2e620cf1d4
mc_pos_control: refactor BlockParam -> Param
2018-04-11 07:47:06 +02:00
nanthony21
0c2b9dc0b8
Fix formatting
2018-04-10 14:03:06 +02:00
nanthony21
d3e9ee88a0
Use filtered throttle for battery estimation instead of raw.
2018-04-10 14:03:06 +02:00
Daniel Agar
036d920070
NuttX cleanup debug helpers and add profile target
2018-04-09 12:07:05 -04:00
Daniel Agar
95f17d5669
px4fmu_test update mixers
2018-04-09 02:23:26 -04:00
Daniel Agar
45eb9cb518
fix typo PX4IO_MAX_MIXER_LENGHT -> PX4IO_MAX_MIXER_LENGTH
2018-04-09 02:23:26 -04:00
Daniel Agar
735c5544ae
tests add ctlmath and use float FLT_EPSILON
2018-04-09 02:23:26 -04:00
Daniel Agar
367a18f735
tests temporarily disable mavlink tests on nuttx
2018-04-09 02:23:26 -04:00
Daniel Agar
47fd298143
Update submodule mavlink v2.0 to latest Sun Apr 8 20:31:34 CDT 2018 ( #9268 )
...
- v2.0 in PX4/Firmware (3ec37aa186 ): https://github.com/mavlink/c_library_v2/commit/95d4cb3b21130d67b251f323482f1c3fe1ce0c6c
- v2.0 current upstream: https://github.com/mavlink/c_library_v2/commit/163d4c84b9eb58a02cab94d039f54c303977d991
- Changes: https://github.com/mavlink/c_library_v2/compare/95d4cb3b21130d67b251f323482f1c3fe1ce0c6c...163d4c84b9eb58a02cab94d039f54c303977d991
163d4c8 2018-04-08 PX4BuildBot - autogenerated headers for rev https://github.com/mavlink/mavlink/tree/07c4fc5f617383707317128e87ec9a0489ed3634
2018-04-08 23:40:12 -04:00
stmoon
3ec37aa186
clarify the codes of LPE
2018-04-08 11:13:47 -04:00
Daniel Agar
3b64325ff8
update px4fmu_test and add px4fmu-v2_test to Jenkins
2018-04-07 22:32:53 -04:00
Beat Küng
f1f72c70e0
commander: immediately publish kill switch state change
2018-04-06 11:29:49 +02:00
barzanisar
d025eb0da0
explaining why we send 30 bytes crtp msg data instead of 31
2018-04-05 18:11:03 +02:00
barzanisar
7ac3c97aad
Improve the Crazyflie MAVLink tunnel to increase efficiency
...
This change fragments MAVLink packets more efficiently and therefore increases the net throughput. This in turn makes the connection significantly more stable and the Crazyflie experience overall more usable.
2018-04-05 18:11:03 +02:00
Roman
d6a86dfa56
tailsitter: do not condition transition on airspeed if airspeed disabled
...
Signed-off-by: Roman <bapstroman@gmail.com >
2018-04-05 08:48:36 +02:00
Daniel Agar
23d25f2a22
aerocore2 config remove telemetry modules, FW and GND controllers
2018-04-05 07:30:12 +02:00
Dennis Mannhart
48fa3fbca3
PositionControl: thrust setpoint check with fabsf
2018-04-05 07:30:12 +02:00
Dennis Mannhart
26ffda5079
PositionControl: replace matrix length() method with simple dot-product to safe compuation
2018-04-05 07:30:12 +02:00
Dennis Mannhart
0c6c771620
ControlMath: remove unused methods
2018-04-05 07:30:12 +02:00
Dennis Mannhart
81da94ff46
PositionControl: Anti-windup that uses max in NE based on tilt limit and remaining throttle
...
excess
2018-04-05 07:30:12 +02:00
Matthias Grob
f99471f34c
PositionControl: refactor remove Data define for Vector
...
This define results in super unreadable code.
2018-04-05 07:30:12 +02:00
Matthias Grob
2405baa2c9
FlightTasks: fix manual mode takeoff
...
With the new position control architercture manual mode and
potition mode run through the same logic and as a result
it had a throttle thershold for smooth takeoff also in
manual mode. This is fixed by by ignoring the threshold for
any mode which doesn't control the climb rate.
2018-04-05 07:30:12 +02:00
Matthias Grob
4bf33339dc
FlightTaskManualStabilized: remove double limit of yawspeed
...
The same paramater was used twice, once for scaling the yaw stick
and once for limitng just after. This was useless.
2018-04-05 07:30:12 +02:00
Matthias Grob
eaf4f99e38
FlightTasks: adapt tasks to member setpoints
...
The FlightTaskManual... tasks already had their internal
setpoint member variables. I switched them to use the
architecture with setpoint member variables as it was
implemented the commit before. They simplify a lot.
2018-04-05 07:30:12 +02:00
Matthias Grob
309237c4a2
FlightTasks: replace setpoint setters with members
...
I realized that instead of using the setpoint setters inline
in real world tasks everyone started to have its own setpoint
member variable and only call the setter in the end for all the
privatly generate setpoints. This makes the setter useless and
therefore I switched to member setpoints in the architecture.
They bring more felxibility which is obviously needed but also
less structure which is the price to pay.
2018-04-05 07:30:12 +02:00
Dennis Mannhart
e15240d3ad
FlightTask: only allow for position and alitude control without smoothing.
...
This commit is only done to enable incremental testing of Flighttask.
2018-04-05 07:30:12 +02:00
Matthias Grob
dc60bc8766
mc_pos_control: enable flight tasks
...
instantiate flight tasks and the refactored position controller class
only use the new functionality if a temporary parameter is set for testing
2018-04-05 07:30:12 +02:00
Matthias Grob
0dcad42f57
mc_pos_control: refactor, indent control block
...
individual commit for the indentation because otherwise
the diff gets unreadable. this indentation is made because
afterwards the entire legacy position control functionality
is in an else case.
2018-04-05 07:30:12 +02:00
Matthias Grob
5ee136fe10
mc_pos_control: refactor, move landed thrust reduction into function
...
and make it use matrix library for flight task compatibility
# Conflicts:
# src/modules/mc_pos_control/mc_pos_control_main.cpp
2018-04-05 07:30:12 +02:00
Matthias Grob
fabf214bca
mc_pos_control: refactor, move smooth takeoff velocity into a function
...
# Conflicts:
# src/modules/mc_pos_control/mc_pos_control_main.cpp
2018-04-05 07:30:12 +02:00
Matthias Grob
d5f90a1503
FlightTasks: add library to cmake configurations
...
all the ones with mc_pos_control need the library, we should use cmake dependencies!
2018-04-05 07:30:12 +02:00
Matthias Grob
8b4471d842
FlightTasks: comment out mavlink command processing
...
because upstream there needs to be a
common mavlink command definition first
and then it can be easily reenabled again
2018-04-05 07:30:12 +02:00
Matthias Grob
cf48ceb428
Revert "Subscription remove unused instance class member"
...
This reverts commit cf2d794da9 .
2018-04-05 07:30:12 +02:00
Dennis Mannhart
88cf2aebc6
PositionControl: comment fix + unused parameter removal
2018-04-05 07:30:12 +02:00
Dennis Mannhart
421aeb69d8
FlightTaskManual: transformation into heading frame use vehicle yaw or yaw_sp based
...
on vehicle rotation in yaw
2018-04-05 07:30:12 +02:00
Dennis Mannhart
ab8527cc8f
FlightTaskManualStabilized: limit manual yaw rate in flighttask
2018-04-05 07:30:12 +02:00
Dennis Mannhart
03b3026e18
PositionControl: remove unused parameters
2018-04-05 07:30:12 +02:00
Dennis Mannhart
67900512ab
PositionControl: remove legacy yaw logic
2018-04-05 07:30:12 +02:00
Dennis Mannhart
017576262c
FlightTaskManual: replace yaw with yaw_sp for rotation
2018-04-05 07:30:12 +02:00
Dennis Mannhart
ec79b2f8c8
ControlMath: don't consider sign when vector length is 0
2018-04-05 07:30:12 +02:00
Dennis Mannhart
bd37c274c6
PositionControl: parameter naming fix
2018-04-05 07:30:12 +02:00
Dennis Mannhart
59bddf339a
ManualSmoothingXY: brake with large default jerk max
2018-04-05 07:30:12 +02:00
Dennis Mannhart
25c33d18b0
FlightTaskSport: just scale velocity septoint
2018-04-05 07:30:12 +02:00
Dennis Mannhart
fc62df856d
ControlMath: reference to by value
2018-04-05 07:30:12 +02:00
Dennis Mannhart
16d6ac6ad1
FlightTaskManualStabilized: check for 0 maximum tilt and scale throttle linearly
2018-04-05 07:30:12 +02:00
Dennis Mannhart
7f406aa251
FlightTaskManualSmoothingZ: remove empty space
2018-04-05 07:30:12 +02:00
Dennis Mannhart
6538a7e88c
FlightTaskSport: replace rotation by axis angle
2018-04-05 07:30:12 +02:00
Dennis Mannhart
5bd2afa7be
FlightTaskManualPositionSmooth: remove unused mehthods and member variables
2018-04-05 07:30:12 +02:00
Dennis Mannhart
d6fe2159ae
FlightTaskManualPosition: remove update method and old member variable setpoints
2018-04-05 07:30:12 +02:00
Dennis Mannhart
a7f4859698
FlightTaskManualAltitudeSmooth: remove unused member methods/variables
2018-04-05 07:30:12 +02:00
Dennis Mannhart
c15b114cad
FlightTaskManualAltitude: remove member setpoints and update method
2018-04-05 07:30:12 +02:00
Dennis Mannhart
4b49b0ed7a
FlightTaskManualStabilized: update method that sets all member setpoints
2018-04-05 07:30:12 +02:00
Dennis Mannhart
2db2ef824b
FlightTaskManual: move all setpoints into base class
2018-04-05 07:30:12 +02:00
Dennis Mannhart
2e9cb659c9
FlightTaskManual: method to reset all members setpoints to NAN
2018-04-05 07:30:12 +02:00
Dennis Mannhart
52eeb02549
empty setpoint add NAN for thrust, add comment
2018-04-05 07:30:12 +02:00
Dennis Mannhart
fb2ce062e4
FlightTask: rebse fix for empty setpoint
2018-04-05 07:30:12 +02:00
Dennis Mannhart
f2f5f41641
FlightTaskManualSmoothing: change name of method
2018-04-05 07:30:12 +02:00
Dennis Mannhart
01073d36e5
FlightTaskManualPosition: use axis angle to rotate into world frame
2018-04-05 07:30:12 +02:00
Matthias Grob
d22af4679d
FlightTaskManualAltitude/Position: renamed and recommented velocity hold threshold
2018-04-05 07:30:12 +02:00
Matthias Grob
6fb9ca3b0c
FlightTasks: corrected comment and sorted out unnecessary includes
2018-04-05 07:30:12 +02:00
Matthias Grob
e1a81c7978
FlightTaskManual: remove unnecessary activate method
2018-04-05 07:30:12 +02:00
Matthias Grob
e8cc93ec23
FlightTasks: create enumeration type for the task index while still offering integer index with checks
2018-04-05 07:30:12 +02:00
Matthias Grob
f135e6dda0
FlightTasks: switch field name from thr to thrust + some code spacing
2018-04-05 07:30:12 +02:00
Alessandro Simovic
f8e4e82bba
snapdragon: Applied camelCasing
2018-04-05 07:30:12 +02:00
Alessandro Simovic
01ecb05341
snapdragon: changed constexpr to const in FlightTask so that it would compile
2018-04-05 07:30:12 +02:00
Alessandro Simovic
50c1eba392
snapdragon: fixed compiler shadow warning, function name was identical as a variable name
2018-04-05 07:30:12 +02:00
Alessandro Simovic
cc41d8ccab
snapdragon: added missing includes
2018-04-05 07:30:12 +02:00
Dennis Mannhart
ca046af8ca
clang-tidy: don't check for pass-by-value optimization
2018-04-05 07:30:12 +02:00
Dennis Mannhart
d64b59b95f
FlightTaskUtility: remove duplicate slewrate
2018-04-05 07:30:12 +02:00
Dennis Mannhart
c1bb0cbdcc
smoothing xy: remove unused variable
2018-04-05 07:30:12 +02:00
Dennis Mannhart
23b294b434
tests smoothz: fix fabsf and consider rest once previous velocity is zero
2018-04-05 07:30:12 +02:00
Dennis Mannhart
59f3de192f
ManualSmoothingXY: velocity as criteria for direction change to prenvent fast acceleration at low spped
2018-04-05 07:30:12 +02:00
Dennis Mannhart
13eb79ffb8
FlightTasks: fix class name
2018-04-05 07:30:12 +02:00
Dennis Mannhart
bb00f6d737
FlightTaskManualPosition: update to new smoothing interface
2018-04-05 07:30:12 +02:00
Dennis Mannhart
4f17fb1303
ManualSmoothingXY: detect alignement based on body frame; do direction change only if not yawspeed is demanded
2018-04-05 07:30:12 +02:00
Dennis Mannhart
40d77d2234
FlightTaskManualStabilized: remove second ;
2018-04-05 07:30:12 +02:00
Dennis Mannhart
5cfd93040f
ManualSmoothZ: move vel_sp_previous update into class
2018-04-05 07:30:12 +02:00
Dennis Mannhart
ed62056b7c
FlightTaskManualPositionSmooth: smooth xy and z
2018-04-05 07:30:12 +02:00
Dennis Mannhart
ac6ed74063
Add FlightTaskManualPositionSmooth
2018-04-05 07:30:12 +02:00
Dennis Mannhart
26889bc0e1
ManualSmoothing in xy
2018-04-05 07:30:12 +02:00
Dennis Mannhart
1ddcc7a3ee
FlightTaskManaulAltitude: fix activation
2018-04-05 07:30:12 +02:00
Dennis Mannhart
0ec312ef3d
FlightTaskManualAltitude: fix update
2018-04-05 07:30:12 +02:00
Dennis Mannhart
6a639373ae
PositionControl: set vel_dot to 0 if thrust setpoint is used
2018-04-05 07:30:12 +02:00
Dennis Mannhart
5ad37cec71
FlightTaskManualAltitudeSmooth: update vel sp z
2018-04-05 07:30:12 +02:00
Dennis Mannhart
153b012df6
FlighTaskManual lock condition: rename boolean
2018-04-05 07:30:12 +02:00
Dennis Mannhart
5d06464340
FlightTaskManualPosition: rename updateXYsetpoints to updateXYlock
2018-04-05 07:30:12 +02:00
Dennis Mannhart
efc2721add
FlightTaskManualAltitude: rename method from updateZsetpoints to updateAltitudeLock
2018-04-05 07:30:12 +02:00
Dennis Mannhart
1810ae8226
ManualSmoothingZ: remove description in cpp file
2018-04-05 07:30:12 +02:00
Dennis Mannhart
39c77546d3
FlightTaskManualAltitudeSmooth: create taks
2018-04-05 07:30:12 +02:00
Dennis Mannhart
d44c406fb2
ManualSmoothingZ: unittests
2018-04-05 07:30:12 +02:00
Dennis Mannhart
54a5e177f3
ManualSmoothingZ: comments cleanup and style fix
2018-04-05 07:30:12 +02:00
Dennis Mannhart
08dfd0c495
ManualSmoothingZ: better getMaxAcceleration handling
2018-04-05 07:30:12 +02:00
Dennis Mannhart
0b551c1ede
ManualSmoothingZ: style fix
2018-04-05 07:30:12 +02:00
Dennis Mannhart
5343e49d1e
CmakeLists Task: add ManualSmoothingZ
2018-04-05 07:30:12 +02:00
Dennis Mannhart
c4fbde395b
ManualSmoothing: new class for smoothing setpoints generated from sticks
2018-04-05 07:30:12 +02:00
Dennis Mannhart
3d591f4f8c
FlightTaskManualAltitude: thrust along xy depends on thrust along z direction
2018-04-05 07:30:12 +02:00
Dennis Mannhart
157814b710
FlightTaskManualAltitude/Position/Stabilized: activate with 0 velocity and hover thrust
2018-04-05 07:30:12 +02:00
Dennis Mannhart
8bafdba4f9
FlightTaskManualStabilized: update comments
2018-04-05 07:30:12 +02:00
Dennis Mannhart
85a263c7bd
vehicle local position setpoint: use array for thrust setpoint
2018-04-05 07:30:12 +02:00
Dennis Mannhart
a74c1116ee
mc_pos_control/PositionControl: enable thrust setpoint
2018-04-05 07:30:12 +02:00
Dennis Mannhart
0ca823eb30
PositionControl: remove thrust as state; add thrust setpoint support
2018-04-05 07:30:12 +02:00
Dennis Mannhart
d7c48ea5f2
FlightTaskManualAltitude/Position: set thrust setpoint to NAN (only temporary)
2018-04-05 07:30:12 +02:00
Dennis Mannhart
716eea31cf
FlightTaskManualStabalized: compute thrust setpoint from sticks
2018-04-05 07:30:12 +02:00
Dennis Mannhart
76ad00497b
FlightTasks and local setpoint: add thrust setpoint
2018-04-05 07:30:12 +02:00
Dennis Mannhart
44e4c12eb5
FlightTaskManualAltitude: Comments update
2018-04-05 07:30:12 +02:00
Dennis Mannhart
ad2c16c0ba
FlightTaskManual: remove #include px4_defines.h
2018-04-05 07:30:12 +02:00
Dennis Mannhart
25ff03445e
FlightTasks: remove description from cpp files
2018-04-05 07:30:12 +02:00
Dennis Mannhart
3b4870b2c2
FlightTaskManual: define as abstract class
2018-04-05 07:30:12 +02:00
Dennis Mannhart
46f0a14c28
FlightTaskStabilized: remove yaw prediction
2018-04-05 07:30:12 +02:00
Dennis Mannhart
5a6ca148ad
CMakeListsts FlightTasks: add stabilized
2018-04-05 07:30:12 +02:00
Dennis Mannhart
dcdf4d50a0
FlightTasks: add stabilized and fix switchTask for Altitude and Position
2018-04-05 07:30:12 +02:00
Dennis Mannhart
39731277ad
FlightTaskSport: inherit from FlightTaskPosition; only change stickscaling
2018-04-05 07:30:12 +02:00
Dennis Mannhart
72624e14cb
FlightTaskManualPosition: make position lock simpler; add underline for protected/private
...
methods
2018-04-05 07:30:12 +02:00
Dennis Mannhart
24b5d30a0a
FlightTaskManualAltitude: remove everything related to yaw, which is now
...
handled by FlightTaskManualStabilized. Make altitude lock more simple
2018-04-05 07:30:12 +02:00
Dennis Mannhart
e763642a8b
FlightTaskManualStabilized: this task will geerate thrust and yaw setpoints.
...
Thrust is not yet supported
2018-04-05 07:30:12 +02:00
Dennis Mannhart
4b856717b7
FlightTaskManual: replace hold_dz with stick_dz
2018-04-05 07:30:12 +02:00
Dennis Mannhart
a9ac94dd83
Add FlightTasksManual/Altitude to position controller
2018-04-05 07:30:12 +02:00
Dennis Mannhart
98e4afaf6e
FlightTaskSport: temporary inherit from FlightTaskManualPosition
2018-04-05 07:30:12 +02:00
Dennis Mannhart
3b0373afda
FlightTaskManual: remove unused methods
2018-04-05 07:30:12 +02:00
Dennis Mannhart
7a4796a6e3
rename TranslationControl to PositionControl
2018-04-05 07:30:12 +02:00
Dennis Mannhart
b4d56ed51a
mc_pos_control: publish yaw_move_rate
2018-04-05 07:30:12 +02:00
Dennis Mannhart
1cad36efb9
ControlMath: use sign for direction
2018-04-05 07:30:12 +02:00
Dennis Mannhart
b0b72e63e7
TranslationControl: remove throttle
2018-04-05 07:30:12 +02:00
Dennis Mannhart
6a4e3bb94e
TranslationControl: update comments
2018-04-05 07:30:12 +02:00
Dennis Mannhart
720271332d
FlightTaskManual/Alt/Position: update comments
2018-04-05 07:30:12 +02:00
Dennis Mannhart
55b6f19367
FlightTaskManual: remove stick_deadzone because base class already has it.
...
Remove deadzone check for vel in xy/z because expo already contains deadzone
2018-04-05 07:30:12 +02:00
Dennis Mannhart
8da2ff4d77
mc_pos_control: set local position setpoint message for idle; for logging purpose,
...
always send local position setpoint when in air
2018-04-05 07:30:12 +02:00
Dennis Mannhart
e6f04ad34a
FlightTaskManualPosition: fix position lock
2018-04-05 07:30:12 +02:00
Dennis Mannhart
46c7b1c26c
FlightTaskManualAltitude: fix position lock; use default constructor for initialization
2018-04-05 07:30:12 +02:00
Dennis Mannhart
ac4379d13f
TranslationControl: initialize with default constructor
2018-04-05 07:30:12 +02:00
Dennis Mannhart
e1ab31a5fc
TranslationControl: replace matrix::Vector3f with Data
2018-04-05 07:30:12 +02:00
Dennis Mannhart
f1b3010c70
FlightTaskManualAlt/Pos: add deadzone fox xy/z
2018-04-05 07:30:12 +02:00
Dennis Mannhart
ec4089cebf
FlightTaskManualAltitude: add deadzone for yaw
2018-04-05 07:30:12 +02:00
Dennis Mannhart
cd1e01d5a0
FlightTaskManual: add px4_defines
2018-04-05 07:30:12 +02:00
Dennis Mannhart
6276d0a8ef
FlightTasks CMakeLists: add FlightTaskManualPosition
2018-04-05 07:30:12 +02:00
Dennis Mannhart
26a5eae7b1
FlightTasks: add FlighttaskManualPosition
2018-04-05 07:30:12 +02:00
Dennis Mannhart
ddecb4d3a4
teest_controlmath: incomplete set of thrust to attitude tests
2018-04-05 07:30:12 +02:00
Dennis Mannhart
0afd0807bb
FlightTaskPosition: brake depends on acceleration
2018-04-05 07:30:12 +02:00
Dennis Mannhart
bcbd3dc527
ControlMath: thrust to attitude method (legacy method)
2018-04-05 07:30:12 +02:00
Dennis Mannhart
adcb2b9ca8
TranslationControl: index fix
2018-04-05 07:30:12 +02:00
Dennis Mannhart
840247251d
ControlMath: sign fix
2018-04-05 07:30:12 +02:00
Dennis Mannhart
deac27ee52
FlightTaskManualAltitude: brake depends on acceleration; description clean up
2018-04-05 07:30:12 +02:00
Dennis Mannhart
09bf73945a
ControlMath: rename namespace to file name
2018-04-05 07:30:12 +02:00
Dennis Mannhart
10a50dd97e
FlightTaskManual: switch to camel case
2018-04-05 07:30:12 +02:00
Dennis Mannhart
3b8c718971
TranslationControl: rename variable
2018-04-05 07:30:12 +02:00
Dennis Mannhart
2a544cee43
TranslationControl: use reference insteady of by value
2018-04-05 07:30:12 +02:00
Dennis Mannhart
ded8675dae
ControlMath: change description name
2018-04-05 07:30:12 +02:00
Dennis Mannhart
5fbee9fce9
ControlMath tests
2018-04-05 07:30:12 +02:00
Dennis Mannhart
03c81a8948
ControlMath: never saturate in xy when vector is below minimum
2018-04-05 07:30:12 +02:00
Dennis Mannhart
6daf78494a
TranslationControl: adjust direction based on constrainPIDu inputs
2018-04-05 07:30:12 +02:00
Dennis Mannhart
75b6af77de
ControlMath: fix index and don't adjust sign with method but rather function caller
...
needs to adjust for sign
2018-04-05 07:30:12 +02:00
Dennis Mannhart
19d50f9511
ControlMath: index fix and scaling fix
2018-04-05 07:30:12 +02:00
Dennis Mannhart
c9cd920642
rename VectorMath to ControlMath
2018-04-05 07:30:12 +02:00
Dennis Mannhart
820d6e866f
TransitionControl: replace thrust constraints with VectorMath functions;
...
temporary: remove thrust projection onto body frame
2018-04-05 07:30:12 +02:00
Dennis Mannhart
41a5ea6daa
Multicoper position control: function file for controller specific functions
2018-04-05 07:30:12 +02:00
Dennis Mannhart
6ffa7a96ba
mc_pos_control: method for publishing attitude and local_pos_sp
2018-04-05 07:30:12 +02:00
Dennis Mannhart
6e63ddacd2
yaw setpoint: add math::radians
2018-04-05 07:30:12 +02:00
Dennis Mannhart
f0f84d300b
TranslationControl: move mc_pos_control related logic into TranslationControl
2018-04-05 07:30:12 +02:00
Dennis Mannhart
9ac32a764f
TranslationControl added to CmakeLists.txt
2018-04-05 07:30:12 +02:00
Dennis Mannhart
85c1627c74
TranslationControl: new class that generates thrust vector from state and setpoints
2018-04-05 07:30:12 +02:00
Dennis Mannhart
6adc1755cc
FlightTaskManualPosition: most basic implementation
2018-04-05 07:30:12 +02:00
Dennis Mannhart
b5c19f6483
FligtTaskManualAltitude: split functionality such that scale_stick values and the update_setpoints can be overwritten
2018-04-05 07:30:12 +02:00
Dennis Mannhart
ea61af3164
FlightTaskManualAltitude: added to lib
2018-04-05 07:30:12 +02:00
Dennis Mannhart
4f5fa33e74
FlightTaskManualAltitude: scale stick z to velocity
2018-04-05 07:30:12 +02:00
Dennis Mannhart
4dfd9ce8ed
FlightTaskOrbit: replace sticks (which are now linear) with expo
2018-04-05 07:30:12 +02:00
Dennis Mannhart
e076825d78
FlightTaskManual: remove everything except of stick mapping
2018-04-05 07:30:12 +02:00
Matthias Grob
2b6e356c91
FlightTaskManual: fix for the sideways oscillations in fast foward flight when using the vehicle yaw estimate
2018-04-05 07:30:12 +02:00
Matthias Grob
089ebcbfa4
FlightTaskManual: fix two very stupid mistakes in the yaw hold logic
2018-04-05 07:30:12 +02:00
Matthias Grob
37e0f91c39
FlightTaskSport: scale maximal stick input to maximal allowed velocity instead of being hardcoded for testing
2018-04-05 07:30:12 +02:00
Matthias Grob
6c0acf8e13
FlightTaskManual: enable non-carrot velocity method also for yaw
2018-04-05 07:30:12 +02:00
Matthias Grob
975ac11635
mc_pos_control: enable yawspeed execution for tasks
2018-04-05 07:30:12 +02:00
Matthias Grob
a896332746
FlightTaskManual: fixed stick vector index bug and enabled basic yaw setpoint control
2018-04-05 07:30:12 +02:00
Matthias Grob
a00c3e4024
FlightTaskSport: created a simple child class of FlightTaskManual that can scale the velocity to a much higher value
2018-04-05 07:30:12 +02:00
Matthias Grob
de872ca047
FlightTaskManual: remove the smoothing from the task to add it later in a child class
...
also separated the velocity scaling to enable sport mode
2018-04-05 07:30:12 +02:00
Matthias Grob
6070d72308
FlightTasks: Various review refactoring
2018-04-05 07:30:12 +02:00
Matthias Grob
4d0dca5dd5
FlightTask: make applyCommandParameters getting called recursively & pass command by reference
2018-04-05 07:30:12 +02:00
Matthias Grob
4bb3692020
FlightTask: remove unused declaration of old position evaluation method
2018-04-05 07:30:12 +02:00
Matthias Grob
fd93e55527
FlightTaks: prevent running a new task with default parameters because they got rejected
2018-04-05 07:30:12 +02:00
Matthias Grob
d9c7e6321f
FlightTasks: Introduce the empty setpoint to reset the setpoint for every loop iteration and return it in case of no task running
2018-04-05 07:30:12 +02:00
Matthias Grob
c500221894
FlightTasks: move methods of the class header into the cpp
2018-04-05 07:30:12 +02:00
Matthias Grob
efd240904f
FlightTasks: added possibility to apply task parameters from the vehicle command
2018-04-05 07:30:12 +02:00
Matthias Grob
b1f24da05e
FlightTasks: enable mavlink command handling for switching tasks including acknowledgement
2018-04-05 07:30:12 +02:00
Matthias Grob
6ec9ff64d1
FlightTaskManual/Orbit: make sure we are not required stick input data during orbit
2018-04-05 07:30:12 +02:00
Matthias Grob
e5d237088c
FlightTasks: refactoring for CamelCase naming convention, small comment and declaration order renicements
2018-04-05 07:30:12 +02:00
Matthias Grob
888a63c001
FlightTasks: bool return values for clarity & introduce updateInitialize() to have input data fetching separated from the update()
2018-04-05 07:30:12 +02:00
Matthias Grob
e44733a03c
FlightTasks: small refactor for review comments
2018-04-05 07:30:12 +02:00
Matthias Grob
1906b5b635
FlightTasks: remove all remaining unnecessary semicolons
2018-04-05 07:30:12 +02:00
Matthias Grob
5efb298ed9
FlightTasks: use forced update just after initialization
2018-04-05 07:30:12 +02:00
Beat Küng
737f7df6b8
Subscription & SubscriptionArray: add forcedUpdate() methods
...
Can be used to immediately get & use the data, as needed for the flight
tasks.
2018-04-05 07:30:12 +02:00
Matthias Grob
071b09c65d
FlightTasks: initialize task state based on subscriptions after the SubscriptionArray was initialized
2018-04-05 07:30:12 +02:00
Beat Küng
b0fdbf5136
FlightTask: inherit from Block instead of SuperBlock
...
I think this is more how it's meant to be
2018-04-05 07:30:12 +02:00
Beat Küng
9b571abb47
FlightTasks: add SubscriptionArray class that contains all subscriptions
...
This is to avoid dynamic (re-)allocations on task switching, due to
orb_{un,}subscribe calls.
2018-04-05 07:30:12 +02:00
Beat Küng
b5ecf9824d
flight tasks: use placement new to reduce memory overhead and the need for dynamic allocations
...
In addition, we will need some shared data structure for the uorb
subscriptions.
2018-04-05 07:30:12 +02:00
Matthias Grob
99eb051c0f
FlightTasks: adapt POSIX convention to return negative values on error
2018-04-05 07:30:12 +02:00
Matthias Grob
8a4d51c630
FlightTasks: replaced all hrt_elapsed() calls and unneeded hrt_ calls to safe performance
2018-04-05 07:30:12 +02:00
Matthias Grob
9fdb3ace0c
FlightTask: added setter for yawspeed and removed newlines in comments
2018-04-05 07:30:12 +02:00
Matthias Grob
dd53d1df5f
FlightTask: use copyToRaw matrix method in setpoint setters
2018-04-05 07:30:12 +02:00
Matthias Grob
919d0d6483
msg: vehicle_local_position_setpoint: add yawspeed as a state you can control
2018-04-05 07:30:12 +02:00
Matthias Grob
2dd61f71d1
FlightTask: fix doxygen comment /**< instead of /*<
2018-04-05 07:30:12 +02:00
Matthias Grob
c1056d307c
FlightTask: move setter back into header and switched argument to reference to have them inlined by the compiler
2018-04-05 07:30:12 +02:00
Matthias Grob
e597a9c0a1
FlightTasks: fix review comments
2018-04-05 07:30:12 +02:00
Matthias Grob
e193240e98
FlightTask: fix CI: static field requiring definition in cpp file, errors with clang linker (CI) but not with GCC
2018-04-05 07:30:12 +02:00
Matthias Grob
23fe822955
FlightTasks: private variables follow underscore name convention, member description comments doxygen style
2018-04-05 07:30:12 +02:00
Matthias Grob
6488acf8cd
msg: vehicle_local_position_setpoint comment about usage of NaN
2018-04-05 07:30:12 +02:00
Matthias Grob
92acbfde3e
FlightTasks: FlightTask definition to cpp, fix include chain, fix cmake
2018-04-05 07:30:12 +02:00
Matthias Grob
c211c807ad
FlightTasks: move method definitions of existing tasks into cpp files, it's not a header library
2018-04-05 07:30:12 +02:00
Matthias Grob
3450ccb2b2
FlightTaskOrbit: Fix zero vector resulting in NaN output and ignored setpoint
2018-04-05 07:30:12 +02:00
Matthias Grob
a570390dfb
FlightTasks: enable usage of yaw setpoint through position controller
2018-04-05 07:30:12 +02:00
Matthias Grob
e49f80eaa8
FlightTasks: switched output setpoint to reference getter, FlightTask holds it's data
2018-04-05 07:30:12 +02:00
Matthias Grob
d48ba8be72
FlightTask: move position and stick data subscription into tasks, Orbit introduce variable center position
2018-04-05 07:30:12 +02:00
Matthias Grob
0aeea44780
FlightTask: fixed time initialization issues
2018-04-05 07:30:12 +02:00
Matthias Grob
582990c0af
FlightTasks: revised task switching algorithm to catch errors during activation of a new task and make it more readable
2018-04-05 07:30:12 +02:00
Matthias Grob
edd5ed1349
FlightTaskManual: remove unnecessary subscription which is deprecated anyways
2018-04-05 07:30:12 +02:00
Matthias Grob
76a0b9f736
FlightTaskManual: Smooth flight integration: refactored and checked get_acceleration_z
2018-04-05 07:30:12 +02:00
Matthias Grob
6fb4c79234
FlightTaskManual: Smooth flight integration: refactored and checked second half of get_acceleration_xy executing the intention
2018-04-05 07:30:12 +02:00
Matthias Grob
42708ea456
FlightTaskManual: Smooth flight integration: refactored and checked first half of get_acceleration_xy determining the xy user intention
2018-04-05 07:30:12 +02:00
Matthias Grob
56b54d7b85
FlightTaskManual: Smooth flight integration: prepare interface of acceleartion methods for xy and z
2018-04-05 07:30:12 +02:00
Matthias Grob
634a67d058
FlightTaskManual: Smooth flight integration: slewrate now works, set to 0.2m/s^2 in all dimensions for testing
2018-04-05 07:30:12 +02:00
Matthias Grob
0d8d24e36d
FlightTaskManual: Smooth flight integration: replace all "dt"s with the local _deltatime
2018-04-05 07:30:12 +02:00
Matthias Grob
1f65717292
FlightTaskManual: Smooth flight integration: Make vel_sp_slewrate without any refactoring compile
...
analyzing detailed semantic and external uses of the variables still necessary
2018-04-05 07:30:12 +02:00
Matthias Grob
1b858f5e56
FlightTaskManual: Smooth flight integration: Copy over vel_sp_slewrate without any changes
2018-04-05 07:30:12 +02:00
Matthias Grob
5854fa06e9
FlightTaskManual: Smooth flight integration: Make set_manual_acceleration_z without any refactoring compile
...
analyzing detailed semantic and external uses of the variables still necessary
2018-04-05 07:30:12 +02:00
Matthias Grob
316e85f7ef
FlightTaskManual: Smooth flight integration: Copy over set_manual_acceleration_z without any changes
2018-04-05 07:30:12 +02:00
Matthias Grob
cb096861d9
FlightTaskManual: Smooth flight integration: Make set_manual_acceleration_xy without any refactoring compile
...
analyzing detailed semantic and external uses of the variables still necessary
2018-04-05 07:30:12 +02:00
Matthias Grob
e6442c7a7c
FlightTaskManual: Smooth flight integration: Copy over set_manual_acceleration_xy without any changes
2018-04-05 07:30:12 +02:00
Matthias Grob
6c0e7654ed
FlightTasks: added handling for switching to the already active task and success feedback
...
removed and added comments
2018-04-05 07:30:12 +02:00
Matthias Grob
018581faca
FlightTaaskManual: finalized full acceleration manual controlled position flight to work properly
2018-04-05 07:30:12 +02:00
Matthias Grob
4d05193ad7
FlightTasks: switched to a block hierarchy with parameter names like TSK_ORB_RADIUS in mind
2018-04-05 07:30:12 +02:00
Matthias Grob
9437326b01
FlightTaskOrbit: altered initialisation and limiting of parameters for demonstration
2018-04-05 07:30:12 +02:00
Matthias Grob
01383a0eeb
FlightTaskManual: Basic manual position controlled flight with position and altitude hold works
2018-04-05 07:30:12 +02:00
Matthias Grob
f2250c1952
FlightTasks: made a FlightTask inherit from SuperBlock to have Block::Subscription s
...
FlightTask Manual: subscription made setpoint conversion according to vehicle attitude work
2018-04-05 07:30:12 +02:00
Matthias Grob
a8a2b4b6f3
FlightTasks: switched output position setpoint to be pointer based
...
changed "NULL"-pointers to "nullptr" for better compliance
2018-04-05 07:30:12 +02:00
Matthias Grob
28f4d18062
FlightTasks: added FlightTaskManual as replacement for the current stick based position controlled flight
...
it's a draft and only works for velocity setpoints oriented in NED frame yet
# Conflicts:
# src/lib/FlightTasks/tasks/FlightTaskOrbit.cpp
2018-04-05 07:30:12 +02:00
Matthias Grob
a9d0990bb8
FlightTasks: added a temporary hardware switch for task switch testing
2018-04-05 07:30:12 +02:00
Matthias Grob
73f633dfd2
FlightTasks: added possibility to set velocity setpoint, switched Orbit to feedback velocity algorithm
2018-04-05 07:30:12 +02:00
Matthias Grob
e51e5f3e01
FlightTaskOrbit: added constraints for parameters & defined linear velocity instead of angular
2018-04-05 07:30:12 +02:00
Matthias Grob
88bf40e3cb
FlightTasks: added simple task switching with possibility do disable FlightTasks completely
2018-04-05 07:30:12 +02:00
Matthias Grob
37cb8c1a59
FlightTasks: added access to prepared velocity state for every task
2018-04-05 07:30:12 +02:00
Matthias Grob
8da1d3b16e
FlightTasks: give every FlightTask access to prepared stick input and position state
2018-04-05 07:30:12 +02:00
Matthias Grob
225f99af16
FlightTasks: created an array for all tasks and a method to set the general input pointers for all of them
2018-04-05 07:30:12 +02:00
Matthias Grob
32a1ff733d
FlightTasks: switch input from pointers in parameters passed on every run to private pointers of the base class with safety getter and setter
2018-04-05 07:30:12 +02:00
Matthias Grob
f3357aeca4
FlightTasks: make the orbit example actually orbit
2018-04-05 07:30:12 +02:00
Matthias Grob
b52f541492
FlightTasks: added timer in base class that counts from activation on including possibility to reset in subclass
2018-04-05 07:30:12 +02:00
Matthias Grob
c21c36dd8d
FlightTasks: added wrappers for filling setpoint vectors, made time dependent example
2018-04-05 07:30:12 +02:00
Matthias Grob
93ae260f44
FlightTasks: introduce new library to handle advanced features like orbit follow me and so on
...
it's only a draft setup yet and not functional for real use
the object is for now managed by the mc_pos_control module
but it stays as encapsulated as possible to enable the instance to reside in any trajectory module in the future
2018-04-05 07:30:12 +02:00
Beat Küng
b821297f20
logger: add board subtype
2018-04-04 13:30:52 -04:00
DanielePettenuzzo
572a6ec8e7
fmuv5 board_config: added TIM5_CH4 spare pin & 3 Input Cap channels
2018-04-04 12:08:34 +02:00
Daniele Pettenuzzo
b5d637cd0c
fmuv5 board config: disabled USART6 due to conflict on SBUS
2018-04-04 12:08:34 +02:00
DanielePettenuzzo
1b7fd5eae7
rcS: initialize TELEM4 on ttyS3 on FMUv5
2018-04-04 12:08:34 +02:00
DanielePettenuzzo
20f5de33df
PX4IO Firmware: bug fix in variable initialization
2018-04-04 12:08:34 +02:00
Lorenz Meier
97e8ec9551
PX4IO Firmware: Only decode DSM if no other input method matched
...
This ensures that the DSM decoder does not accidentally decode noise on the bus as DSM is not well-protected against CRC errors.
2018-04-04 12:08:34 +02:00
DanielePettenuzzo
4d8bd28a2b
fmu-v5 board_config.h > change PX4IO_SERIAL_VECTOR for px4io communication on uart 8
2018-04-04 12:08:34 +02:00
Lorenz Meier
8c28591f2d
FMUv5: Swap debug and PX4 IO serial ports to avoid DMA channel resource overlap
...
This is necessary to be able to use DMA on the IO link. We free one channel by disabling DMA entirely on the debug console.
2018-04-04 12:08:34 +02:00
Mateusz Sadowski
f0a8569c93
Drivers: Add TeraRanger Evo 600Hz support ( #9169 )
2018-04-04 00:28:53 -04:00
Daniel Agar
62700046eb
Jenkins bloaty sort output by size properly
...
- add full px4fmu-v3 output as well
2018-04-03 20:36:44 -04:00
Daniel Agar
f145b65cbb
mavlink static streams_list array
2018-04-03 18:37:51 -04:00
Daniel Agar
450229c2a4
dataman operations table is constexpr
2018-04-03 18:37:51 -04:00
Daniel Agar
ee7aebf971
ll40ls bus option is constexpr
2018-04-03 18:37:51 -04:00
Daniel Agar
428c8bbfe7
aerofc_adc bus option is constexpr
2018-04-03 18:37:51 -04:00
Daniel Agar
912cb7119e
IridiumSBD driver state string constexpr
2018-04-03 18:37:51 -04:00
Daniel Agar
86295638c1
gitmodules make name consistent with path
2018-04-02 17:06:42 -04:00
Daniel Agar
68a9d213d2
NuttX track px4_firmware_nuttx-7.22+ branch
2018-04-02 15:58:04 -04:00
Daniel Agar
06466cc125
gencpp and genmsg update to tracking branch latest
2018-04-02 15:58:04 -04:00
Daniel Agar
0164538442
cmake_hexagon update to latest
2018-04-02 15:58:04 -04:00
PX4 Jenkins
5a93f07829
Update submodule sitl_gazebo to latest Mon Apr 2 17:13:58 UTC 2018
...
- sitl_gazebo in PX4/Firmware (d05bc28576 ): https://github.com/PX4/sitl_gazebo/commit/7c5a7bb226f503ce7596c2067dac828cf07abcaa
- sitl_gazebo current upstream: https://github.com/PX4/sitl_gazebo/commit/28921bca9df9a212675b8e888c926d1ec6f6b28e
- Changes: https://github.com/PX4/sitl_gazebo/compare/7c5a7bb226f503ce7596c2067dac828cf07abcaa...28921bca9df9a212675b8e888c926d1ec6f6b28e
28921bc 2018-03-27 amy wagoner - Added fpv_cam.sdf as an exception.
c84d79c 2018-03-26 amy wagoner - removed unexpected element 'torsional'
4d777a7 2018-03-26 amy wagoner - Removed 'pose frame'
771265b 2018-03-26 amy wagoner - Added iris fpv world.
016a612 2018-03-26 amy wagoner - Added generic camera model and iris fpv model.
2018-04-02 13:43:47 -04:00
Daniel Agar
a130f31b30
gitmodules make urls consistent
2018-04-02 13:43:10 -04:00
Daniel Agar
768d7435c8
Jenkins bloaty comparison show top 100 (default is 10)
2018-04-02 13:43:10 -04:00
Daniel Agar
c593dff795
Jenkins split snapdragon build into linux + qurt
2018-04-02 13:43:10 -04:00
Daniel Agar
d05bc28576
Jenkins Style Check skip submodules clean
2018-04-02 11:53:26 -04:00
dw.xiong
381c2b52ac
commander: Remove the ekf pre-flight check variables that are not used in commander. ( #9226 )
2018-04-02 10:52:32 -04:00
Hamish Willee
3e43300e54
Fix typo in spelling of Sonar
2018-04-01 21:40:47 -04:00
PX4 Jenkins
acc93092db
Update submodule matrix to latest Sun Apr 1 21:55:42 UTC 2018
...
- matrix in PX4/Firmware (76a3dbc9df ): https://github.com/PX4/Matrix/commit/e7c95fa027675f38f14b06344bf9855883013727
- matrix current upstream: https://github.com/PX4/Matrix/commit/21d47424c6050bb94da5de3f7580a8df66b6fcc7
- Changes: https://github.com/PX4/Matrix/compare/e7c95fa027675f38f14b06344bf9855883013727...21d47424c6050bb94da5de3f7580a8df66b6fcc7
21d4742 2018-03-31 Daniel Agar - Quaternion mark const helpers const
2018-04-01 18:54:38 -04:00
PX4 Jenkins
76a3dbc9df
Update submodule matrix to latest Sun Apr 1 17:27:33 UTC 2018
...
Latest: https://github.com/PX4/Matrix/commit/e7c95fa027675f38f14b06344bf9855883013727
Changes from matrix (https://github.com/PX4/Matrix/commit/61af508755c59d177c4e61a35cbfa270b06d9684 ) in current PX4/master (9fc1755c33 )
https://github.com/PX4/Matrix/compare/61af508755c59d177c4e61a35cbfa270b06d9684...e7c95fa027675f38f14b06344bf9855883013727
e7c95fa 2018-03-27 James Goppert - Fix README/cmake format.
d142ac2 2018-03-27 James Goppert - Fix coverage and bug in matrix equal test.
50446a5 2018-03-18 Daniel Agar - Matrix add == and != operators
2018-04-01 15:16:46 -04:00
PX4 Jenkins
059ddf88f4
Update submodule DriverFramework to latest Sun Apr 1 18:11:03 UTC 2018
...
- DriverFramework in PX4/Firmware (82a7343a7d ): https://github.com/PX4/DriverFramework/commit/29f386628af2c9dd6a95cb873d0624c0c0c58381
- DriverFramework current upstream: https://github.com/PX4/DriverFramework/commit/f98ea65e9bd35a8d2bdedd39e519b7320fe82b16
- Changes: https://github.com/PX4/DriverFramework/compare/29f386628af2c9dd6a95cb873d0624c0c0c58381...f98ea65e9bd35a8d2bdedd39e519b7320fe82b16
f98ea65 2018-01-15 Daniel Agar - remove platforms__nuttx dependency
2018-04-01 14:59:52 -04:00
Daniel Agar
f96338d6e4
gitmodules add branch to genmsg, gencpp, libuavcan
2018-04-01 14:19:56 -04:00
PX4 Jenkins
0f6552b156
Update submodule uavcan_board_ident to latest Sun Apr 1 17:34:37 UTC 2018
...
Latest: https://github.com/PX4/uavcan_board_ident/commit/2e5f9d6768b1dbffc006dc2ceeb2bfe120f22163
Changes from uavcan_board_ident (https://github.com/PX4/uavcan_board_ident/commit/f8851c841ecdaacc41a5219cc83e4a178a09bc08 ) in current PX4/master (9fc1755c33 )
https://github.com/PX4/uavcan_board_ident/compare/f8851c841ecdaacc41a5219cc83e4a178a09bc08...2e5f9d6768b1dbffc006dc2ceeb2bfe120f22163
2e5f9d6 2017-09-05 Daniel Agar - Update LICENSE
2018-04-01 14:19:16 -04:00
PX4 Jenkins
d0da91bded
Update submodule v2.0 to latest Sun Apr 1 13:31:08 EDT 2018
...
Latest: https://github.com/mavlink/c_library_v2/commit/95d4cb3b21130d67b251f323482f1c3fe1ce0c6c
Changes from v2.0 (https://github.com/mavlink/c_library_v2/commit/37d14af47d783eb516959cc10e4cf70d66e927c0 ) in current PX4/master (9fc1755c33 )
https://github.com/mavlink/c_library_v2/compare/37d14af47d783eb516959cc10e4cf70d66e927c0...95d4cb3b21130d67b251f323482f1c3fe1ce0c6c
95d4cb3 2018-03-28 PX4BuildBot - autogenerated headers for rev https://github.com/mavlink/mavlink/tree/f29e3302fef08a9df6bd2b2e944f1fbf35637035
f8b4fc9 2018-03-27 PX4BuildBot - autogenerated headers for rev https://github.com/mavlink/mavlink/tree/4accd6c062f6ca79a025f596744fc9cf907acc98
695883f 2018-03-27 PX4BuildBot - autogenerated headers for rev https://github.com/mavlink/mavlink/tree/b4efea1609631683c7b29f85571ba2f34a10116e
1bb9b2c 2018-03-27 PX4BuildBot - autogenerated headers for rev https://github.com/mavlink/mavlink/tree/56e28570a7557e62e95613d7bd13a96e8cf5e02e
68f9957 2018-03-27 PX4BuildBot - autogenerated headers for rev https://github.com/mavlink/mavlink/tree/8cf87fc5afe996604cc4399f21f83c7989ae5d9a
62abc60 2018-03-26 PX4BuildBot - autogenerated headers for rev https://github.com/mavlink/mavlink/tree/17207917a38ad690b3995e168b51bf232094b165
1b0dc47 2018-03-23 PX4BuildBot - autogenerated headers for rev https://github.com/mavlink/mavlink/tree/1d007c59dbe0121b7f2063a8919a44703634a5ef
925ab39 2018-03-21 PX4BuildBot - autogenerated headers for rev https://github.com/mavlink/mavlink/tree/5515533e8e5222aa1794616b124eddcaa040a5b3
f38624f 2018-03-15 PX4BuildBot - autogenerated headers for rev https://github.com/mavlink/mavlink/tree/91a22feb27e718373dd68e6fc57329f13f5e8d8a
2018-04-01 14:18:48 -04:00
PX4 Jenkins
82a7343a7d
Update submodule ecl to latest Sun Apr 1 17:26:07 UTC 2018
...
Latest: https://github.com/PX4/ecl/commit/ba2b9dfdd96d50d697165407b88b5bc94cdef84c
Changes from ecl (https://github.com/PX4/ecl/commit/39b69af9bf8340790011c7c2723d4ed725ea0a3b ) in current PX4/master (9fc1755c33 )
https://github.com/PX4/ecl/compare/39b69af9bf8340790011c7c2723d4ed725ea0a3b...ba2b9dfdd96d50d697165407b88b5bc94cdef84c
ba2b9df 2018-03-28 Daniel Agar - update matrix lib usage
2018-04-01 14:09:46 -04:00
PX4 Jenkins
9fc1755c33
Update sitl_gazebo submodule Sun Apr 1 00:19:14 UTC 2018
2018-03-31 21:54:00 -04:00
Daniel Agar
01340df545
Jenkins cleanup build creation
...
- cleanup workspace when done and increase retention
2018-03-31 19:26:08 -04:00
Anthony Lamping
e91275bcb4
CI: test launch files: setup for different vehicles, some reordering
2018-03-31 17:00:54 -04:00
Anthony Lamping
171a65c1cb
CI: on mavros failure restart it instead of killing test
2018-03-31 17:00:54 -04:00
Anthony Lamping
0af1c71255
launch: add respawn_mavros arg
...
reqs mavros>=0.23.2
2018-03-31 17:00:54 -04:00
Daniel Agar
2c31671cc2
FW SITL enable FW EKF2 default parameters
2018-03-30 19:29:42 -04:00
Anthony Lamping
752d43d94c
lengthen offboard tests
...
* land after offboard flying complete
* lengthen rostest time limit for tests (5 min ea)
2018-03-30 18:54:04 -04:00
Daniel Agar
ac61a04cd9
Jenkins ROS mission tests run ecl analysis script
2018-03-30 18:54:04 -04:00
Daniel Agar
ebed380998
process_logdata_ekf don't use Xwindows backend
2018-03-30 18:54:04 -04:00
Daniel Agar
2e207801d8
ecl process logdata script always use correct check_level_dict path
2018-03-30 18:54:04 -04:00
Daniel Agar
04ecc81a70
docker images update to 2018-03-30 tag
2018-03-30 15:49:41 -04:00
Daniel Agar
e6eab2e306
Jenkins update flight review title and description
2018-03-30 11:28:52 -04:00
Daniel Agar
8216187159
Jenkins discard old builds, but keep artifacts
2018-03-30 10:41:36 -04:00
Daniel Agar
60a7ce731d
Jenkins check style first ( #9197 )
2018-03-30 10:05:13 -04:00
Sugnan Prabhu
a328ba97de
aerofc: Look for px4flow sensor on telemetry port ( #8994 )
...
Signed-off-by: Sugnan Prabhu S <sugnan.prabhu.s@intel.com >
2018-03-30 00:50:14 -04:00
Roman
2257cfc0fa
vtol_att_control: set flag in_transition_to_fw properly
...
Signed-off-by: Roman <bapstroman@gmail.com >
2018-03-30 00:46:23 -04:00
Beat Küng
aa110f2075
tap_esc: add MC_AIRMODE support
2018-03-30 00:33:40 -04:00
Beat Küng
37d9d0c2cd
tap_esc: remove NAN_VALUE define and use existing NAN instead
2018-03-30 00:33:40 -04:00
Amir Melzer
54260313b7
ADIS16448 remove the restore factory calibration functionality from probe ( #9164 )
2018-03-29 23:52:46 -04:00
Daniel Agar
f0528d28fb
commander once armed safety should only request ARMING_STATE_STANDBY
2018-03-29 10:25:56 -04:00
Daniel Agar
95ff860f4e
commander cleanup includes and sort
2018-03-29 10:25:56 -04:00
Daniel Agar
0f6a94894d
commander state machine helper fix code style
2018-03-29 10:25:56 -04:00
Daniel Agar
db7e8635a2
commander state machine helper pass battery and safety as const references
2018-03-29 10:25:56 -04:00
Daniel Agar
4ccfc280c8
commander arming_state_transition add HIL boolean
2018-03-29 10:25:56 -04:00
Daniel Agar
c547866029
Commander::handle_command() remove unused safety parameter
2018-03-29 10:25:56 -04:00
Daniel Agar
e395b3578f
delete unused ARMING_STATE_ARMED_ERROR state
2018-03-29 10:25:56 -04:00
Daniel Agar
e29b568d33
state machine helper remove unused headers
2018-03-29 10:25:56 -04:00
Daniel Agar
bff2136db0
commander state machine helper use constexpr for strings
2018-03-29 10:25:56 -04:00
Daniel Agar
f59b7c7399
commander is_safe() use const references
2018-03-29 10:25:56 -04:00
Daniel Agar
376b5e4747
state machine helper make vehicle_status_flags const
2018-03-29 10:25:56 -04:00
Daniel Agar
8c8fe17ff3
commander delete unused main_state_prev
2018-03-29 10:25:56 -04:00
Daniel Agar
c194c1acb5
commander use const where possible
...
- this helps tease apart the various pieces of commander.
2018-03-29 10:25:56 -04:00
Beat Küng
0038a5e755
uorb: fix constness for _uorb_topics_list
...
_uorb_topics_list was marked as 'const char *' array, which means the data
of the array was not actually const and thus landed in the data section
(so in RAM instead of FLASH).
The size of the array is 436 bytes.
2018-03-29 10:06:21 -04:00
Beat Küng
576f4e02da
tunes: fix constness for _default_tunes
...
_default_tunes was marked as 'const char *' array, which means the data
of the array was not actually const and thus landed in the data section
(so in RAM instead of FLASH).
The size of the array is 64 bytes.
2018-03-29 10:06:21 -04:00
Daniel Agar
d40d165b4b
mavlink delete deprecated HIL_CONTROLS
2018-03-28 15:37:57 -04:00
Daniel Agar
3db287ba67
mavlink messages delete unnecessary timestamps and cleanup
2018-03-28 15:37:57 -04:00
Daniel Agar
c181501e27
commander home position update swap incorrect eph/epv for auto update
2018-03-28 15:37:57 -04:00
Daniel Agar
deb5cbcc82
mavlink GLOBAL_POSITION_INT use vehicle_local_position for altitude
2018-03-28 15:37:57 -04:00
Daniel Agar
6af989e8c0
mavlink VFR_HUD use vehicle_local_position for altitude
2018-03-28 15:37:57 -04:00
Daniel Agar
354181be24
mavlink update ALTITUDE message to always use vehicle_local_position
2018-03-28 15:37:57 -04:00
Phillip Kocmoud
8f1c84ce56
Enable internal SPI LIS3MDL on R15 Pixracer
2018-03-28 13:47:22 -04:00
Phillip Kocmoud
c3b64f6d2a
Corrected rotation for internal SPI LIS3MDL Sensor on R15 Pixracer
2018-03-28 13:47:22 -04:00
Julian Oes
e08ab0646f
sitl_gazebo: update submodule
...
This brings Gazebo 9 compatibility.
2018-03-28 16:26:54 +02:00
Daniel Agar
416feea9e4
uORB print_message cleanup
...
- indent field print with tabs instead of spaces
- print a newline before printing a nested field
- cmake add generator dependencies
2018-03-28 09:15:41 -04:00
Daniel Agar
c4c4441c87
generate_listener.py combine message exclusion
2018-03-28 09:15:41 -04:00
Daniel Agar
e76a7e48c8
generate uorb topic helper ignore _padding properly
2018-03-28 09:15:41 -04:00
Daniel Agar
a98c7cf5c8
generate uorb topic helper rename px4_printf to print_field
2018-03-28 09:15:41 -04:00
Daniel Agar
55466e539b
topic_listener report never published and cleanup
...
- don't ignore position_setpoint_triplet
2018-03-28 09:15:41 -04:00
Daniel Agar
0a0044fc29
uORB print message add timestamp elapsed
2018-03-28 09:15:41 -04:00
Daniel Agar
f172171928
listener replace custom uORB print code
2018-03-28 09:15:41 -04:00
Daniel Agar
5fba1f38b2
drivers start using uORB message print instead of custom
2018-03-28 09:15:41 -04:00
Daniel Agar
3db17a04fc
uORB generate message print functions
2018-03-28 09:15:41 -04:00
Oleg Kalachev
8d6bff08bb
precland: support receiving LANDING_TARGET message
2018-03-27 20:45:58 -04:00
Oleg Kalachev
5b030535c8
precland: fix incorrect converting microseconds to seconds
2018-03-27 20:45:58 -04:00
Oleg Kalachev
749a590c1c
precland: fix landing_target_pose subscription check
2018-03-27 20:45:58 -04:00
Oleg Kalachev
fef2e2ba82
precland: fix typos and code style
2018-03-27 20:45:58 -04:00
Daniel Agar
d8de624851
update ECL to latest with geo lib
2018-03-26 23:16:55 -04:00
Daniel Agar
0baf3e39aa
tests clang-tidy ignore eadability-function-size
2018-03-26 23:16:55 -04:00
Daniel Agar
f46ea75c9d
mag declinataion test switch to ut_compare_float
2018-03-26 23:16:55 -04:00
Daniel Agar
d585218060
tests clang-tidy ignore readability-function-size
2018-03-26 23:16:55 -04:00
Paul Riseborough
2b87e5a790
tests: Test all data points for declination model
2018-03-26 23:16:55 -04:00
Daniel Agar
0814ac585e
declination test update values
...
- test values entered from https://www.ngdc.noaa.gov/geomag-web/
2018-03-26 23:16:55 -04:00
Daniel Agar
29b3950747
move geo and geo_lookup to PX4/ecl
2018-03-26 23:16:55 -04:00
Matthias Grob
76bf9c6465
mc_att_control: reenable TPA for I term
...
In commit
eb67686b11
the TPA scaled integral gain was reverted back to the
normal unscaled gain which rendered the I part of TPA
useless.
2018-03-26 19:00:18 +02: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
Matthias Grob
11ea7dc928
mc_att_control: refactor: switch to matrix library
2018-03-26 16:20:57 +02:00
Beat Küng
693e9ffd46
mc_att_control: remove unused include <systemlib/param/param.h>
2018-03-26 16:20:57 +02:00
Beat Küng
1e09139fcc
refactor mc_att_control: move private method declarations above private data members
2018-03-26 16:20:57 +02:00
Beat Küng
b04a3a969d
refactor mc_att_control: use ModuleParams & Param classes
2018-03-26 16:20:57 +02:00
Beat Küng
22e8204de8
refactor mc_att_control: move class initializer to member initializer
2018-03-26 16:20:57 +02:00
Beat Küng
d68d9b522b
fix mc_att_control: add missing orb_unsubscribe
2018-03-26 16:20:57 +02:00
Beat Küng
673fa75e58
mc_att_control: refactor to ModuleBase & add module documentation
2018-03-26 16:20:57 +02:00
Daniel Agar
25300a6b11
VtolLandDetector add airspeed finite check
2018-03-26 09:42:50 -04:00
Daniel Agar
fda2edb7c4
sensors only publish airspeed if finite
2018-03-26 09:42:50 -04:00
Alessandro Simovic
9d3dfb7864
libtunes: addressing comments of #9117
2018-03-26 14:54:23 +02:00
Alessandro Simovic
6e1c495268
libtunes: added TUNE_MAX_STRENGTH
2018-03-26 14:54:23 +02:00
Alessandro Simovic
80d80835a0
libtunes: fixed some type conversions and other minor changes
2018-03-26 14:54:23 +02:00
Alessandro Simovic
92b89368f1
libtunes: fixed playback of string melodies
2018-03-26 14:54:23 +02:00
Alessandro Simovic
7d9b09b5e5
libtunes: made logic in Tunes::set_control() more obvious
2018-03-26 14:54:23 +02:00
Alessandro Simovic
4e479b7f04
libtunes: renamed config_tone() to reset()
2018-03-26 14:54:23 +02:00
Alessandro Simovic
6ce839ea1e
libtunes: added tone strength as state and output to libtunes
...
Since the tune library also contains logic how tunes can be overriden,
a user of the tunes library cannot know the strength of the current tune
without replicating some logic. Easy solution is to add strength to the
output of Tunes::get_next_tune().
2018-03-26 14:54:23 +02:00
Alessandro Simovic
acdc81ea0a
libtunes: cleanup / docs
2018-03-26 14:54:23 +02:00
Alessandro Simovic
d455c1e7e1
libtunes: Repeating tunes can be interrupted without override
...
Otherwise the only way of interrupting a repeated tune would be with the override flag, which should only be used rarely.
Now repeating tunes have lowest priority, followed by one-shot tunes, followed by anything with an override flag.
2018-03-26 14:54:23 +02:00
Alessandro Simovic
34836a2b21
libtunes: allow custom tune (id 0) to be used to stop playback.
...
Override flag must still be set to true!
2018-03-26 14:54:23 +02:00
Alessandro Simovic
2cf93df918
libtunes: _repeat was uninitialized. Defaulting to false now.
...
Bugfix: This fixes a bug where libtunes might indicate that there are more tones to play even after the last note of a tune.
2018-03-26 14:54:23 +02:00
Alessandro Simovic
f47443f283
libtunes: (bugfix) sending a custom msg tune overrides everything
...
Custom msg tune can override any tune playing, regardless of the tune_override flag.
2018-03-26 14:54:23 +02:00
Matthias Grob
2acd431fcb
mc_att_control: revert to tested cutoff frequency
...
Revert the disabled d term filter which needs to be enabled
after reducing IMU filtering and was probably unintentionally
during a rebase.
2018-03-26 14:23:03 +02:00
Daniel Agar
19a4f0988c
gyrosim fix transfer hardcoded buffer index
...
- fixes coverity CID 196758
2018-03-24 13:39:31 -04:00
Daniel Agar
a48e3bf68d
sensors fix uninitialized diffferential_pressure message
...
- fixes coverity CID 260383
2018-03-24 13:39:31 -04:00
Daniel Agar
fc829b8519
pwm_out_sim PWM_SERVO_SET_MIN_PWM fix index check
...
- fixes coverity CID 264261
2018-03-24 13:39:31 -04:00
Daniel Agar
8c43408a92
pwm_out_sim PWM_SERVO_SET_MAX_PWM fix index check
...
- fixes coverity CID 264263
2018-03-24 13:39:31 -04:00
Daniel Agar
0ef5d892a1
navigator precland initialize all fields
...
- fixes coverity CID 264259
2018-03-24 13:39:31 -04:00
stmoon
ed261c76da
add timestamp for sensor_preflight
2018-03-24 07:57:04 +01:00
Alexandr Kondratev
be52dcf5e3
BMP280 improve external device flag parameter naming ( #8806 )
2018-03-23 12:55:26 -04:00
Daniel Agar
d2712dcb05
mc_pos_control move to matrix lib ( #9141 )
2018-03-23 12:53:49 -04:00
Roman
cc26c34691
airspeed driver: un-advertise differential pressure topic
...
Signed-off-by: Roman <bapstroman@gmail.com >
2018-03-23 09:57:28 -04:00
bresch
81a80e0d56
Airmode - Minor rewording
2018-03-23 10:35:08 +01:00
bresch
c9d72c0d07
PWMSim : add MC_AIRMODE support
2018-03-23 10:35:08 +01:00
bresch
7ef3ae8828
Multicopter mixer - Recompute safe roll_pitch_scale if not in air-mode
...
If not in air-mode the mixer is not able to apply positive boosting
and roll_pitch_scale is recomputed to apply symmetric - reduced - thrust.
This has the consequence to cut completely the outputs when the thrust is
set to zero.
2018-03-23 10:35:08 +01:00
Beat Küng
56ea1a82aa
linux_pwm_out: add MC_AIRMODE support
2018-03-23 10:35:08 +01:00
Beat Küng
20c7387c87
snapdragon_pwm_out: add MC_AIRMODE support
2018-03-23 10:35:08 +01:00
Beat Küng
2b6ca2cf82
uavcan_main: use parameter_update to check for param updates
...
this avoids calling param_get() on every loop iteration.
2018-03-23 10:35:08 +01:00
Beat Küng
72d22c4297
cleanup uavcan_main: replace warnx with PX4_{INFO,ERR,DEBUG}
2018-03-23 10:35:08 +01:00
Beat Küng
f21ab05f48
mixer_multirotor: fix comment thrust_gain -> thrust_scale
...
Added in 262d9c790b .
2018-03-23 10:35:08 +01:00
Beat Küng
0d9693347f
fmu + px4io: fixes for MC_AIRMODE parameter
...
- fmu: in case of _mot_t_max==0 _airmode was not set in the mixer
- px4io: param_val is a float
2018-03-23 10:35:08 +01:00
bresch
99ce9cc2a8
Airmode - Add support for UAVCAN
2018-03-23 10:35:08 +01:00
bresch
6976232a20
Airmode - Add airmode parameter for multicopter mixer
2018-03-23 10:35:08 +01:00
bresch
851c3657d1
Multicopter mixer - Use already computed value instead of recomputing it
2018-03-23 10:35:08 +01:00
bresch
803eb9ac32
Multicopter mixer - Simplify and correct mistakes of roll-pitch motor saturation handling
2018-03-23 10:35:08 +01:00
bresch
450e7c6774
Multicopter mixer - Remove arbitraty boost gain during saturation
2018-03-23 10:35:08 +01:00
bresch
096e2ec629
Multicopter mixer - Always unsaturate high-saturated motors when possible
2018-03-23 10:35:08 +01:00
bresch
df194b1de4
Multicopter mixer - Rewrite unnecessarily complicated conditions
2018-03-23 10:35:08 +01:00
bresch
5da2842dbc
Multicopter mixer - Always unsaturate low-saturated motors when possible
2018-03-23 10:35:08 +01: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
dffb4f23b3
Jenkins add px4fmu bloaty comparison to last successful master build ( #9142 )
2018-03-22 13:42:24 -04:00
Daniel Agar
44e3bd6c1c
navigator follow_target move to matrix lib
2018-03-22 11:16:34 -04:00
Beat Küng
d75087572c
jMAVSim: update submodule
...
Fixes a mavlink 2 parsing bug
2018-03-22 08:27:27 +01:00
Beat Küng
a8ddd9ef64
syslink_bridge: include <cstring> to fix compilation issue
...
GCC error:
error: 'memcpy' was not declared in this scope
2018-03-22 08:19:08 +01:00
Beat Küng
b512d11e54
refactor fw_pos_control_l1: replace BlockParam* with Param* classes
...
Also change naming convention: add _ prefix to class attributes
2018-03-22 08:19:08 +01:00
Beat Küng
51ca01ce04
FixedwingAttitudeControl: remove SuperBlock dependency
2018-03-22 08:19:08 +01:00
Beat Küng
0fdd53f4c2
refactor simulator: replace BlockParam* with Param* classes
2018-03-22 08:19:08 +01:00
Beat Küng
7937f9e82c
refactor Battery: replace BlockParam* with Param* classes
2018-03-22 08:19:08 +01:00
Beat Küng
e32d8ea8b6
ModuleParams: add setParent() method
2018-03-22 08:19:08 +01:00
Beat Küng
408cfd6ce1
err.h: remove unused declarations
2018-03-22 08:19:08 +01:00
Beat Küng
cd4eb9a1de
pwm_out_sim: fix comment & add missing return
2018-03-22 08:19:08 +01:00
Beat Küng
dff7cf687a
pwm_out_sim: fix documentation & task name
2018-03-22 08:19:08 +01:00
Beat Küng
68ce62f173
Commander.hpp: remove usage of BlockParam & SuperBlock
2018-03-22 08:19:08 +01:00
Beat Küng
e3d653d9a7
md25: remove used source files BlockSysIdent.{cpp,hpp}
2018-03-22 08:19:08 +01:00
Daniel Agar
3a0a896a9c
sensors move to matrix lib
2018-03-22 08:17:32 +01:00
Daniel Agar
ad2b96b523
mavlink move to matrix lib
2018-03-22 07:46:16 +01:00
Daniel Agar
7830d3503e
posix sitl standard_vtol lower MPC_THR_MIN
2018-03-21 20:49:41 -04:00
Daniel Agar
b5aded0db2
update vtol mission tests to increase length
2018-03-21 20:49:41 -04:00
Daniel Agar
fd0f31ef50
FW Phantom FPV Flying Wing fix FW_R_RMAX 0
2018-03-21 18:34:52 -04:00
Daniel Agar
0e972fc6c2
Jenkins run bloaty on px4fmu nuttx builds
2018-03-21 17:07:03 -04:00
Daniel Agar
21ea27f7f6
camera_trigger replace math::Vector with matrix::Vector
2018-03-21 15:35:00 -04:00
Daniel Agar
5b6fda2e4b
uuv_example_app move to matrix lib
2018-03-21 15:15:41 -04:00
Daniel Agar
ac7242987c
delete unused tailsitter_recovery library ( #9103 )
2018-03-21 14:09:36 -04:00
Daniel Agar
b7bfeb442e
fw_att_control move to matrix lib math
2018-03-21 14:08:47 -04:00
Daniel Agar
1b174eeca2
drivers replace math::Vector<3> with matrix::Vector3f
2018-03-21 13:48:45 -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
d9fbf85c20
ekf2: remove early advertising of wind estimate topic
...
- if it's not estimating wind it won't publish it below (was fixed)
Signed-off-by: Roman <bapstroman@gmail.com >
2018-03-21 18:46:58 +01:00
Roman
372a519ac4
wind estimator: added airspeed and sideslip gate sizes for innovation tests
...
Signed-off-by: Roman <bapstroman@gmail.com >
2018-03-21 18:46:58 +01:00
Roman
32a848d312
updated ecl for airdata module
2018-03-21 18:46:58 +01:00
Daniel Agar
3600225ed4
wind_estimator trim module documentation to fit in limit
2018-03-21 18:46:58 +01:00
Daniel Agar
f1bb61769f
wind_estimator fix LPWORK/HPWORK confusion and cleanup
2018-03-21 18:46:58 +01:00
Roman
8400d42988
wind estimator: fixed minor comments
...
Signed-off-by: Roman <bapstroman@gmail.com >
2018-03-21 18:46:58 +01:00
Roman
86b525ad2c
wind_estimator: use ModuleParams class to handle parameters
...
Signed-off-by: Roman <bapstroman@gmail.com >
2018-03-21 18:46:58 +01:00
Roman
1fd1a426bb
cmake configs: don't build wind estimator for fmu-v2 due to lack of flash space
...
Signed-off-by: Roman <bapstroman@gmail.com >
2018-03-21 18:46:58 +01:00
Roman
d2ebb0c7a2
ekf2: advertise wind topic early to make sure ekf2 get the first instance
...
Signed-off-by: Roman <bapstroman@gmail.com >
2018-03-21 18:46:58 +01:00
Roman
5b067df01e
wind_estimator: cleanup
...
Signed-off-by: Roman <bapstroman@gmail.com >
2018-03-21 18:46:58 +01:00
Roman
33c1bcb983
wind_estimator: set missing task_id
...
Signed-off-by: Roman <bapstroman@gmail.com >
2018-03-21 18:46:58 +01:00
Roman
53e22661d4
wind_estimator: unsubscribe from topics and unadvertise wind topic
...
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
9dc7d1dd74
cmake configs: added wind estimator to relevant configs
...
Signed-off-by: Roman <bapstroman@gmail.com >
2018-03-21 18:46:58 +01:00
Roman
7c0f043116
added module which implements wind & airspeed scale factor estimator via
...
work queue
Signed-off-by: Roman <bapstroman@gmail.com >
2018-03-21 18:46:58 +01:00
Roman
9e1089a4fc
wind estimate msg: added more relevant data
...
- true airspeed innovation and variance
- sideslip angle innovation and variance
Signed-off-by: Roman <bapstroman@gmail.com >
2018-03-21 18:46:58 +01:00
Karl Schwabe
d952fe028e
MPU6000: unadvertises the accel and gyro uORB topics in destructor
2018-03-21 13:07:01 -04: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
sanderux
d87b7ac7f4
Fix scale application on FW throttle baro compensation
2018-03-20 00:13:36 +01:00
Daniel Agar
b6b7fddb9f
TECS and L1 switch to matrix math library ( #9101 )
2018-03-19 18:09:54 -04:00