Commit Graph

119 Commits

Author SHA1 Message Date
xdwgood
f014d0de8e Correctly set the FW_ARSP_MODE parameter value 2020-07-22 10:43:46 -04: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
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
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
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
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
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
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
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
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
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
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
Anurag Sai Vempati
bcfe56b297 replay: apply replay module params before starting ekf2 (#14478) 2020-03-26 10:02:15 +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
5d33b9e999 delete Outback Challenge (OBC) AUTO_RTGS (datalink loss) and AUTO_RCRECOVER (rc loss) 2020-03-11 22:45:55 -04: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 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
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