2000 Commits

Author SHA1 Message Date
Matej Frančeškin
b8970673c6 Fixed Mavlink FTP tests 2020-03-08 21:43:54 +01:00
Katrin
116de6d25f
Airframe and mixer for rover DF Robot GPX:Asurada (#14244)
Added Airframe and mixer for rover DF Robot GPX:Asurada

Co-authored-by: Julian Oes <julian@oes.ch>
Co-authored-by: Lorenz Meier <lorenz@px4.io>
2020-03-08 14:35:24 +01:00
Julian Oes
874c6f385b commander: unify offboard timeouts
The implementation before this change had two timeouts, a hard-coded
timeout of 0.5 seconds as well as a by param configurable timeout with
certain failsafe actions set.

This change aims to fix two problems:
1. The hard-coded offboard timeout can be triggered easily with sped up
   lockstep simulation. Since i t is hard-coded it can't be adapted to
   the speed factor.
2. The offboard signal can time out but no action will be taken just
   yet. This means we end up in an in-between stage where no warning or
   failsafe action has happened yet, even though certain flags are set
   to a timeout state.

This patch aims to fix this by unifying the two timeouts to the existing
configurable param. The convoluted double timeout logic is replaced by a
simple hysteresis.

For anyone that has previously not changed the default timeout param (0),
the param will now be changed to 0.5 seconds which reflects the
previously hardcoded time. For anyone with a specific timeout
configured, the behaviour should remain the same.

Also, going forward, timeouts lower than 0.5 seconds should be possible.
2020-03-04 09:35:14 +01:00
Julian Oes
43a1257843 ROMFS: prevent auto-disarm before takeoff in CI
Sometimes in CI for VTOL we saw disarms before the spoolup and ramp were
over and the takeoff would actually happen. By raising the auto-disarm
time we should be able to work around this and get CI less flaky.
2020-02-21 09:58:21 -05:00
JaeyoungLim
e0d6f94318 Add boat(usv) sitl target 2020-02-21 00:30:15 -08:00
JaeyoungLim
c89766c8ab Fix gcs udp port to support more vehicles in multivehicle sitl
Limit remote udp port to 14549


Fix


Cleanup port handling


Fix bash syntax


Fix
2020-02-19 14:23:17 +01:00
JaeyoungLim
7a1464d992
Revert port change (#14177)
Reverts #14126 and #14176 until CI failures can be resolved
2020-02-18 14:56:04 +01:00
JaeyoungLim
b365fbf1e9 Fix bash syntax 2020-02-18 13:55:24 +01:00
JaeyoungLim
30cc3a1243 Cleanup port handling 2020-02-18 13:06:46 +01:00
JaeyoungLim
fc61d1c43d Limit remote udp port to 14549
Fix
2020-02-18 13:06:46 +01:00
JaeyoungLim
2bcd8490ff Fix gcs udp port to support more vehicles in multivehicle sitl 2020-02-18 13:06:46 +01:00
Daniel Agar
d7c3e1066a
uavcannode updates and px4_fmu-v4_cannode example
- drivers/uavcannode add baro, mag, gps publications
 - delete old px4_cannode-v1 board
 - add stripped down simple rcS for CAN nodes
2020-02-16 12:11:54 -05:00
Beat Küng
73bd90ddd5 crazyflie: fix PWM channel ordering
Channels belonging to a certain timer were not all grouped together.
This is required by the .first_channel_index and .last_channel_index data
members.

We introduce a new mixer geometry to solve the problem.
2020-02-13 03:49:16 -08:00
Daniel Duecker
36f836be79
add support for unmanned underwater vehicles (#14079)
* add support for unmanned underwater vehicles:
* airframe uuv_generic + uuv_hippocammpus including mav_type = 12 for submarines
* mixer for UUVs with X-shaped thruster setup similar to quadcopter
* add module  uuv_att_control for underwater robot attitude control
* add rc.uuv_defaults/apps for autostarting e.g. ekf2 and uuv_att_control app
2020-02-04 23:24:37 -05:00
JaeyoungLim
6dc3cbbd95
SITL add catapult plane target for new gazebo model (plane_catapult) 2020-02-02 11:59:17 -05:00
kritz
92e75452f5
Flow mockup (#14054)
* Add optical flow mockup model

* Update Tools.sitl_gazebo
2020-01-29 14:06:46 +01:00
Daniel Agar
dc5e10c3b1 airframes: delete 4004 H4 680mm
- this doesn't include any actual airframe configuration
2020-01-28 07:43:26 +01:00
Daniel Agar
b95442b38f airframes: delete 4012 quad x can 2020-01-28 07:43:26 +01:00
Daniel Agar
4ac3ce9f54 airframes: delete 4002 quad x mount
- the mount can be enabled via parameter
2020-01-28 07:43:26 +01:00
Roman Dvořák
497ab07daf airframes: add ThunderFly Auto-G2 autogyro (#14015) 2020-01-27 16:21:52 +01:00
Daniel Agar
dc05ceaad2
create temperature_compensation module
- this is a new module for temperature compensation that consolidates the functionality previously handled in the sensors module (calculating runtime thermal corrections) and the events module (online thermal calibration)
 - by collecting this functionality into a single module we can optionally disable it on systems where it's not used and save some flash (if disabled at build time) or memory (disabled at run time)
2020-01-20 21:42:42 -05:00
Julian Oes
735749e341 Revert "SITL shell: Do math using the shell"
This reverts commit be35c4857be2483050d9a34987aeda3c6935b516.

This would only work for integer math, so for simulation speed-up. For
speeds slower than realtime we need floating point.
2020-01-17 10:32:21 +01:00
Daniel Agar
d32a80df3a
simulator: replace gpssim with simple orb publication
- this is one of the last pieces of the system that still depend on DriverFramework
 - add new SIM_GPS_NOISE_X parameter for optionally increasing the GPS noise multiplier (was previously a gpssim command line option)
 - add SIM_x_BLOCK parameters to block sensor publication
   - SIM_GPS_BLOCK
   - SIM_ACCEL_BLOCK
   - SIM_GYRO_BLOCK
   - SIM_MAG_BLOCK
   - SIM_BARO_BLOCK
   - SIM_DPRES_BLOCK
2020-01-09 10:30:20 -05:00
Jacob Dahl
d08ec05bab PWM automatic trigger system (ATS) for parachutes (#13726)
* parameter and logic to commander for triggering failsafe from external automatic trigger system.
* logic to startup script for enabling ATS. Added uORB publishing to pwm_input module.
* Refactored out CDev usage from pwm_input and ll40ls. Refactored out ll40ls specifics from pwm_input and cleaned up dead code.
2020-01-06 20:14:06 -05:00
Daniel Agar
44f9de5e37
delete parrot bebop board support
This target was never fully supported and is heavily dependent on a number of DriverFramework drivers that have no in tree equivalents (bebop bus, flow, rangefinder, etc). Deleting this will make it easier to fully drop DriverFramework shortly.
2020-01-05 19:46:51 -05:00
Lorenz Meier
f5ce40e434 FMUv2: Exclude some multicopter targets
These are rarely used airframes that should not be missed.
2019-12-26 10:16:58 +01:00
Lorenz Meier
0c85c5d18e FMUv2: Exclude some fixed wing targets
These are rarely used airframes that should not be missed.
2019-12-26 10:16:58 +01:00
Lorenz Meier
02119c1832 FMUv2: Exclude rover targets
This is reasonable as these boards are very old and rovers are a new area of activity.
2019-12-26 10:16:58 +01:00
Lorenz Meier
be35c4857b SITL shell: Do math using the shell
Bash or zsh from the last 10 years or so do math using the $((a + b)) syntax. This saves us from having bc as dependency.
2019-12-26 10:16:58 +01:00
Julian Oes
81809d8234 ROMFS: prevent high accel bias in SITL 2019-12-26 10:16:58 +01:00
JaeyoungLim
4bcdf560be airframes: add config for px4vision devkit drone (#13683)
* Added configuration file for Pixhawk Vision

Signed-off-by: RomanBapst <bapstroman@gmail.com>
2019-12-16 08:21:17 +01:00
Ricardo Marques
86d3453343 Fix rover_sitl mixer call in CMakeLists.txt 2019-12-12 13:43:08 -05:00
Daniel Agar
f769b80fde cmake px4_add_romfs_files FATAL_ERROR if file doesn't exist 2019-12-12 13:42:30 -05:00
Matthias Grob
904ab16558 Fix trailing whitespace, EOF newline, indentation 2019-12-09 13:22:19 +01:00
RomanBapst
634e8d206a tiltrotor SITL config: increase transition time from 1.5 to 5 seconds
- avoids tilting the motors forward too fast

Signed-off-by: RomanBapst <bapstroman@gmail.com>
2019-12-03 13:57:58 +03:00
Daniel Agar
0cc250194d
VTOL: explicitly start all FW & MC controllers in VTOL mode 2019-11-30 12:58:36 -05:00
Daniel Agar
bc182e94e6
sensors split rc_update into new standalone module 2019-11-24 13:25:11 -05:00
Matthias Grob
6589aa5f71 posix rcS: remove overwriting default altitude 2019-11-22 13:36:05 -05:00
Julien Lecoeur
053ede6ca5 SITL: create a parameter file for each airframe 2019-11-21 15:55:49 +00:00
Julien Lecoeur
be99064133 SITL: add SYS_AUTOCONFIG support 2019-11-21 15:55:49 +00:00
Daniel Agar
84fe64b1c2
create new multicopter rate controller module (mc_rate_control) split out of mc_att_control 2019-11-19 17:03:11 -05:00
Nik Langrind
ba5efa5642 px4io: When running HITL, don't publish actuator_outputs. Fixes #13471.
When running in HITL mode, pwm_out_sim publishes actuator_outputs.

px4io unconditionally publishes the uOrb actuator_outputs. When HITL
is configured, the px4io copy of the uOrb has all zeros.

The result is that there are two publications, one valid, and one
all-zeros. This causes the HIL_ACTUATOR_CONTROLS mavlink message
to be incorrect (all-zeros) and the SERVO_OUTPUTS_RAW mavlink
message to be inconsistent, as it takes the data from one or the
other uOrb randomly each cycle.

The fix is to let px4io know that HITL is in effect when it is
started, and modify px4io to suppress publication in this case.

This is a bigger more complicated fix than I would like, but I
think it is conceptually correct.

Signed-off-by: Nik Langrind <langrind@gmail.com>
2019-11-17 11:19:35 +01:00
Daniel Agar
a694f0bbdd bl_update: build and include board bootloader if config available 2019-11-16 11:43:42 +01:00
Daniel Agar
2af262ed1d NuttX cmake build wrapper thorough dependencies 2019-11-16 11:43:42 +01:00
TSC21
d4ddabdf52 SITL: adds 'iris_rtps' target 2019-11-13 18:24:11 +00:00
Oleg Kalachev
942cdb1fa5 Add COEX Clover 4 airframe 2019-11-11 22:45:52 -05:00
Daniel Agar
668984b6b0 boards: start adc in rc.board_sensors 2019-11-11 17:08:24 -05:00
xdwgood
f984c4e450 ROMS: delete caipirinha_vtol.main.mix and instead use vtol_tailsitter_duo.main.mix 2019-11-11 10:40:20 +01:00
Pandacoolcool
ec0244906f fix yaw control error 2019-11-11 10:40:20 +01:00
Pandacoolcool
5c7da88265 remove unuse param 2019-11-11 10:40:20 +01:00