Commit Graph

2314 Commits

Author SHA1 Message Date
Katrin Moritz 258e5ca5c9 Rename of the DF Robot Rover Airframe 2020-08-10 09:46:36 -04:00
Daniel Leonard Robinson fa4818e467
vehicles: add new vehicle type: Airship (#14862)
Co-authored-by: Anton Erasmus <anton@flycloudline.com>
Co-authored-by: Beat Küng <beat-kueng@gmx.net>
2020-08-10 08:52:51 +02:00
SungTae Moon 9707ac5316
implement gazebo simulation based on RTPS for multiple UAVs (#15463)
- add t option for target
   - add iris_rtps model (PX4/sitl_gazebo#558)
2020-08-08 13:19:19 +02:00
Beat Küng 0f68121ae0 kopis 2 airframe: enable frsky telemetry 2020-08-06 00:08:23 -04:00
Beat Küng 4282b3dd47 TRIG_PINS: allow triggering on 78 while still using the lower 6 pins for pwm 2020-08-04 13:37:40 +02:00
Daniel Agar 9b12647ac4 px4io: delete broken test and unnecessary limit
- delete broken px4io test and if_test
 - delete px4io limit (a fixed 400 Hz limit was always set at boot)
2020-07-30 10:29:07 -04:00
Katrin a448e82798
Rover Airframe 50004_dfrobot_gpx_asurada: Changing of physical parameter
- the values of the parameters GND_MAX_ANG and GND_WHEEL_BASE are outdated. They belonged to another Rover setup.
 - in the mixer file rover_diff_and_servo.main.mix the steering was controlled by roll, but in PX4 rover steering is controlled by yaw. And this was the reason why the attitude control did not work correctly
 - the DF Robot GPX:Asurada rover has actual a steering angle of 60 degrees. And and wheel base of 0.17m. Parameter values in the airframe file are changed to this values
2020-07-28 21:34:12 -04:00
xdwgood f014d0de8e Correctly set the FW_ARSP_MODE parameter value 2020-07-22 10:43:46 -04:00
Matthias Grob 5c5005fa58 ROMFS: remove remaining RC_FLT_CUTOFF
The parameter was removed in #14896 and I forgot to remove it from
all the configurations.
2020-07-21 11:28:18 -04:00
Daniel Agar 730af406a6 ROMFS: remove unnecessary parameter zero padding 2020-07-21 08:11:22 +02:00
Matthias Grob ced91f135b posix rcS: remove various SITL custom settings
because we need to have SITL simulation as realistic as possible
compared to a real flight with default settings such that we
either fix the problems or adjust the defaults already in SITL testing.
2020-07-14 09:58:46 -04:00
Stone White 400c44b5ef Raname DJI Airframe name to Provent Large PWM_MIN for normal ESCs 2020-07-03 09:08:22 +02:00
Benjamin Perseghetti 3302a6965d Add EOL for 1062 2020-06-25 12:59:10 -04:00
Benjamin Perseghetti eee82635be added EOL to mixer, changed tf-r1 to 1062 and to use properly named sitl mixer 2020-06-25 12:59:10 -04:00
Benjamin Perseghetti 165fdaa6c8 removed 1061 name collision, made rover mixing explicit to sitl 2020-06-25 12:59:10 -04:00
Benjamin Perseghetti e19ca62a0a fixes for R1 mixer https://github.com/PX4/sitl_gazebo/issues/533 2020-06-25 12:59:10 -04:00
Daniel Agar 55808ed2f9
simulator: break out standalone battery simulator module
- this is a small step towards unifying SITL & HITL
2020-06-24 10:39:21 -04:00
Beat Küng 157ef43e28 replay: use lockstep scheduler 2020-06-23 11:53:55 -04:00
Beat Küng 71dcf8d619 sitl: use lockstep components API
- avoids the need for ekf2_timestamp publications by q and lpe
- adds logger to the lockstep cycle and makes it poll on ekf2_timestamps
  or vehicle_attitude. This avoids dropped samples (required for replay).
2020-06-23 11:53:55 -04:00
Daniel Agar b6292a1a2d posix rcS fix shellcheck SC2236 2020-06-20 20:42:09 -04:00
Lum f3e5a42ccd Remove mixer for virtual elevator and add pitch control mixer to elevons 2020-06-20 12:17:54 +01:00
Daniel Agar 6dad4a3359 SITL VTOL tiltrotor disable airspeed 2020-06-18 22:25:35 -04:00
TSC21 28c4446eae init.d-posix: if750a: add GPS blending 2020-06-16 09:57:05 +01:00
TSC21 6add0fff7f add iris_dual_gps config and the possibility of testing GPS blending through simulation 2020-06-16 09:57:05 +01:00
JaeyoungLim 58ca389634
Fix tiltrotor range to use normalized actuator inputs in SITL (#14751)
This adds fixes to use the normalized actuator setpoints for simulating tiltrotor in sitl
2020-06-15 08:51:26 +02:00
Daniel Agar 6f6efd60b7 boards: centralize optional external I2C sensor start
- configured with new parameter SENS_EXT_I2C_PRB
2020-06-10 09:04:13 -04:00
Daniel Agar a83e75ee10
ROMFS: microsd prevent MacOS and Ubuntu trash and indexing files 2020-06-08 16:57:28 -04:00
Daniel Agar 5507c15bdc boards: move rgbled_pwm startup to appropriate boards 2020-06-08 16:49:46 -04:00
Beat Küng 7f73b9a131 kopis2: update tuning and filter parameters 2020-06-04 20:58:40 -04:00
Beat Küng fa567e93d8 4050_generic_250: update default filter parameters
A racer should have have to use a filter of 30Hz.
2020-06-04 20:58:40 -04:00
Beat Küng 5ce006dd8b SYS_HITL: reserve value -1 for external HITL 2020-06-04 20:58:40 -04:00
Beat Küng 867453eada posix rcS: always set IMU_INTEG_RATE
If this is wrong, the startup just hangs.
2020-06-04 20:58:40 -04:00
Daniel Agar e34bdb4be9
move IMU integration out of drivers to sensors hub to handle accel/gyro sync
- IMU integration move from drivers (PX4Accelerometer/PX4Gyroscope) to sensors/vehicle_imu 
 - sensors: voted_sensors_update now consumes vehicle_imu
 - delete sensor_accel_integrated, sensor_gyro_integrated
 - merge sensor_accel_status/sensor_gyro_status into vehicle_imu_status
 - sensors status output minor improvements (ordering, whitespace, show selected sensor device id and instance)
2020-05-30 11:07:54 -04:00
Daniel Agar 05856c1029 ROMFS: holybro s500 decrease filter defaults 2020-05-27 12:25:51 -04:00
Matthias Grob d92e66863a mc_pos_control: migrate MPC_*_VEL_* parameter to acceleration scaling
Before #14212 the velocity control gains used in the multicopter
position controller were defined as a scale between velocity error in
one axis (or it's integral and derivative respectively) and the unit
thrust vector. The problem with this is that the normalization of the
unit thrust vector changes per vehicle or even vehicle configuration
as 0 and 100% thrust get a different physical response. That's why
the gains are now defined as scale between velocity error
(integral/derivative) and the output acceleration in m/s².
2020-05-26 14:44:41 +02:00
JaeyoungLim b5e23f544e Tune down solo attitude rate controller
This removes visible oscillations of the vehicle
2020-05-23 11:46:16 -04:00
斯东Stone c07b687753 Set Power Monitor to a Neutral Position for PX4 Vision
Reference manual in box, and Holybro's website.
2020-05-11 14:27:03 -04:00
Daniel Agar 04113b4d57 commander: changes when USB connected
- skip avionics rail voltage check when USB connected
 - skip forced reboot on USB disconnect if circuit breaker set
 - avionics voltage preflight check don't silently fail if system_power unavailble
     - explicitly set supply check circuit breaker (CBRK_SUPPLY_CHK)
2020-05-06 13:53:54 -04:00
Daniel Agar ca998c1822
IMU: parameterize IMU integration time (IMU_INTEG_RATE)
- default integration rate now 200 Hz (5000 us interval)
 - set update rate for all drivers and simulators using PX4Accelerometer/PX4Gyroscope
2020-05-05 20:34:09 -04:00
JaeyoungLim b10cbd2892 Fix shibang of r1_rover airframe config
The shibang was missing in the previous commit where this file was added
2020-05-05 10:01:26 -04:00
kritz 33dc0fd146
Add vision velocity integration test (#14818) 2020-05-05 11:14:30 +02:00
JaeyoungLim cae28cd59a
Add aion robotics r1 rover sitl target (#14652)
This adds a sitl target and aiframe configs for the r1_rover, which is a differential rover example for SITL rover. The model is based on the aion robotics r1 rover
2020-05-05 11:07:02 +02: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
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
Hamish Willee 8236b8da81 Fix up doc links to point to master branch 2020-04-21 08:58:40 +02:00
JaeyoungLim 75054f11df
Add px4vision sitl target
- Use px4vision parameters
2020-04-20 18:08:41 -04:00
JaeyoungLim 6e18cb85b1 Add plane lidar model
Add model that can test terrain estimated landing
2020-04-19 17:09:42 -04:00
Matthias Grob ffa9fdbd56 posix rcS: always disable CPU load check 2020-04-17 18:25:07 +02:00
flbernier 3b0f2a4d43 Swap Ki and Kd in rover related airframes 2020-04-17 08:18:10 +02:00
Matthias Grob 8b76c0c023 PreFlightCheck: add checks for CPU and RAM load 2020-04-16 11:45:50 +02:00
mcsauder 6548fde024 Whitespace cleanup to quiet new blank line at EOF git hook. 2020-04-15 23:00:39 -04:00
Matthias Grob c9e64988b9 GPS Dynamic model default <1g
Only have it higher for VTOL and fixed wing.
Multicopter position controlled flight is in our experience always <1g.
Acrobatic flying definitely exceeds the acceleration but if control
doesn't rely on the GPS velocity and position there shouldn't be any
problem.
2020-04-08 11:52:38 -04:00
Nico van Duijn df07eed1a4 PX4Vision: tune MPC_LAND_ALT 2020-04-08 11:52:01 -04:00
Daniel Agar 7aa7f0ed95 switch remaining boards to new InvenSense IMU drivers 2020-04-07 09:59:12 -04:00
AlexKlimaj d8c140be04
UAVCAN Smart Battery Improvements 2020-04-06 21:09:02 -04:00
Julian Oes 641612468b ROMFS: start esc_battery if param is set 2020-04-06 15:56:54 +02:00
RomanBapst 0d8d4cd6e0 SITL configs: improve L1 tracking and increase backtransition duration
-decrease L1 period for tighter mission tracking in fw mode
- increase backtransition duration, we can now do this is we have active
deceleration control

Signed-off-by: RomanBapst <bapstroman@gmail.com>
2020-04-02 23:54:48 -04:00
Daniel Agar ca81175b07 rename drivers/px4fmu -> drivers/pwm_out
- split out header
2020-03-31 19:12:31 -04:00
Matthias Grob bda072512a rc.vtol_defaults: reduce maximum jerk to 4.5 m/s³ based on testing feedback
@fury1895 reported very valuable feedback from testing
the acceleration feed-forward on VTOL:
> MPC_JERK_MAX 4.5 (from 5 on it felt too aggressive)
> MPC_JERK_AUTO 4
> some hovering, some transitions, and a mission. Everything good.
> I'd say you feel the difference in position mode and you see it in
> Auto modes. Great improvement!
2020-03-30 09:58:39 +02:00
Matthias Grob bc2579f3be mc_pos_control_params: lower jerk configuration
because of tighter tracking with acceleration feed-forward.
2020-03-30 09:58:39 +02:00
Daniel Agar 28dc225015 add SENS_EN_PAW3902 to start paw3902 optical flow sensor 2020-03-26 13:08:59 -04:00
Beat Küng 2b360bfd48 rcS: fixes for SYS_USE_IO=0
rc.io is called from 2 places in rc.interface:
- if [ $OUTPUT_MODE = io -o $OUTPUT_MODE = uavcan_esc ]:
  - 'set OUTPUT_MODE io' is only set within USE_IO=yes, so removing
    the check in rc.io has no effect.
  - in case of UAVCAN, we also want the IO for RC, now covered in the next
    case.
- Further down ('Start IO for RC input if needed.').
  This is intended to start IO for RC only, when fmu is already started.
  However the previous check '$USE_IO = yes' in rc.io prevented that.

In addition we don't start rc_input in case of $USE_IO = no.

Fixes no RC on Pixhawk 2 with SYS_USE_IO=0.
2020-03-26 10:33:27 -04:00
Anurag Sai Vempati bcfe56b297
replay: apply replay module params before starting ekf2 (#14478) 2020-03-26 10:02:15 +01:00
Hyon Lim 1161dac875 Script update: PMW3901 driver argument has changed. so we change scripts and SPI interface. 2020-03-25 16:16:45 -04:00
Hyon Lim 1a23b7c609 IFO-S parameter updated. 2020-03-25 16:16:45 -04:00
Hyon Lim 15f997d337 Airframe: IFO-S setup is added. 2020-03-25 16:16:45 -04:00
SalimTerryLi dc8e775d8f
ADC: replace ioctl with uorb message (#14087) 2020-03-20 11:23:32 +01:00
Beat Küng e4bf535595 refactor bst telemetry: use driver base class 2020-03-17 23:31:17 -04:00
Beat Küng 1710cd9648 refactor px4flow: use driver base class 2020-03-17 23:31:17 -04:00
Beat Küng ec2de33547 lights: use driver base class 2020-03-17 23:31:17 -04:00
Beat Küng 3b7b2dc871 differential_pressure sensors: use driver base class 2020-03-17 23:31:17 -04:00
Beat Küng 83b367f000 refactor teraranger: use driver base class 2020-03-17 23:31:17 -04:00
Beat Küng a6ddf0e4b9 refactor sf1xx: use driver base class 2020-03-17 23:31:17 -04:00
Beat Küng f743585160 refactor mb12xx: use driver base class 2020-03-17 23:31:17 -04:00
Beat Küng 7e3f40d1c2 refactor mappydot: use driver base class 2020-03-17 23:31:17 -04:00
Beat Küng 1b1e1ba31f refactor ll40ls: use driver base class 2020-03-17 23:31:17 -04:00
Beat Küng df99555132 refactor ll40ls: split I2C and PWM into separate drivers
- there was almost nothing shared
- it will fit better into the updated I2C driver structure
2020-03-17 23:31:17 -04:00
Beat Küng 58f386a81c refactor pmw3910: use driver base class 2020-03-17 23:31:17 -04:00
Lorenz Meier 4f1749541c ROMFS: Exclude uncommon board configs (Generic 250) 2020-03-16 23:40:29 +01:00
Lorenz Meier cff36315c4 ROMFS: Exclude uncommon board configs (Beta75x) 2020-03-16 23:40:29 +01:00
Lorenz Meier f7455db20c ROMFS: Exclude uncommon board configs (Reaper) 2020-03-16 23:40:29 +01:00
Lorenz Meier 98c9e558ca ROMFS: Exclude uncommon board configs (3DR Quad) 2020-03-16 23:40:29 +01:00
Lorenz Meier 48d1c355c3 ROMFS: Exclude uncommon board configs (Solo) 2020-03-16 23:40:29 +01:00
Lorenz Meier 4c8866059d ROMFS: Exclude uncommon board configs (HK Micro) 2020-03-16 23:40:29 +01:00
Lorenz Meier ebf52a988a ROMFS: Exclude uncommon board configs (HB PX4 Vision) 2020-03-16 23:40:29 +01:00
Lorenz Meier 2e63a43ea1 ROMFS: Exclude uncommon board configs (HB S500) 2020-03-16 23:40:29 +01:00
Lorenz Meier f2037876a4 ROMFS: Exclude uncommon board configs (S500) 2020-03-16 23:40:29 +01:00
Lorenz Meier bf02b8cc72 ROMFS: Exclude uncommon board configs (QAV250) 2020-03-16 23:40:29 +01:00
Lorenz Meier 0808bc7243 ROMFS: Exclude uncommon board configs (QAVR5) 2020-03-16 23:40:29 +01:00
Lorenz Meier f660c495cb ROMFS: Exclude uncommon board configs (TBS Caipi) 2020-03-16 23:40:29 +01:00
Lorenz Meier 992adfed58 ROMFS: Exclude uncommon board configs (Parrot Disco) 2020-03-16 23:40:29 +01:00
Lorenz Meier 23bf4d5e1b ROMFS: Exclude uncommon board configs (Pigeon Airframe) 2020-03-16 23:40:29 +01:00
Lorenz Meier d397543262 ROMFS: Exclude uncommon board configs (Viper) 2020-03-16 23:40:29 +01:00
Lorenz Meier a304ce0d59 ROMFS: Exclude uncommon board configs (FX79) 2020-03-16 23:40:29 +01:00
Lorenz Meier c08128e917 ROMFS: Exclude uncommon board configs (Wing Wing) 2020-03-16 23:40:29 +01:00
Lorenz Meier 5f64efb87d ROMFS: Exclude uncommon board configs (Skywalker) 2020-03-16 23:40:29 +01:00
Lorenz Meier dd22b51606 ROMFS: Exclude uncommon board configs (Phantom) 2020-03-16 23:40:29 +01:00
Lorenz Meier 72cb9f2c1b ROMFS: Exclude uncommon board configs (Camflyer) 2020-03-16 23:40:29 +01:00
Lorenz Meier 936f93eb3a ROMFS: Exclude uncommon board configs (Generic Wing) 2020-03-16 23:40:29 +01:00
Lorenz Meier a2e2e4069b ROMFS: Exclude uncommon board configs (Dodeca Cox) 2020-03-16 23:40:29 +01:00
Lorenz Meier 47f21e42ba ROMFS: Exclude uncommon board configs (Mini Talon) 2020-03-16 23:40:29 +01:00
Lorenz Meier a1878cd1ab ROMFS: Exclude uncommon board configs (Albatross) 2020-03-16 23:40:29 +01:00
Lorenz Meier 3b7922b788 ROMFS: Exclude uncommon board configs (Maja) 2020-03-16 23:40:29 +01:00
Lorenz Meier 456958dd15 ROMFS: Exclude uncommon board configs (Standard Plane) 2020-03-16 23:40:29 +01:00
Lorenz Meier ffc718c0c2 ROMFS: Exclude uncommon board configs (AutoG2) 2020-03-16 23:40:29 +01:00
Lorenz Meier 3ab6cfe701 ROMFS: Exclude uncommon board configs (Helicopter) 2020-03-16 23:40:29 +01:00
Lorenz Meier e2429c8a7a ROMFS: Exclude uncommon board configs (Coax Heli) 2020-03-16 23:40:29 +01:00
Lorenz Meier f5db720e78 ROMFS: Exclude uncommon board configs (Tri Y-) 2020-03-16 23:40:29 +01:00
Lorenz Meier 31e776d570 ROMFS: Exclude uncommon board configs (Tri Y) 2020-03-16 23:40:29 +01:00
Lorenz Meier c4c39940de ROMFS: Exclude uncommon board configs (S250) 2020-03-16 23:40:29 +01:00
Lorenz Meier 21bcf2ff04 ROMFS: Exclude uncommon board configs (QAV250) 2020-03-16 23:40:29 +01:00
Lorenz Meier 60a1309b07 ROMFS: Exclude uncommon board configs (Kopis 2) 2020-03-16 23:40:29 +01:00
Lorenz Meier 733d3d0f13 ROMFS: Exclude uncommon board configs (DJI Matrice 100) 2020-03-16 23:40:29 +01:00
Lorenz Meier 61f4f25530 ROMFS: Exclude uncommon board configs (Aero) 2020-03-16 23:40:29 +01:00
Lorenz Meier 9e770c609d ROMFS: Exclude uncommon board configs (IFO) 2020-03-16 23:40:29 +01:00
Lorenz Meier db9f2700f6 ROMFS: Exclude uncommon board configs (Draco) 2020-03-16 23:40:29 +01:00
Lorenz Meier 7b94a2da80 ROMFS: Exclude uncommon board configs (ZMR250) 2020-03-16 23:40:29 +01:00
Lorenz Meier 41f9df6cf8 ROMFS: Exclude uncommon board configs (Nanomind) 2020-03-16 23:40:29 +01:00
Lorenz Meier 59ee1f0a29 ROMFS: Exclude uncommon board configs (Tilt Quad) 2020-03-16 23:40:29 +01:00
Lorenz Meier b5daf5799d ROMFS: Exclude uncommon board configs (Teal) 2020-03-16 23:40:29 +01:00
Lorenz Meier ed4ed50786 ROMFS: Exclude uncommon board configs (Clover4) 2020-03-16 23:40:29 +01:00
Lorenz Meier 4ee4b830ab ROMFS: Exclude uncommon board configs (Crazyflie) 2020-03-16 23:40:29 +01:00
Lorenz Meier d8ed4c7b3d ROMFS: Exclude uncommon board configs (Generic Ground) 2020-03-16 23:40:29 +01:00
Lorenz Meier 428ce42966 ROMFS: Exclude uncommon board configs (Axialracing AX10) 2020-03-16 23:40:29 +01:00
Lorenz Meier a394a68e47 ROMFS: Exclude uncommon board configs (Traxxas Stampede) 2020-03-16 23:40:29 +01:00
Lorenz Meier 8bc3418892 ROMFS: Exclude uncommon board configs (AION Robotics) 2020-03-16 23:40:29 +01:00
Lorenz Meier ebd188bca9 ROMFS: Exclude uncommon board configs (DFrobot GPX Asurada) 2020-03-16 23:40:29 +01:00
Lorenz Meier 37cc9604bc ROMFS: Exclude uncommon board configs (Quad +) 2020-03-16 23:40:29 +01:00
Lorenz Meier fd73580db8 ROMFS: Exclude uncommon board configs (UUV Generic) 2020-03-16 23:40:29 +01:00
Lorenz Meier 56de232bae ROMFS: Exclude uncommon board configs (UUV HippoCambus) 2020-03-16 23:40:29 +01:00
Lorenz Meier 54c3e72f0c ROMFS: Exclude uncommon board configs (Hexa X) 2020-03-16 23:40:29 +01:00
Lorenz Meier d68caed742 ROMFS: Exclude uncommon board configs (Draco R) 2020-03-16 23:40:29 +01:00
Lorenz Meier 942097a0ce ROMFS: Exclude uncommon board configs (Hexa +) 2020-03-16 23:40:29 +01:00
Lorenz Meier 7b0c8ec3fc ROMFS: Exclude uncommon board configs (Octo X) 2020-03-16 23:40:29 +01:00
Lorenz Meier e93d23985c ROMFS: Exclude uncommon board configs (Octo +) 2020-03-16 23:40:29 +01:00
Lorenz Meier 75491ed298 ROMFS: Exclude uncommon board configs (VTOL Tailsitter) 2020-03-16 23:40:29 +01:00
Lorenz Meier a3419a0130 ROMFS: Exclude uncommon board configs (VTOL Octo) 2020-03-16 23:40:29 +01:00
Lorenz Meier 4176627539 ROMFS: Exclude uncommon board configs (Babyshark) 2020-03-16 23:40:29 +01:00
Lorenz Meier f7666a8b74 ROMFS: Exclude uncommon board configs (Convergence) 2020-03-16 23:40:29 +01:00
Lorenz Meier 65ea2bc981 ROMFS: Exclude uncommon board configs (Claire) 2020-03-16 23:40:29 +01:00
Lorenz Meier 8d0f9d8601 ROMFS: Exclude uncommon board configs (Ranger) 2020-03-16 23:40:29 +01:00
Lorenz Meier 1300930d85 ROMFS: Exclude uncommon board configs (QuadRanger) 2020-03-16 23:40:29 +01:00
Lorenz Meier f663515f49 ROMFS: Exclude uncommon board configs (VTOL AAVVT) 2020-03-16 23:40:29 +01:00
Lorenz Meier 207ae6d83c ROMFS: Exclude uncommon board configs (VTOL Standard Delta) 2020-03-16 23:40:29 +01:00
Lorenz Meier 1e1762401e ROMFS: Exclude uncommon board configs (VTOL AAERT) 2020-03-16 23:40:29 +01:00
Lorenz Meier dc41771c1a ROMFS: Exclude uncommon board configs (Quad+) 2020-03-16 23:40:29 +01:00
Lorenz Meier 6cd669836c ROMFS: Exclude uncommon board configs (Firefly 6) 2020-03-16 23:40:29 +01:00
Lorenz Meier af9b073c9a ROMFS: Exclude uncommon board configs (Steadidrine Mavrik) 2020-03-16 23:40:29 +01:00
Lorenz Meier 440067870a ROMFS: Exclude uncommon board configs (Octo COX) 2020-03-16 23:40:29 +01:00
Lorenz Meier f3e4aec45a ROMFS: Exclude uncommon board configs (Hexa COX) 2020-03-16 23:40:29 +01:00
Lorenz Meier 079772823a ROMFS: Exclude uncommon board configs (TBS Endurance) 2020-03-16 23:40:29 +01:00
Lorenz Meier 65052717fe ROMFS: Exclude uncommon board configs (Steadidrone Q4D) 2020-03-16 23:40:29 +01:00
Lorenz Meier 83c0d4607e ROMFS: Exclude uncommon board configs (3DR Iris) 2020-03-16 23:40:29 +01:00
Lorenz Meier df49d1d815 ROMFS: Exclude uncommon board configs (TBS Dicovery) 2020-03-16 23:40:29 +01:00
Lorenz Meier 4f2d39cb15 SITL plane: Do not configure trigger
We have a plane_cam configuration for survey applications instead.
2020-03-14 17:50:40 +01:00
Lorenz Meier 39e473f988 Gazebo plane model: Enable tighter turns
This helps to fly smaller / faster test missions.
2020-03-14 17:50:40 +01:00
Lorenz Meier 76b3c18625 Add dedicated survey camera plane model
This is to allow us to test triggering properly in SITL
2020-03-14 17:50:40 +01:00
Lorenz Meier 320cc8bae6 POSIX SITL: Enable trigger control in plane model
This allows to test plane survey missions with the camera trigger included in SITL.
2020-03-14 17:50:40 +01:00
Daniel Agar 0eca583ecf sensors: move baro aggregation to new sensors/vehicle_air_data 2020-03-12 19:06:34 -04:00
Daniel Agar 093e9ba1ce
mc_rate_control: use vehicle_angular_acceleration topic instead of differentiating
* mc_rate_control: use vehicle_angular_acceleration topic
* IMU_DGYRO_CUTOFF change default to 30 Hz
* improve IMU_DGYRO_CUTOFF param documentation (updated from MC_DTERM_CUTOFF)
2020-03-12 15:07:03 -04:00
Daniel Agar 5d33b9e999
delete Outback Challenge (OBC) AUTO_RTGS (datalink loss) and AUTO_RCRECOVER (rc loss) 2020-03-11 22:45:55 -04:00
Daniel Agar f9794e99f8
move hover_thrust_estimator to new module (mc_hover_thrust_estimator)
* MC_HTE: unitialize with hover_thrust parameter
* MC_HTE: constrain hover thrust setter between 0.1 and 0.9
* MC_HTE: integrate with land detector and velocity controller
* MCHoverThrustEstimator: Always publish an estimate even when not fusing measurements. This is required as the land detector and the position controller need to receive a hover thrust value.

* MC_HTE: use altitude agl threshold to start the estimator
local_position.z is relative to the origin of the EKF while dist_bottom
is above ground

Co-authored-by: bresch <brescianimathieu@gmail.com>
2020-03-11 21:20:54 -04:00
Beat Küng e627fed117 fmu-v2: disable perf command and some airframes
to reduce FLASH size
2020-03-10 10:11:43 -04:00
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 be35c4857b.

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