2153 Commits

Author SHA1 Message Date
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