32329 Commits

Author SHA1 Message Date
Matthias Grob
cdf37ca557 PositionControl: deconflict hover thrust estimator, acceleration control
- Avoid constantly adjusting the velocity gains with the HTE
- Make sure the hover thrust integral update doesn't break
  even though its unit is acceleration and not unit thrust anymore

We need to convert the velocity gains to not contain/depend on the
hover thrust. In horizontal direction it doesn't make sense to scale
them with the hover thrust and in vertical direction the adjustments are
already done in the acceleration to collective thrust conversion.
2020-05-04 22:17:56 +02:00
Daniel Agar
466b5db36f
uORB::Publication improvements and cleanup (#14784)
- create common uORB::PublicationBase
 - uORB::PublicationQueued types are now type aliases
 - ORB_PRIO use enum type everywhere to avoid accidental misuse
 - PX4Accelerometer/PX4Gyroscope/etc driver libs explicitly advertise on construction, unadvertise on destruction. This is a workaround for any potential issues that might appear when accel/gyro cdev and uORB indexing doesn't align.
2020-05-04 11:09:30 -04:00
Matthias Grob
8e2c52a31a mc_pos_control: suppress vertical acceleration feed-forward during takeoff ramp
Because the takeoff ramp is a vertical velocity limit ramp for the
nice user experience but the acceleration feed-forward can
add on top of the output and depending on trajectory generation
result in unwanted thrust changes during the ramp.
2020-05-04 16:10:36 +02:00
Beat Küng
bcce75e691 icm20948+mpu9250: add support to configure the high bus speed 2020-05-04 09:49:23 +02:00
rfu
0becd29b46 fix mpu9250: wrong buffer size 2020-05-04 09:49:23 +02:00
rfu
f8db9c4f1b fix mpu6000: wrong buffer size 2020-05-04 09:49:23 +02:00
rfu
adb032d2e5 drivers: up_udelay -> px4_usleep 2020-05-04 09:49:23 +02:00
rfu
8787780de4 some printf format and conversion fixes 2020-05-04 09:49:23 +02:00
rfu
90c3819df5 fxos8701cq + fxas21002c: add support for I2C 2020-05-04 09:49:23 +02:00
David Jablonski
09180b9d4a
mavlink: increment cmd confirmation field (#14808) 2020-05-04 09:21:01 +02:00
kamilritz
960ad0693f fix format 2020-05-03 18:25:00 +01:00
kamilritz
9137813472 Received quaternion represents body to world 2020-05-03 18:25:00 +01:00
JaeyoungLim
4282832222
Update flightgear bridge (#14816)
Fix vehicle spawning issue with updating the submodule paths
2020-05-03 17:09:22 +02:00
Daniel Agar
6dfe12d122
Revert "drivers/pwm_out: cleanup for multi-platform use" (#14812)
This reverts commit 0c8dcf94bc256801a45475cdd7bc6490e9fb8af7.
2020-05-02 23:42:51 -04:00
JaeyoungLim
cd59f95565 Add additional flap channel in mixer
Since sitl gazebo is unable to control to joints from a single channel, an additional mixer is defined
2020-05-01 21:01:33 -04:00
baumanta
545b8118a8 change solo mag rotation to new convention 2020-05-01 21:00:55 -04:00
baumanta
200d905b63 delete ROTATION_YAW_293_PITCH_68_ROLL_90 as usage implies it is the same as ROTATION_ROLL_90_PITCH_68_YAW_293 2020-05-01 21:00:55 -04:00
baumanta
38a6304d53 cleanup unneccessary complicated formulations 2020-05-01 21:00:55 -04:00
baumanta
c758da2391 add test for rotations, add new rotations, fix old rotations 2020-05-01 21:00:55 -04:00
baumanta
c37424aff2 sort enum by mavlink MAV_SENSOR_ORIENTATION 2020-05-01 21:00:55 -04:00
kamilritz
0cdf2c2e29 Use ground truth uorb topic for ground truth mavlink message 2020-05-01 21:00:24 -04:00
Daniel Agar
28d2aca699 boards: include all procfs entries on boards that aren't flash constrained 2020-05-01 20:59:57 -04:00
Daniel Agar
8d0c92003a boards: remove all CONFIG_NXFONTS_DISABLE* 2020-05-01 20:59:57 -04:00
Daniel Agar
d89b7804f7
boards: initial CUAV X7Pro support (not complete)
- this is booting and functional, but still missing a few things
 - still needs full PWM output, verification of all sensor rotations and IO, etc
2020-05-01 20:59:28 -04:00
Daniel Agar
0c8dcf94bc drivers/pwm_out: cleanup for multi-platform use 2020-05-01 20:53:35 -04:00
Hamish Willee
0a4e7142ee ubuntu setup script: add gstreamer1.0-libav
This was needed in order to display video in QGC
2020-05-01 10:35:10 -04:00
PX4 BuildBot
c5341da813 Update submodule ecl to latest Fri May 1 00:39:52 UTC 2020
- ecl in PX4/Firmware (838a470e922076d18ad67a580b9cbab65e8e1f14): 8b6d665a13
    - ecl current upstream: cda7486897
    - Changes: 8b6d665a13...cda7486897

    cda7486 2020-04-30 Paul Riseborough - EKF: Prevent yaw reset to GPS caused by loss of GPS data (#805)
2020-04-30 21:24:33 -04:00
PX4 BuildBot
3135f7e1cf Update submodule flightgear_bridge to latest Fri May 1 00:39:36 UTC 2020
- flightgear_bridge in PX4/Firmware (3ea52fecd36956f35688bdfcc572f2c595fdc9c2): f7eb676108
    - flightgear_bridge current upstream: 13dde0b4a4
    - Changes: f7eb676108...13dde0b4a4

    13dde0b 2020-04-30 JaeyoungLim - Test build without flightgear (#2)
566c7c3 2020-04-30 JaeyoungLim - Add simple build test with github actions (#1)
2020-04-30 21:06:34 -04:00
Pedro Roque
3ea52fecd3 Added Roll Pitch Yawrate Thrust offboard test. Testing... 2020-04-30 17:43:25 -04:00
Daniel Agar
76cfd8fa39
boards: add nxp fmuk66-v3 and rddrone-uavcan146 socketcan builds 2020-04-30 15:04:08 -04:00
Daniel Agar
3e5f85b47b
uavcannode: add distance_sensor (all possible instances) 2020-04-30 14:52:06 -04:00
Daniel Robinson
d20bca095d Update CONTRIBUTING.md
- typo
2020-04-29 22:49:30 +01:00
JaeyoungLim
35ebbd7202
Switch flightgear bridge submodule to px4 organization (#14789)
This brings the flightgear bridge submodule under the px4 organization
2020-04-29 23:20:25 +02:00
Beat Küng
8bc72fe771 gps drivers: update submodule (M9N support) 2020-04-29 11:39:32 -04:00
Matthias Grob
81e576b63a rotation conversion: deconfuse roll 90 yaw 90 2020-04-29 10:12:50 +02:00
Jakub Kákona
dfa5ca1710
FlightGear simulator support (#14539)
- Add flightgear_bridge submodule.
- Add traget px4_sitl_nolockstep with disabled  LOCKSTEP simulation.
- Add flightgear viewer targets and startup scripts
- Add a few possible vehicles plane (rascal), autogyro (tf-g1), and rover (tf-r1))

Co-authored-by: Vit Hanousek <vithanousek@seznam.cz>
2020-04-29 08:46:59 +02:00
Mohammed Kabir
5ffe88672e vehicle_odometry: add timestamp_sample field for latency monitoring 2020-04-28 13:58:43 -04:00
kritz
ccaa103164
ekf2: Stop getting velocity variance from pose covariance matrix (#14779) 2020-04-28 10:05:30 -04:00
ealdaz-seesai
efa0e1bf0f
Rover land detection (#13769)
* Land Enabled

* Declared Subscriptor in header as originally intended.

In the header it caused SIGSEGV in my machine so that's why it was moved
to .cpp

* Code Style fixed

* Removed confusing comments

* Comment update

Co-authored-by: Julian Oes <julian@oes.ch>
2020-04-28 10:59:24 +02:00
Silvan Fuhrer
f78847b26f
VTOL: Pusher assist: add configuration for enabling it in LAND /disable below some altitude (#14706)
* VTOL type: add new parameter VT_FWD_TRHUST_EN for customizing pusher/tilt assist

Depending on the setting of this param, the pusher assist is:
-completely disabled (default)
-enabled in pos, alt and auto mode (except LAND)
-enabled in pos, alt and auto mode if above MPC_LAND_ALT1
-enabled in pos, alt and auto mode if above MPC_LAND_ALT2
-enabled in pos, alt and auto mode
(before it was always disabled in LAND mode)

-change default of VT_FWD_THRUST_SC from 0 to 0.7

Signed-off-by: Silvan Fuhrer <silvan@auterion.com>
2020-04-28 10:44:57 +02:00
Julian Oes
48c60d354d mavlink: move tune publication to separate class
This makes it easier to allocate in MavlinkReceiver.
2020-04-28 08:45:39 +02:00
Julian Oes
2d5184fcfe mavlink: copy tune to buffer to play later
Instead of blocking the receiver thread while playing a tune we now copy
the tune to a buffer and check if we can play the next note on each
iteration of the receiver thread.

The buffer and tune object is only created on the heap if we receive a
tune to play once and doesn't use resources otherwise.
2020-04-28 08:45:39 +02:00
Julian Oes
6f707bf7b5 mavlink: add support for PLAY_TUNE_V2 2020-04-28 08:45:39 +02:00
Julian Oes
5f676b6795 mavlink: move tune publication to a method 2020-04-28 08:45:39 +02:00
Julian Oes
06f40042e9 mavlink: use static_cast instead of C-style cast 2020-04-28 08:45:39 +02:00
Julian Oes
18b39545ab mavlink: add missing uORB publication of tunes
The old tune device interface is not working anymore and we need to
publish to uORB tune_control.

This solution is not optimal though because blocks the receiving thread.
2020-04-28 08:45:39 +02:00
baumanta
48cf38d623 support mag power compensation with battery_status instance 1 2020-04-28 08:36:44 +02:00
baumanta
503bd15b82 change python script to calculate right params 2020-04-28 08:36:44 +02:00
Daniel Agar
326d8efc16 move attitude controllers to new wq:attitude_ctrl 2020-04-27 21:34:35 -04:00
PX4 BuildBot
97bdfd9cec Update submodule ecl to latest Mon Apr 27 12:39:40 UTC 2020
- ecl in PX4/Firmware (27232514fcaf04924ecb405e144615c23ac6e2e0): 8a9d961f0d
    - ecl current upstream: 8b6d665a13
    - Changes: 8a9d961f0d...8b6d665a13

    8b6d665 2020-04-26 kamilritz - Avoid subtraction of two uint
70d65ea 2020-04-16 kamilritz - Test:Increase GPS jump need for rejection
c19f40e 2020-04-15 Kamil Ritz - Add reset position test for GPS and VISION
78a6b9f 2020-04-15 Kamil Ritz - SensorSimulator: Fix GPS horizontal position step
050298f 2020-04-08 Kamil Ritz - Improve matrix library usage
5749273 2020-04-08 Kamil Ritz - refactor resetPosition
2020-04-27 10:19:22 -04:00