Daniel Agar
3fff512ec0
new standalone drivers/system_power (split out of adc)
...
- system_power portion of drivers/adc split into a new standalone module (drivers/system_power)
- additional availability flags added to system_power.msg so we know what boards even support (previously certain flags were faked if not available)
- drivers/system_power scheduled at minimum rate by default, but now also scheduled immediately on any relevant GPIO events
- now instead of running at 100 Hz with heavily reduced logging we can run at a minimal rate, log at full rate, and catch relevant changes immediately
2021-01-16 14:20:54 -05:00
Silvan Fuhrer
cee4016665
Preflight checks: Airspeed checks update
...
-check for valid airspeed_validated (declared valid plus updated less than 1s ago)
-added param (COM_ARM_ARSP_EN) to enable/disable check for max airspeed for arming set max
airspeed limit to half of stall airspeed
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2021-01-16 10:26:55 -05:00
Can Berk Durmus
ba9611621d
Retune Typhoon H480 PID
2021-01-16 09:32:09 +01:00
David Sidrane
1c0ed74d6a
platforms/nuttx/NuttX/nuttx net backports
2021-01-15 11:44:21 -08:00
Beat Küng
ade3871bee
adc: add support for multiple sensor voltage channels
2021-01-15 10:57:20 -05:00
Beat Küng
e2337a34eb
system_power: add comp_5v_valid and can1_gps1_5v_valid
...
And fill it in from the v5x GPIO expander.
2021-01-15 10:57:20 -05:00
Beat Küng
704a82aaa6
gpio: extend support for /dev/gp* GPIO's
...
Note that there's a small CLI interface change.
2021-01-15 10:57:20 -05:00
Beat Küng
88fe047556
px4/v5x: enable mcp23009 GPIO driver
2021-01-15 10:57:20 -05:00
Beat Küng
3e4b8763a5
nuttx: add mcp23009 gpio driver
2021-01-15 10:57:20 -05:00
Beat Küng
e1983381e7
rcS: add SYS_PARAM_VER to param reset_all exception list
...
Avoids an extra reboot when resetting the airframe
2021-01-15 10:57:20 -05:00
Matej Frančeškin
ba6a8080ea
mavlink: don't respond to MAV_CMD_REQUEST_MESSAGE if component doesn't match
...
PX4 is responding with NACK to MAV_CMD_REQUEST_MESSAGE from a GCS to
payload-manager which confuses a GCS.
PX4 shouldn't respond to commands that are not broadcasted or specificaly
addressed to it.
2021-01-15 10:57:20 -05:00
Beat Küng
26e8c231b0
v5x,v6x: move mtd_caldata after mtd_id partition
...
to avoid losing factory calibration params on existing setups
2021-01-15 10:57:20 -05:00
Lorenz Meier
a282f3df8d
CLI test: Disable by default on NuttX
...
First target is to enable this for POSIX tests and then later to roll them out to NuttX.
2021-01-15 10:57:20 -05:00
Lorenz Meier
03e9e10847
Add CLI tests for basic soak testing
...
This is in no way a complete test suite but is intended as a starting point to get minimal
test coverage for CLI handling tests in. This is necessary to QA the CLI handling
(e.g. removal of commands) and to ensure that we are exercising these code paths in
stack check and alike tests.
2021-01-15 10:57:20 -05:00
Julian Oes
5ae5c03c66
mavlink: handle param4/5 from mission_item_int
...
It turns out that we did not properly handle param4 and param5 if they
are transferred using mission_item_int if the frame is
MAV_FRAME_MISSION.
2021-01-15 10:57:20 -05:00
Beat Küng
12ebbd995d
bmp388: wait a bit longer to schedule first cycle after reset
2021-01-15 10:57:20 -05:00
Beat Küng
529c3112ac
bmp388: quiet if startup fails (no sensor on bus)
2021-01-15 10:57:20 -05:00
David Sidrane
1e7dfe227a
stm32_common:board_hw_rev_ver Use Analog resistor detection
...
When the VER_DRIVE and REV_DRIVE are the same GPIO
we need to use Analog detection.
2021-01-15 10:57:20 -05:00
Jakub Kákona
b87dd317d4
airframes: add new airframe for ThunderFly TF-G2 autogyro ( #16551 )
...
Co-authored-by: Roman Dvorak <romandvorak@mlab.cz >
2021-01-15 13:54:17 +01:00
Thomas
df41c99b61
make failsafe handling consistent over all VTOL types
2021-01-15 09:19:07 +03:00
Thomas
38e46ff341
Rename VtolAttitudeControl::abort_front_transition(const char *reason) to VtolAttitudeControl::quadchute(const char *reason)
2021-01-15 09:19:07 +03:00
Thomas Stauber
40fbfdc054
Undo make format change
...
Co-authored-by: Matthias Grob <maetugr@gmail.com >
2021-01-15 09:19:07 +03:00
Thomas
83ddb77a5f
delete excess empty lines
2021-01-15 09:19:07 +03:00
Thomas
b90fafd5cd
Fix quadchute logic so that it also works during back transition
2021-01-15 09:19:07 +03:00
Daniel Agar
420ceb76fc
cmake: NuttX generated vscode launch.json requires DEBUG_DEVICE found
2021-01-14 10:32:26 -05:00
SalimTerryLi
1ee98417f8
scumaker pilotpi updates
...
* replace default mag with qmc5883l
* fix rotation and quiet startup
* fixedwing script & Multi-EKF cfg
* set default params only when initial startup
2021-01-14 09:16:13 -05:00
Daniel Agar
52b07a932a
github actions build and store cannode uavcan firmware
2021-01-14 08:52:38 -05:00
RomanBapst
96dfa7fc71
ROMFS: set cruise throttle correctly for all gazebo vtol configs
...
Signed-off-by: RomanBapst <bapstroman@gmail.com >
2021-01-14 09:58:37 +03:00
Silvan Fuhrer
0633c3956f
ROMFS: improve tuning of tailsitter VTOL SITL
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2021-01-14 09:58:37 +03:00
Silvan Fuhrer
6104fe8932
ROMFS: improve tuning of tiltrotor VTOL SITL
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2021-01-14 09:58:37 +03:00
Silvan Fuhrer
2ce310925c
ROMFS: improve tuning of standard VTOL SITL
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2021-01-14 09:58:37 +03:00
Daniel Agar
e96571b45d
uavcannode: GPS working on cuav_can-gps-v1
...
- use sensor_gps directly from sensor rather than vehicle_gps_position (aggregated value)
2021-01-13 22:06:46 -05:00
Daniel Agar
d8e8e23947
vscode: add cuav_can-gps-v1_canbootloader variant
2021-01-13 22:06:46 -05:00
Daniel Agar
58909b208d
boards: cuav can-gps-v1 add safety button and LED
2021-01-13 22:06:46 -05:00
Daniel Agar
a894ca30e8
cmake: add STM32F412CE debug helper
2021-01-13 22:06:46 -05:00
David Sidrane
529841ba7c
make_can_boot_descriptor:Get padding math correct
2021-01-13 22:06:46 -05:00
David Sidrane
1ac70cc72f
can-gps-v1:Correct Memory size used by app and bootloader size
2021-01-13 22:06:46 -05:00
David Sidrane
d04216aa48
Nuttx with stmf412 fixes
2021-01-13 22:06:46 -05:00
David Sidrane
618bd5978a
can-gps-v1:canbootloader SAFETY is GETNODEINFO_JUMPER
2021-01-13 22:06:46 -05:00
David Sidrane
2deef30d12
canbootloader:Add 48Mhz CAN Clock Settings
2021-01-13 22:06:46 -05:00
David Sidrane
177109a1af
can-gps-v1:LED Trimming
2021-01-13 22:06:46 -05:00
David Sidrane
54abd997de
canbootloader:Update to use NuttX
2021-01-13 22:06:46 -05:00
David Sidrane
271f87f8d2
canbootloader:Fixed Warning
2021-01-13 22:06:46 -05:00
David Sidrane
238c28d458
SK6812 Led driver
2021-01-13 22:06:46 -05:00
David Sidrane
85bd04f0c7
can-gps-v1:canbootloader Fixed
2021-01-13 22:06:46 -05:00
David Sidrane
3e08fd6682
can-gps-v1: Removed GPIO_CAN_CTRL
2021-01-13 22:06:46 -05:00
David Sidrane
c2c92cb2c8
can-gps-v1: Added LED pin
2021-01-13 22:06:46 -05:00
David Sidrane
cdae8bf168
can-gps-v1:Fixed Clock
2021-01-13 22:06:46 -05:00
Daniel Agar
a0d8d5ac74
sensors/vehicle_gps_position: untangle and remove unnecessary state
2021-01-13 20:17:49 -05:00
Daniel Agar
bc8ec5d1f5
uavcannode: support optical_flow
2021-01-13 19:35:28 -05:00
RomanBapst
47364ce8d6
updated tuning for gazebo plane airframe config
...
Signed-off-by: RomanBapst <bapstroman@gmail.com >
2021-01-13 21:21:07 +03:00
RomanBapst
f05599caff
tecs: use speed derivative provided by local position
...
Signed-off-by: RomanBapst <bapstroman@gmail.com >
2021-01-13 21:21:07 +03:00
Silvan Fuhrer
b230bbfe88
ROMFS: remove outdated TECS parameter from configs
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2021-01-13 21:21:07 +03:00
RomanBapst
e546584555
tecs: moved trivial getter methods to header file
...
Signed-off-by: RomanBapst <bapstroman@gmail.com >
2021-01-13 21:21:07 +03:00
Roman Bapst
701c105ab6
Update src/lib/tecs/TECS.cpp
...
Co-authored-by: Mathieu Bresciani <brescianimathieu@gmail.com >
2021-01-13 21:21:07 +03:00
RomanBapst
fa559aef43
TECS: stop learing integrator if airspeed is not available, but don't zero it
...
Signed-off-by: RomanBapst <bapstroman@gmail.com >
2021-01-13 21:21:07 +03:00
RomanBapst
d4d1c0fe01
TECS: some cosmetics
...
Signed-off-by: RomanBapst <bapstroman@gmail.com >
2021-01-13 21:21:07 +03:00
RomanBapst
97cc1e25dd
TECS: hande pitch and throttle integrator saturation consistently
...
- don't decay integrator during saturation but prevent it from being learned
into the direction which causes more actuator saturation
Signed-off-by: RomanBapst <bapstroman@gmail.com >
2021-01-13 21:21:07 +03:00
RomanBapst
77627a08ca
TECS: don't allow speed height weights to be larger than one
...
Signed-off-by: RomanBapst <bapstroman@gmail.com >
2021-01-13 21:21:07 +03:00
Silvan Fuhrer
dca89763b3
TECS: apply FW_LND_THRTC_SC to altitude error time constant
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2021-01-13 21:21:07 +03:00
Silvan Fuhrer
3d3ff75495
TECS: update some params to latest results from flight testing
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2021-01-13 21:21:07 +03:00
Silvan Fuhrer
3102b9f071
TECS: remove throttle integral limits
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2021-01-13 21:21:07 +03:00
RomanBapst
987c320825
TECS: removed unused parameter
...
Signed-off-by: RomanBapst <bapstroman@gmail.com >
2021-01-13 21:21:07 +03:00
RomanBapst
5c4c2c240c
tecs: dot not clip throttle integrator during saturation but only allow
...
it to propagate into a direction which does not saturate
Signed-off-by: RomanBapst <bapstroman@gmail.com >
2021-01-13 21:21:07 +03:00
Silvan Fuhrer
2ca4269464
TECS: separate integral gains for throttle and pitch loops
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2021-01-13 21:21:07 +03:00
Silvan Fuhrer
72dfb2078a
TECS: adapt params to new control structure
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2021-01-13 21:21:07 +03:00
RomanBapst
01f891618b
TECS: move to new control loop architecture
...
Signed-off-by: RomanBapst <bapstroman@gmail.com >
2021-01-13 21:21:07 +03:00
RomanBapst
447e14906c
TECS: log more TECS states to enable better analysis
...
Signed-off-by: RomanBapst <bapstroman@gmail.com >
2021-01-13 21:21:07 +03:00
RomanBapst
8823f5e1ec
TECS: added method to get SKE weighting
...
Signed-off-by: RomanBapst <bapstroman@gmail.com >
2021-01-13 21:21:07 +03:00
RomanBapst
d0e8b882a2
TECS: added alpha filter classes to energy rate and tas derivative
...
Signed-off-by: RomanBapst <bapstroman@gmail.com >
2021-01-13 21:21:07 +03:00
xdwgood
cabb50a67b
13001_caipirinha_vtol:Ensure that the max/min pwm changes take effect
2021-01-13 11:32:01 +01:00
Julian Kent
be0f5a7fe4
Fix implicit float->double conversions in tests
2021-01-13 10:26:10 +01:00
Julian Kent
2d6758a39d
Cleanup of dataman mocks and check interval definition
2021-01-13 10:26:10 +01:00
Julian Kent
a97a4d8bb8
Fix enum and param update
2021-01-13 10:26:10 +01:00
Julian Kent
c745c8bb45
Small navigator refactor/cleanup
2021-01-13 10:26:10 +01:00
Julian Kent
04d859e36e
Fix test failure from parameter autosave starting WQ
2021-01-13 10:26:10 +01:00
RomanBapst
f97dcde4e2
GeofenceBreachAvoidanceTest: added tests for max dist to home
...
Signed-off-by: Julian Kent <julian@auterion.com >
2021-01-13 10:26:10 +01:00
RomanBapst
3fa15cec91
GeofenceBreachAvoidance: improve behavior when using max dist to home option
...
- ensure that the vehicle is loitering with sufficient clearance to the boundary
Signed-off-by: Julian Kent <julian@auterion.com >
2021-01-13 10:26:10 +01:00
Julian Kent
a5dfa0c803
Add helper function for decel distances
...
Co-authored-by: RomanBapst <bapstroman@gmail.com >
2021-01-13 10:26:10 +01:00
RomanBapst
0ac597fba8
Use new GeofenceBreachAvoidance from Navigator
...
Signed-off-by: Julian Kent <julian@auterion.com >
2021-01-13 10:26:10 +01:00
RomanBapst
e536868104
Add GeofenceBreachAvoidance class
...
Signed-off-by: Julian Kent <julian@auterion.com >
2021-01-13 10:26:10 +01:00
Julian Kent
8622c21496
Move VelocitySmoothing to new motion_planning library
...
Co-authored-by: RomanBapst <bapstroman@gmail.com >
2021-01-13 10:26:10 +01:00
Jannik Beyerstedt
3834690c4b
Add parameter to select the set of used GNSS systems
2021-01-13 08:33:07 +01:00
JacobCrabill
917fef546a
uavcan: Remove single-GNSS limitation from UavcanGnssBridge
2021-01-12 22:04:52 -05:00
Daniel Agar
a57b9f9381
delete drv_baro.h, drv_mag.h, drv_range_finder.h, drv_device.h and purge UAVCAN CDev usage
2021-01-12 22:04:52 -05:00
Daniel Agar
7f5fae91b0
boards: mro ctrl zero f7 fix default power module calibration
2021-01-12 16:51:05 -05:00
Jaeyoung-Lim
16b1b220fd
Fix roslaunch multivehicle regression caused by #16497
2021-01-12 21:19:36 +01:00
Beat Küng
daaf8b61dc
drivers: remove ism330dlc
...
not used anymore
2021-01-12 09:55:59 -05:00
Beat Küng
9f5dee2ecf
v5x/v6x: update IMU sensors (remove ISM330DLC)
2021-01-12 09:55:59 -05:00
Daniel Agar
48f125f150
estimated IMU bias preflight checks
...
- commander preflightcheck use estimator_sensor_bias message instead of EKF state index magic number
- ekf2 publish estimated bias limits in estimator_sensor_bias
- preflightcheck only error if bias estimate exceeds half of configured limit (delete COM_ARM_EKF_AB and COM_ARM_EKF_GB parameters)
2021-01-12 09:09:42 +01:00
TSC21
7c95e99156
tools: make sure that uORB type names found as part of field names are not capitalized as ROS types
2021-01-12 09:05:59 +01:00
Daniel Agar
cb74cb8692
boards: enable CONFIG_ARMV7M_LAZYFPU everywhere
2021-01-12 09:04:38 +01:00
Daniel Agar
abec2bd8df
msg: estimator_status_flags shorten fields
...
- previously this message exceeded the logger total field length (1500 bytes)
2021-01-11 11:49:51 -05:00
Daniel Agar
04f9ada500
ekf2: selector improve fallback selection when the primary becomes unhealthy
...
- if an ekf instance becomes unhealthy prefer switching to the next best healthy instance on a different IMU
2021-01-11 09:38:26 -05:00
Daniel Agar
967d35a6b6
rate limit most parameter_update subscriptions
...
- parameter updates can be quite expensive because they trigger nearly all modules to reload all of their parameters immediately
- limit modules from updating faster than once per second
2021-01-10 21:09:15 -05:00
Daniel Agar
70e503cb91
rotation: use Dcmf for all rotations that aren't direct swaps
...
- increase optimization to ${MAX_CUSTOM_OPT_LEVEL} (max per board)
2021-01-10 18:08:41 -05:00
TSC21
06b733bb86
msg: rtps: improve verbosity when the the client is not capable of parsing a specific ID
2021-01-10 22:22:22 +01:00
TSC21
3f1c303b16
msg: rtps: improve verbosity when the the agent is not capable of parsing a specific ID
2021-01-10 22:22:22 +01:00
bazooka joe
9b9163813d
avoid re-initiate RTL or land in battery emergency
...
if the mode is already running
2021-01-10 21:19:52 +01:00
Nicolas de Palezieux
6260c164e7
fmu v4: make starting mavlink on WIFI port configurable and make it start by default
2021-01-10 21:16:02 +01:00
Nicolas de Palezieux
653b7c0007
fmu v4: add option to run DShot telemetry on UART usually used for the ESP WIFI module
2021-01-10 21:16:02 +01:00
Matthias Grob
3cc8e7a210
commander_params: Make multicopter only COM_RC_OVERRIDE more visible
2021-01-10 21:12:09 +01:00
TSC21
cef3d36af2
simulator: delete PublicationMulti ptrs for sensor_gps
2021-01-10 19:58:54 +01:00
Daniel Agar
f73d93ef6c
ekf2: selector improve status reporting
...
- publish estimator_selector_status at minimal rate or immediately on change
- log all estimator_selector_status updates
2021-01-10 19:25:53 +01:00
Matthias Grob
2fc212e064
geofence_params: clarify EKF vs baro altitude source
2021-01-10 18:40:58 +01:00
Hamish Willee
d5c8d0a233
GF_ALTMODE: Update in line with Lorenz feedback
2021-01-10 18:40:58 +01:00
Hamish Willee
d43444fce7
geofence: GF_ALTMODE clarification
2021-01-10 18:40:58 +01:00
Muesli_Reep
fe7908feb0
Simulator: Added remote host option ( #15443 )
...
* Added an option to the Simulator module to connect to remote Gazebo servers.
This is usefull when the Gazebo simulation is running on a different host than the PX4 instance.
For example, we are running instances of PX4 with a companion application in multiple Dockers, for swarming simulations, which then connect to a remote Gazebo server.
A "-t" input argument has been added and can be called from the rcS startup script as: simulator start -t "192.168.178.122" $simulator_tcp_port
* _tcp_remote_ipaddr defaults to nullptr. This way testing against nullptr it can be determined if localhost or remote host is desired by the user.
* Documented the option in usage().
Signed-off-by: Peter Blom <peterblom.mail@gmail.com >
2021-01-10 18:37:37 +01:00
Daniel Agar
763c3b8fda
boards: start enabling multi-EKF by default on F7/H7
2021-01-10 17:56:34 +01:00
Jaeyoung-Lim
b3257c0bf2
Support relative altitude for offboard global position setpoints
...
Previously the coordinate_frame flag for setpoint_target_global_int message was not handled, resulting in the vehicle to not handle altitude correctly. This commit handles the relative altitude correctly.
2021-01-10 17:54:53 +01:00
Daniel Agar
662f177830
ekf2: multi instance numbering consistent with uORB publication instances
2021-01-09 13:20:26 -05:00
Daniel Agar
c3fc96fd42
uORB::PublicationMulti add get_instance()
2021-01-09 13:20:26 -05:00
PX4 BuildBot
0398a936e3
Update submodule ecl to latest Sat Jan 9 16:06:23 UTC 2021
...
- ecl in PX4/Firmware (c6af260a41 ): https://github/commit/c212975abe83bf462bc512288ba30358f9a17865
- ecl current upstream: https://github/commit/99575d73e10aad06eb7d5b6415ea2db4151c5045
- Changes: https://github/compare/c212975abe83bf462bc512288ba30358f9a17865...99575d73e10aad06eb7d5b6415ea2db4151c5045
99575d7 2021-01-09 Paul Riseborough - EKF: Add bad accel bias checking for EV and range finder height use cases
ff3c0a6 2021-01-08 Paul Riseborough - EKF: Fix bug preventing recovery from bad delta velocity bias estimates
c25c97f 2021-01-08 priseborough - [AUTO COMMIT] update change indication
9641810 2021-01-08 Paul Riseborough - test: Allow for larger vel variance growth due to dvel bias variance
1b1c049 2021-01-08 Paul Riseborough - test: Update unit test to match expected behaviour
dd259a2 2021-01-07 Paul Riseborough - EKF: Don't modify accel bias states and variances when inhibited
3e1f2d8 2021-01-07 Paul Riseborough - EKF: Set dvel bias variance to stored value when state is inactive
2021-01-09 12:57:25 -05:00
Daniel Agar
c6af260a41
log_message increase queue depth 2->4
2021-01-09 11:04:32 -05:00
Jaeyoung-Lim
d42e57a066
Update sitl_gazebo to latest
...
This PR updates sitl_gazebo to latest
2021-01-08 21:33:22 -05:00
Daniel Agar
b9a721726d
sensors/vehicle_magnetometer: respect calibration offset update success
...
- the magnetometer calibration offset setter returns false if the new offset change is negligible
2021-01-08 15:34:48 -05:00
Mohamed Abdelkader Zahana
80dd841cad
Update launch files to enable multi-video stream in SITL ( #16497 )
...
* Update launch files to support multi-video stream in SITL
* Pass extra args to jinja_gen.py inside gazebo_sitl_multiple_run.sh to enable multi-video streaming
2021-01-08 19:29:47 +01:00
Silvan Fuhrer
706f806943
VTOL: standard VTOL and Tiltrotor manual MC throttle during transition
...
This sets the throttle of the Multicopter actuators to the throttle stick position
while in Stabilized, Acro or Manual mode.
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2021-01-08 10:28:00 +01:00
xdwgood
802c68a62e
Do not run transition flight task when not enable altitude control
2021-01-08 10:28:00 +01:00
Daniel Agar
bf330a51b2
sensors/vehicle_magnetometer: reduce offset update message length to fit
2021-01-08 01:22:31 -05:00
Thies Lennart Alff
eb60479e4c
UUV introduce param to skip controller ( #15706 )
...
* added skip_ctrl param to uuv
* fixed formatting
2021-01-08 06:50:40 +01:00
PX4 BuildBot
064511c2df
Update submodule flightgear_bridge to latest Fri Jan 8 00:39:45 UTC 2021
...
- flightgear_bridge in PX4/Firmware (168468c12a ): https://github.com/PX4/PX4-FlightGear-Bridge/commit/44b51d5b1ccc6679e82090e24177ed73a3d4f5de
- flightgear_bridge current upstream: https://github.com/PX4/PX4-FlightGear-Bridge/commit/7c2c623da9f5dcb3f01d32830af1a2ed958de363
- Changes: https://github.com/PX4/PX4-FlightGear-Bridge/compare/44b51d5b1ccc6679e82090e24177ed73a3d4f5de...7c2c623da9f5dcb3f01d32830af1a2ed958de363
7c2c623 2021-01-06 slimonslimon - Switch Ign-math to Eigen3 (#5 )
2021-01-07 21:21:02 -05:00
PX4 BuildBot
168468c12a
Update submodule ecl to latest Thu Jan 7 12:50:52 UTC 2021
...
- ecl in PX4/Firmware (c999734463c9b23c6b56670d5242ca4496f9e6ef): https://github/commit/03fed323ab950125114eb34309d3a79119e572ee
- ecl current upstream: https://github/commit/c212975abe83bf462bc512288ba30358f9a17865
- Changes: https://github/compare/03fed323ab950125114eb34309d3a79119e572ee...c212975abe83bf462bc512288ba30358f9a17865
c212975 2021-01-06 bresch - rng height: reset to baro using common logic
2021-01-07 12:08:21 -05:00
Daniel Agar
88f8da27ef
save learned mag bias per sensor (Multi-EKF support)
...
- handle saving the mag bias per sensor (across all estimator instances using that mag) in sensors/vehicle_magnetometer
- this is now saving back to the actual mag calibration CAL_MAGn_OFF{X,Y,Z}
- ekf2 reset mag mag bias on any magnetometer or calibration change
- use Kalman filter scheme to update stored mag bias parameters using all available bias estimates for that sensor
Co-authored-by: Paul Riseborough <gncsolns@gmail.com >
2021-01-07 09:54:13 -05:00
Matthias Grob
537ee5b19b
FlightTaskOrbit: smooth yaw like in missions
2021-01-07 13:31:05 +01:00
Matthias Grob
44606ca872
FlightTaskOrbit: further simplify circling yaw setpoint calculation
...
The whole angle adding and pi wrap was just necessary because the
correct atan2 arguments were never completely thought through.
2021-01-07 13:31:05 +01:00
Matthias Grob
f435bea57c
state_machine_helper: orbit failsafe just with data link loss
...
RC is like the comment says not required.
2021-01-07 13:31:05 +01:00
Matthias Grob
6b8fa417e1
SlewRate: Add SlewRateYaw handling [-pi,pi] wraps
2021-01-07 13:31:05 +01:00
Daniel Agar
6c9072720e
invensense/icm42688p: use full 20 bit data, increase ODR, disable all filters
2021-01-06 17:03:39 -05:00
Jaeyoung-Lim
d2b0f63e1f
Handle offboard mode with acceleration setpoints
...
The case when acceleration setpoints were being passed in offboard mode was triggering control_climbrate_mode. This prevented the vehicle from taking off, since it made the vehicle skip the rampup phase of the takeoff
This commit fixes this by handling the case properly
2021-01-06 20:38:18 +01:00
garfieldG
3fb8f5df62
drivers/lsm303agr: fixed bug incorrectly assembling signed 16 bit integer from bytes
2021-01-05 21:37:08 -05:00
PX4 BuildBot
01e3f0d586
Update submodule matrix to latest Tue Jan 5 12:40:51 UTC 2021
...
- matrix in PX4/Firmware (fd97e28019fa9c665d9b3c6995098dd51b4ab022): https://github/commit/15e54ceda176f05e1ae38e71692d15cafb9e3a62
- matrix current upstream: https://github/commit/054f8b12f4da79767df6e05bb1d2cc8d679b99f3
- Changes: https://github/compare/15e54ceda176f05e1ae38e71692d15cafb9e3a62...054f8b12f4da79767df6e05bb1d2cc8d679b99f3
054f8b1 2021-01-04 Julian Kent - Use a single inverse implementation for a single matrix size
2021-01-05 19:24:42 -05:00
PX4 BuildBot
ff82911d86
Update submodule ecl to latest Tue Jan 5 12:40:47 UTC 2021
...
- ecl in PX4/Firmware (824f78466ac4e32aecd6bda785e95eb348e1b31e): https://github/commit/78ce46f00777f07d24c31bdc5e2edb203be2c0f4
- ecl current upstream: https://github/commit/03fed323ab950125114eb34309d3a79119e572ee
- Changes: https://github/compare/78ce46f00777f07d24c31bdc5e2edb203be2c0f4...03fed323ab950125114eb34309d3a79119e572ee
03fed32 2021-01-05 Paul Riseborough - EKF: Fix formatting
31fca9c 2021-01-05 Paul Riseborough - EKF: Update GPS loss message
c65cf13 2020-12-15 Paul Riseborough - EKF; Treat combined sideslip and airspeed as a horizontal aiding source
211c84c 2021-01-04 bresch - Rng finder unit test: cover "un-stuck" logic
2021-01-05 19:23:25 -05:00
Paul Riseborough
64ed96bd95
ekf2: Correct airspeed used by EKF for calibration errors
2021-01-05 19:22:53 -05:00
Daniel Agar
b94e346488
Update submodule sitl_gazebo to latest Tue Jan 5 12:40:40 UTC 2021 ( #16493 )
...
- sitl_gazebo in PX4/Firmware (850d0bc588 ): https://github.com/PX4/PX4-SITL_gazebo/commit/054e0a1be67b715ca1802397082e7814a1427f52
- sitl_gazebo current upstream: https://github.com/PX4/PX4-SITL_gazebo/commit/44de4acc3f9cf9e44db58006f99ea190d217017a
- Changes: https://github.com/PX4/PX4-SITL_gazebo/compare/054e0a1be67b715ca1802397082e7814a1427f52...44de4acc3f9cf9e44db58006f99ea190d217017a
44de4ac 2021-01-02 Lorenz Meier - Update README.md
Co-authored-by: PX4 BuildBot <bot@px4.io >
2021-01-05 19:34:11 +01:00
Silvan Fuhrer
850d0bc588
vtol_type: remvoe const from function declaration
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2021-01-04 15:32:00 +01:00
RomanBapst
0871f0f52d
vtol: refactor of maximum pwm value settings for main and alternate motors
...
- main motors are the ones which are meant to be used as propulsion in fw mode
- alternate motors are the ones usually meant to be switched off in fw mode
Signed-off-by: RomanBapst <bapstroman@gmail.com >
2021-01-04 15:32:00 +01:00
Daniel Agar
bc1e9f72f7
Jenkins hardware temporarily remove px4_fmu-v2
2021-01-04 09:30:47 -05:00
Silvan Fuhrer
92634e7549
RTL: during climb, set NAV_CMD_WAYPOINT for RW modes, NAV_CMD_LOITER_TO_ALT for FW
...
Do not use LOITER_TO_ALT for rotary wing mode as it would then always climb to
at least MIS_LTRMIN_ALT, even if current clib altitude is below
(e.g. RTL immediately after take off)
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2021-01-04 11:58:16 +01:00
Silvan Fuhrer
0b86c11c66
FW POS: remove setting of curr_sp to LOITER if next wp invalid
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2021-01-04 11:58:16 +01:00
Silvan Fuhrer
55a1d090a1
RTL: use NAV_CMD_LOITER_TO_ALT for Climb state
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2021-01-04 11:58:16 +01:00
RomanBapst
68f27ba7b7
navigator: deactivate line following after backt-ransition and before landing
...
- especially when there are strong winds it's better to just go straight
to the landing point instead of trying to follow the planned path
Signed-off-by: RomanBapst <bapstroman@gmail.com >
2021-01-04 11:58:16 +01:00
RomanBapst
b63f756745
navigator: don't execute land pattern if vtol in rotary wing mode
...
- if vtol and in rotary wing mode then don't execute the mission landing
because it's designed to be flow as a fixed wing
- if vtol and in rotary wing mode and mission land is available then fly directly
to landing point and don't go home!
Signed-off-by: RomanBapst <bapstroman@gmail.com >
2021-01-04 11:58:16 +01:00
RomanBapst
6c3f413379
mission: reset work_item_type during mission inactivation
...
- this fixes a race condition which happens when an RTL is triggered
during the final approach of a mission landing. In that case the mission inactive
method is never called.
Signed-off-by: RomanBapst <bapstroman@gmail.com >
2021-01-04 11:58:16 +01:00
RomanBapst
b63f202b3c
various fixed for bugs encountered during testing
...
Signed-off-by: RomanBapst <bapstroman@gmail.com >
2021-01-04 11:58:16 +01:00
RomanBapst
cfb3cdc82f
rtl: use math namespace
...
Signed-off-by: RomanBapst <bapstroman@gmail.com >
2021-01-04 11:58:16 +01:00
RomanBapst
94d3ab28ee
rtl: fixed computation of return altitude when mission landing is available
...
Signed-off-by: RomanBapst <bapstroman@gmail.com >
2021-01-04 11:58:16 +01:00
RomanBapst
12875f7869
mission: when land start marker present, look for loiter to altitude item
...
instead of using the previous waypoint as landing target
- the previous waypoint could be miles away
Signed-off-by: RomanBapst <bapstroman@gmail.com >
2021-01-04 11:58:16 +01:00
RomanBapst
e0c394a00b
mission: fixed bug in computation of landing altitude
...
Signed-off-by: RomanBapst <bapstroman@gmail.com >
2021-01-04 11:58:16 +01:00
RomanBapst
a4a03e86da
mission: be more intelligent about saying that we are on a mission landing
...
- previously the decision of being on a landing pattern was taken by just
looking at the current mission index. However, even if the current mission
index indicates a landing pattern the vehicle could be at an arbitrary location, far
from being established on the pattern.
Signed-off-by: RomanBapst <bapstroman@gmail.com >
2021-01-04 11:58:16 +01:00
RomanBapst
29c3ce6d5d
reworked RTL cone implementation
...
Signed-off-by: RomanBapst <bapstroman@gmail.com >
2021-01-04 11:58:16 +01:00
RomanBapst
dad5ce1e41
rtl: set proper acceptance radius for move_to_land item
...
Signed-off-by: RomanBapst <bapstroman@gmail.com >
2021-01-04 11:58:16 +01:00
RomanBapst
6ff95ae645
RTL: implement proper RTL sequence for VTOL
...
- descend to RTL descend altitude
- transition
- move to land waypoint
- loiter and then land
Signed-off-by: RomanBapst <bapstroman@gmail.com >
2021-01-04 11:58:16 +01:00
RomanBapst
197a21a22e
rtl: for fixed wing (also vtol) make the descend state of RTL use type
...
NAV_CMD_LOITER_TO_ALT
- this allows vtol to track the loiter circle during the transition instead
of trying to fly to the landing position
Signed-off-by: RomanBapst <bapstroman@gmail.com >
2021-01-04 11:58:16 +01:00
RomanBapst
bb2826ad27
rtl: for vtol first desend down to RTL descend altitude before doing a transition
...
Signed-off-by: RomanBapst <bapstroman@gmail.com >
2021-01-04 11:58:16 +01:00
RomanBapst
e81d5daa66
rtl: if very close to home then do not descend if higher than RTL_DESCEND_ALT
...
before reaching home
Signed-off-by: RomanBapst <bapstroman@gmail.com >
2021-01-04 11:58:16 +01:00
Silvan Fuhrer
7c727edc3f
Simple mixer: add output slew rate
...
This adds the option to limit the rate of change (slew rate) of an output that's mixed by a simple mixer.
To enable it, a positive number has to be added at the end (6th number) of the output scaler line of the mixer,
specifying the min rise time of this output.
E.g. O: 10000 10000 0 -10000 10000 20000 for a rise time of 2s, resp. a max slew rate of 0.5s^-1.
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2021-01-04 11:32:22 +01:00
Daniel Agar
98cff94702
px4_work_queue: directly support SITL lockstep
...
- the purpose is to ensure that every WorkItem (and WorkItems scheduled
by WorkItems) is allowed to run to completion every step
- per workqueue register a lockstep component whenever a work item is
added (if not already registered)
- once the work queue is empty unregister component
2021-01-04 09:38:05 +01:00
PX4 BuildBot
8c71ecd97e
Update submodule ecl to latest Sat Jan 2 12:39:29 UTC 2021
...
- ecl in PX4/Firmware (03925cc70fd13c15a5dfe8ecc5653b91098ac68d): https://github/commit/18f334f4dbca61e3bcd1743c22cf820b5a8ff7ef
- ecl current upstream: https://github/commit/78ce46f00777f07d24c31bdc5e2edb203be2c0f4
- Changes: https://github/compare/18f334f4dbca61e3bcd1743c22cf820b5a8ff7ef...78ce46f00777f07d24c31bdc5e2edb203be2c0f4
78ce46f 2020-12-19 Kamil Ritz - Removing Matlab derivation
2021-01-02 11:54:56 -05:00
RomanBapst
d502292d07
mission: for vtol takeoff don't use next waypoint as target during transition
...
- this caused the navigator to use the next waypoint (after the vtol takeoff item)
to be used as target during the transition. If the altitude of that waypoint
was much higher than the takeoff altitude then there were FOH effects
after the transition which caused the vehicle to first descend before
climbing again.
Signed-off-by: RomanBapst <bapstroman@gmail.com >
2021-01-02 02:18:59 +01:00
PX4 BuildBot
a1b81df445
Update submodule sitl_gazebo to latest Fri Jan 1 12:39:16 UTC 2021
...
- sitl_gazebo in PX4/Firmware (a444d2610a ): https://github.com/PX4/PX4-SITL_gazebo/commit/ca6c738fff30c516a5d2b9866ad268826a9ff0ff
- sitl_gazebo current upstream: https://github.com/PX4/PX4-SITL_gazebo/commit/054e0a1be67b715ca1802397082e7814a1427f52
- Changes: https://github.com/PX4/PX4-SITL_gazebo/compare/ca6c738fff30c516a5d2b9866ad268826a9ff0ff...054e0a1be67b715ca1802397082e7814a1427f52
054e0a1 2021-01-01 pjdewitte - Jinja generation: add protection against accidental overwriting (#682 )
869225e 2020-12-31 JaeyoungLim - Fix lightsource for high fidelity worlds (#680 )
2021-01-01 21:57:05 +01:00
Lorenz Meier
0bdae5745a
Update dsm.cpp
...
Fix documentation comment (reported by @Roman-, thanks!)
2021-01-01 15:30:25 +01:00
Lorenz Meier
9409122638
RC tests: Add new test file
...
This file is using a PX4IO-bound receiver on a DX9
2021-01-01 14:26:36 +01:00
Lorenz Meier
8d6239f11f
PX4IO: Use DSM frame drops
...
These will now be reported the same as on SBUS.
2021-01-01 14:26:36 +01:00
Lorenz Meier
47fcf97442
DSM: Report frame drops
...
Frame drops were measured but not reported on PX4IO.
2021-01-01 14:26:36 +01:00
Lorenz Meier
00e6d11dfa
PX Uploader: Disable windowed mode
...
The windowed mode has been added for Windows targets originally. It gets very often incorrectly detected and slows down flashing considerably. This even applies to serial links. We are disabling it now in most circumstances.
2021-01-01 14:26:36 +01:00
Daniel Agar
95dd2f7e8d
rc/dsm: remove system field check, add new validity checks
...
- unfortunately we can't depend on the system field due to potential
external binding and non-genuine Spektrum equipment
- reject any DSM frame with duplicate channels
- add 16 channel mask
- tighten valid PWM range 990-2010us (±100% travel is 1102-1898µs)
- update RCTest rejected frame count
2021-01-01 14:26:36 +01:00
Daniel Agar
d7b89ecc86
boards: px4/fmu-v5 disable px4io in rc.board_defaults
...
- avoid keeping this kind of logic in the common rcS
2021-01-01 14:12:26 +01:00
Lorenz Meier
a444d2610a
Spektrum passive power: Only use if present
2020-12-31 13:22:52 +01:00
Lorenz Meier
641cc33d79
RC input: Always report DSM state
2020-12-31 13:22:52 +01:00
Lorenz Meier
e85afb22a5
FMUv5: Default Spektrum power to passive
2020-12-31 13:22:52 +01:00
Lorenz Meier
cc34d4601d
FMUv5: Support passive power controls
...
This ensures that FMU-side power controls are not interfering with IO-side power controls of DSM receivers if they happen to be OR-ed in the schematics
2020-12-31 13:22:52 +01:00
Lorenz Meier
6529e1444f
RC input: Better monitoring
...
The output is now less confusing in terms of which protocol is currently active.
2020-12-31 13:22:52 +01:00
Lorenz Meier
af28a298e5
DSM driver: Add option for passive power controls
2020-12-31 13:22:52 +01:00
Lorenz Meier
4237c8be25
Commander: Do not acknowledge binding
...
This is now done in the respective modules directly and based on implementation and execution state.
2020-12-31 13:22:52 +01:00
Lorenz Meier
2d1551e5bf
PX4IO: Acknowledge binding
2020-12-31 13:22:52 +01:00
Lorenz Meier
8445a08bff
RC input: Acknowledge binding (or indicate that feature is not implemented)
2020-12-31 13:22:52 +01:00
Lorenz Meier
44bdd5456f
PX4IO: Bind if not armed
...
DSM binding was disabled before if safety was off, which on a lot of multicopters is today the default. The logic is now checking instead for wether the system is armed.
2020-12-31 13:22:52 +01:00
Lorenz Meier
a34e57a4cc
Simulator: Increase stack, publication affinity
...
This commit increases the send thread stack size and changes the thread affinity of the lockstep clocking topic. It also improves verbosity in case error states occur.
2020-12-31 01:05:30 +01:00
Lorenz Meier
fda63f802e
Tone alarm: Adjust log levels
...
The earlier log levels represented normal operation scenarios as errors, this aligns the log levels.
2020-12-31 01:05:30 +01:00
Lorenz Meier
3cc53f551d
MAVSDK tests: Use full system timeout off
...
Depending on loop iterations for timeouts is not accurate, as usleep behavior depends on the system load and asking for a 0 ms sleep can potentially return immediately.
2020-12-31 01:05:30 +01:00
Lorenz Meier
e27d80abc4
Camera feedback: Indicate success
...
If the feedback module is loaded then we want to provide capture feedback.
2020-12-30 23:36:47 +01:00
Daniel Agar
404f74f996
boards: mro/pixracerpro add flight_mode_manager
2020-12-30 10:25:08 -05:00
RomanBapst
fe2e299046
FlightModeManager: small rebase change
...
Signed-off-by: RomanBapst <bapstroman@gmail.com >
2020-12-30 10:25:08 -05:00
Matthias Grob
e92795b474
Temporary logging addition to debug CI
2020-12-30 10:25:08 -05:00
Matthias Grob
fafbb687d8
FlightModeManager: fix integral reset on ground
...
This information could also be used for yaw and integral
resets of the lower level controllers.
2020-12-30 10:25:08 -05:00
Matthias Grob
7de288877a
MulticoperPositionControl: 3rd pass get rid of zombie members
2020-12-30 10:25:08 -05:00
Matthias Grob
62ada2e2dc
FlightModeManager: restore weathervane calls
...
I had to do an extra subscription to the vehicle attitude.
I don't know how to test this.
2020-12-30 10:25:08 -05:00
Matthias Grob
aa888223f0
FlightModeManager: fix takeoff state in stabilized mode
2020-12-30 10:25:08 -05:00
Matthias Grob
8edb06e94f
FlightModeManager: make sure emergency failsafe works
2020-12-30 10:25:08 -05:00
Matthias Grob
8329208b84
FlightModeManager: fix takeoff ramp from zero
2020-12-30 10:25:08 -05:00
Matthias Grob
88c274b3cd
MulticopterPositionControl: 2nd pass to move to FlightModeManager
2020-12-30 10:25:08 -05:00
Matthias Grob
f52bad87e2
mc_pos_control: separate out flight_tasks (into FlightModeManager)
2020-12-30 10:25:08 -05:00
Matthias Grob
7545249215
Add flight_mode_manager to all targets with mc_pos_control
2020-12-30 10:25:08 -05:00
Matthias Grob
fa7170bc4f
Add FlightModeManager
...
to separate out setpoint generation from controllers
2020-12-30 10:25:08 -05:00
Daniel Agar
49d4cc7d5b
commander: CMD_NAV_LAND/CMD_NAV_PRECLAND reply RESULT_ACCEPTED unless transition is denied
2020-12-30 12:05:41 +01:00
Benjamin Linne
80068093d6
add esc_battery module to modalai/fc-v1 build
2020-12-29 23:41:22 -05:00
Daniel Agar
91f5f26618
commander: main_state_transition call trivial style fixes
2020-12-30 00:26:14 +01:00
Daniel Agar
4f62355dec
msg: new estimator_status_flags message for more accessible ekf2 status logging
...
- log all estimator (ekf2) flags as separate booleans in a new dedicated low rate message (only publishes at 1 Hz or immediately on any change)
- this is a bit verbose, but it avoids the duplicate bit definitions we currently have across PX4 msgs, ecl analysis script, flight review, and many other custom tools and it's much easier for casual log review in FlightPlot, PlotJuggler, csv, etc
- for compatibility I've left estimator_status filter_fault_flags, innovation_check_flags, and solution_status_flags in place, but they can gradually be removed as tooling is updated
Co-authored-by: Mathieu Bresciani <brescianimathieu@gmail.com >
2020-12-29 11:27:21 -05:00
Lorenz Meier
ddc1f964d2
Mac OS CI: Harden against intermittent install failures
2020-12-28 23:43:57 +01:00
Lorenz Meier
565da15f2f
MAVSDK test: Increase timeout
2020-12-28 22:04:08 +01:00
Lorenz Meier
7510e6ba0a
FMUv2: Exclude rarely used configurations
2020-12-28 21:02:03 +01:00
Lorenz Meier
53711926ab
FMUv2: Exclude specialized fixed wing configs
...
The FMUv2 users can default back to generic configs for those.
2020-12-28 21:02:03 +01:00
Lorenz Meier
aa28c3bd3c
VTOL airframes: Exclude FMUv2
...
This excludes FMUv2 targets, since VTOL is already disabled on FMUv2.
2020-12-28 21:02:03 +01:00
Lorenz Meier
3d809134f5
Updating SITL gazebo (Mac OS fixes)
2020-12-28 20:41:48 +01:00
Daniel Agar
adb98d5702
mavlink: move HIL_ACTUATOR_CONTROLS to separate streams header
2020-12-28 11:09:46 +01:00
Daniel Agar
3b20310e9c
mavlink: move POSITION_TARGET_GLOBAL_INT to separate streams header
2020-12-28 11:09:46 +01:00
Daniel Agar
672a1c90aa
mavlink: move POSITION_TARGET_LOCAL_NED to separate streams header
...
- position type_mask
2020-12-28 11:09:46 +01:00
Daniel Agar
6b1d02feb7
mavlink: move RC_CHANNELS to separate streams header
2020-12-28 11:09:46 +01:00
Daniel Agar
48be6962d1
mavlink: move MANUAL_CONTROL to separate streams header
2020-12-28 11:09:46 +01:00
Daniel Agar
629d03b684
mavlink: move TRAJECTORY_REPRESENTATION_WAYPOINTS to separate streams header
2020-12-28 11:09:46 +01:00
Daniel Agar
5762c3b356
mavlink: move NAV_CONTROLLER_OUTPUT to separate streams header
2020-12-28 11:09:46 +01:00
Daniel Agar
9f57df75e8
remove rotation 41 (ROLL_270_YAW_180)
...
- duplicate of 31 (ROLL_90_PITCH_180)
2020-12-28 11:07:08 +01:00
Daniel Agar
a66cb0cbaf
mavlink: check TX buffer before processing command ack
2020-12-28 11:05:42 +01:00
bazooka joe
8d5813994f
format smart battery serial number as string on mavlink
...
according to change on mavlink protocol message
formatted as 'dd/mm/yy-123456'
2020-12-28 11:04:54 +01:00
Daniel Agar
ceadcd74d0
mavlink: CAMERA_TRIGGER stream check free tx buf before send
2020-12-28 11:03:53 +01:00
Daniel Agar
ae706537b8
mavlink: CAMERA_IMAGE_CAPTURED stream check free tx buf before send
2020-12-28 11:03:53 +01:00
Daniel Agar
27b631e827
mavlink: ADSB_VEHICLE stream check free tx buf before send
2020-12-28 11:03:53 +01:00
Daniel Agar
0d72b47571
mavlink: COLLISION stream check free tx buf before send
2020-12-28 11:03:53 +01:00
Daniel Agar
dcb897307d
mavlink: HEARTBEAT stream check free tx buf before send
2020-12-28 11:03:53 +01:00
Nicolas MARTIN
e06d218ff2
commander: disable arm_auth request for prearm status continuous publication
2020-12-27 16:23:05 -05:00
Daniel Agar
02a08c42b7
tests: perf don't bother printing all perf counters
2020-12-27 15:29:45 -05:00
Daniel Agar
12bf035642
uORB: tests limit latency to only orb_test_medium and remove some unnecessary output
2020-12-27 15:29:45 -05:00
Daniel Agar
409ea2ac02
mavlink: parameters manually mark active minimal QGC set on first send
2020-12-27 13:54:03 -05:00
Lorenz Meier
4b0d8efbc1
Commander: move static overload_start to class
2020-12-27 13:44:32 -05:00
Jaeyoung-Lim
4f30037980
Add yosemite world as SITL target for gazebo
...
This commit adds yosemite world as a SITL target for gazebo
2020-12-27 12:53:25 -05:00
Daniel Agar
092060cde2
posix: improve error out for mlockall() and pthread_create
...
- add strerror
- mlockall skipped in lockstep builds (ENABLE_LOCKSTEP_SCHEDULER)
2020-12-27 12:43:32 -05:00
Daniel Agar
48da0055a1
boards: add initial mRo Pixracer Pro (M10064C) support
2020-12-27 12:12:15 -05:00
PX4 BuildBot
aa54db42ed
Update submodule ecl to latest Sat Dec 26 12:39:53 UTC 2020
...
- ecl in PX4/Firmware (6a278fb230365aaf369956878ee08c3161ae739d): https://github/commit/df7f261e038aa80b07a91857f2f952280938bfc6
- ecl current upstream: https://github/commit/18f334f4dbca61e3bcd1743c22cf820b5a8ff7ef
- Changes: https://github/compare/df7f261e038aa80b07a91857f2f952280938bfc6...18f334f4dbca61e3bcd1743c22cf820b5a8ff7ef
18f334f 2020-12-25 Mathieu Bresciani - flow: add unit test for yaw motion (#950 )
2020-12-26 14:39:47 -05:00
Dan George
051bcf75b3
Fix PX4_CMAKE_BUILD_TYPE=Debug configuration
...
Set CMAKE_RUNTIME_OUTPUT_DIR_DEBUG & _RELEASE to match
CMAKE_RUNTIME_OUTPUT_DIR as is already done in top level CMakeLists.txt.
Fixes Issue 16445 - px4-alias.sh: not found
Co-authored-by: Dan George <dgeorge@anduril.com >
2020-12-24 19:02:07 -05:00
Daniel Agar
92afe45f7f
vtol_att_control: improve readability of fill_actuator_outputs()
...
- vtol standard pass through landing gear for MC and flaps for FW
2020-12-24 09:29:17 -05:00
Silvan Fuhrer
9849ff4a9c
Standard VTOL: set idle PWM during backtransition
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2020-12-24 09:25:08 +01:00
Silvan Fuhrer
7e01938341
VTOL: rename class variable flag_idle_mc to _flag_idle_mc
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2020-12-24 09:25:08 +01:00
Ramón Hernán Roche Quintana
5c93403db7
Tools: Python >3.7 requires the wheel packge
...
currently installing pymavlink witouth the wheel package results in an
error when using Python 3.7 or later
https://github.com/ArduPilot/pymavlink/issues/486
2020-12-23 23:56:05 -05:00
Lorenz Meier
70c372329c
MAVLink FTP: Update implementation according to updates specs
...
The MAVLink specs for CreateFile in MAVLink FTP were updated on Dec 23, 2020 (today) with a behavior change to truncate a file if it already existed, following the UNIX standard behavior: https://pubs.opengroup.org/onlinepubs/9699919799/functions/creat.html . This change is tracking that spec change. While it is a functional change, the limited usage of the FTP protocol and the fact that implementations should not rely on error states to determine wether to truncate a file or not makes this a viable change.
2020-12-23 13:45:01 +01:00
PX4 BuildBot
7861377e20
Update submodule devices to latest Tue Dec 22 00:39:39 UTC 2020
...
- devices in PX4/Firmware (68b6cca3bc4cd3c70ab1ea5c439e5941370e801e): https://github/commit/86b09d332041acebc35c9a0476d8dfc2752dfe39
- devices current upstream: https://github/commit/9282d3d73391859f51c759a343a052dfb1be02e0
- Changes: https://github/compare/86b09d332041acebc35c9a0476d8dfc2752dfe39...9282d3d73391859f51c759a343a052dfb1be02e0
9282d3d 2020-12-21 Silvan Fuhrer - ubx: change uart2_baudrate to 230400
2020-12-22 07:43:50 +01:00
Silvan Fuhrer
a88b7fc517
ROMFS: Tiltrotor SITL: improve tuning and remove unnecessary params from config
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2020-12-20 21:25:50 -05:00
PX4 BuildBot
3ff7cd94dd
Update submodule ecl to latest Mon Dec 21 00:39:54 UTC 2020
...
- ecl in PX4/Firmware (caa35af3961aa96e2549a36f1fddb1a10ee802b2): https://github/commit/a8e0e82858318042500f96f5ee882c638f201426
- ecl current upstream: https://github/commit/df7f261e038aa80b07a91857f2f952280938bfc6
- Changes: https://github/compare/a8e0e82858318042500f96f5ee882c638f201426...df7f261e038aa80b07a91857f2f952280938bfc6
df7f261 2020-12-20 Kamil Ritz - Add missing const modifier
2020-12-20 21:24:52 -05:00
PX4 BuildBot
ec79361548
Update submodule sitl_gazebo to latest Mon Dec 21 00:39:43 UTC 2020
...
- sitl_gazebo in PX4/Firmware (5868463d06 ): https://github.com/PX4/PX4-SITL_gazebo/commit/563f0876a52d5c0fba1b7cd1aa420c613ec7025b
- sitl_gazebo current upstream: https://github.com/PX4/PX4-SITL_gazebo/commit/4043287bbe07a9d091d579b755796e70d45058e8
- Changes: https://github.com/PX4/PX4-SITL_gazebo/compare/563f0876a52d5c0fba1b7cd1aa420c613ec7025b...4043287bbe07a9d091d579b755796e70d45058e8
4043287 2020-12-20 Silvan Fuhrer - tiltrotor: increase wing area to 0.5 per side (#678 )
f004811 2020-12-20 JaeyoungLim - Update mavsdk version for SITL tests (#673 )
2020-12-20 21:23:34 -05:00
PX4 BuildBot
5868463d06
Update submodule matrix to latest Fri Dec 18 12:38:33 UTC 2020
...
- matrix in PX4/Firmware (a505e82391bdb9d81c03d45919f2158cee6baa8c): https://github/commit/ea43303c1cd55b0da8e152373b49dd2d5e381772
- matrix current upstream: https://github/commit/15e54ceda176f05e1ae38e71692d15cafb9e3a62
- Changes: https://github/compare/ea43303c1cd55b0da8e152373b49dd2d5e381772...15e54ceda176f05e1ae38e71692d15cafb9e3a62
15e54ce 2020-11-04 Julian Kent - Rework rank-detection tolerance in pseudoinverse
d9a5e3d 2020-11-04 Julian Kent - Add test for new cutoff threshold
2020-12-18 10:15:20 -05:00
JaeyoungLim
39c585ac97
Enable SITL tests for macos ( #16329 )
...
This commit enables SITL testing on macOS
2020-12-18 20:31:51 +09:00
jaeyoung
c8d18c2719
Fix tiltrotor model for sitl_gazebo
2020-12-18 12:27:07 +01:00
bresch
c253badba4
HTE: remove dist_bottom validity check
...
Without range finder, the validity flag goes to false quite quickly and
if can be that a vehicle never starts HTE is the takeoff is too slow.
In this specific context of takeoff detection, since
the exact value is not important, we can safely ignore the validity flag.
2020-12-18 12:05:22 +01:00
bresch
690c1158ad
HTE: do not update the estimator during fast up/down motions
...
Drag and prop wash effects produce significant forces at high speed
that can bias the estimator when applied for an extended period of time
2020-12-18 12:05:22 +01:00
bresch
39251daf28
HTE: pull status from class instead of returning struct
2020-12-18 12:05:22 +01:00
bresch
652cc4350e
HTE: empty braces initialization of struct
2020-12-18 12:05:22 +01:00
bresch
d532bc9555
HTE: only run in air
...
the _landed flag only is not enough to tell if the drone is still touching
the ground, so an additional check based on the altitude AGL is required.
to have this in_air detection correctly updated, the module needs to be
scheduled on the vehicle_local_position message as no setpoint is
produced in non-assisted modes.
2020-12-18 12:05:22 +01:00
Daniel Agar
c05c213042
mavlink: ALTITUDE stream initialize local_pos
2020-12-18 08:32:04 +01:00
PX4 BuildBot
66b3562080
Update submodule ecl to latest Fri Dec 18 00:39:53 UTC 2020
...
- ecl in PX4/Firmware (dc358857c877ae01b922d84a6c6fffe6d8c46810): https://github/commit/1541e4b414fe63ec9d6c3077375db7e20c20ef4a
- ecl current upstream: https://github/commit/a8e0e82858318042500f96f5ee882c638f201426
- Changes: https://github/compare/1541e4b414fe63ec9d6c3077375db7e20c20ef4a...a8e0e82858318042500f96f5ee882c638f201426
a8e0e82 2020-12-08 Daniel Agar - EKF: update mag LPF immediately
398fe15 2020-11-02 Daniel Agar - EKF: allow initialising without mag depending on configuration
1237087 2020-12-16 Daniel Agar - AlphaFilter add constructor that takes alpha and use in EKF
37e84b7 2020-12-16 Daniel Agar - README: fix zenodo badge (rename ecl -> PX4-ECL)
5ccb8b4 2020-12-15 Mathieu Bresciani - fakePosFusion: reset _last_known_posNE to current state when starting (#943 )
9d22f14 2020-12-10 bresch - gps_alt: constrain var using 1.5 as a typical ratio of vacc/hacc
b0cf45e 2020-12-10 bresch - gps_alt: rename getGpsAltVar -> getGpsHeightVariance
62f2e26 2020-12-10 bresch - gps_alt: reset GPS alt variance usign helper function
f7bddda 2020-12-10 bresch - gps_alt: do not scale up reported gps vertical accuracy
02369cd 2020-12-10 bresch - gps_alt: extract measurement variance computation and saturation
2020-12-17 20:13:03 -05:00
PX4 BuildBot
e5a00033f5
Update submodule matrix to latest Thu Dec 17 23:05:20 UTC 2020
...
- matrix in PX4/Firmware (788e6b9ad163f314ddd53a23f3705ca0018519f4): https://github/commit/a504b6e88152d88dba936bc74e449f2f281b84e2
- matrix current upstream: https://github/commit/ea43303c1cd55b0da8e152373b49dd2d5e381772
- Changes: https://github/compare/a504b6e88152d88dba936bc74e449f2f281b84e2...ea43303c1cd55b0da8e152373b49dd2d5e381772
ea43303 2020-12-16 JacobCrabill - test/vector3: Add test for scalar +/- operators
158409a 2020-03-23 JacobCrabill - Vector3f: Add operator+/- for scalars
2020-12-17 19:05:46 -05:00
PX4 BuildBot
2a187a76d6
Update submodule sitl_gazebo to latest Thu Dec 17 23:05:03 UTC 2020
...
- sitl_gazebo in PX4/Firmware (90f61c2f9a ): https://github.com/PX4/PX4-SITL_gazebo/commit/19981d61cfe656d2985fef5285b4a4d14f3be199
- sitl_gazebo current upstream: https://github.com/PX4/PX4-SITL_gazebo/commit/563f0876a52d5c0fba1b7cd1aa420c613ec7025b
- Changes: https://github.com/PX4/PX4-SITL_gazebo/compare/19981d61cfe656d2985fef5285b4a4d14f3be199...563f0876a52d5c0fba1b7cd1aa420c613ec7025b
563f087 2020-12-17 JaeyoungLim - Fix tiltrotor model (#675 )
0e2d63a 2020-12-17 JaeyoungLim - Fix wind transmormations for motor model (#674 )
e5d0d65 2020-12-13 JaeyoungLim - Update container versions for tests (#672 )
bccb487 2020-12-12 BazookaJoe1900 - mavlink_interface: rename serial link related function to include 'serial' (#670 )
2020-12-17 18:45:08 -05:00
Ramón Hernán Roche Quintana
90f61c2f9a
Update submodule GPSDrivers to latest Wed Dec 16 18:45:08 UTC 2020
...
ubx: fix #63 : NAV-SAT/ SVINFO parser bug https://github.com/PX4/PX4-GPSDrivers/commit/86b09d332041acebc35c9a0476d8dfc2752dfe39
2020-12-17 08:28:25 +01:00
Daniel Agar
74083d6bd1
optical_flow/paw3902: minor improvements
...
- verify register writes
- cleanly reset on lighting mode changes as per the datasheet
- perf counters for mode switches and other errors
- cleanly reset on false motion detection
- minimize sleep on reset
- allowing setting custom rotation yaw angle directly on command line with -Y (ignoring SENS_FLOW_ROT)
- enable LED output
2020-12-16 20:04:46 -05:00
Daniel Agar
43b4cf39bd
sitl_gazebo build single threaded
...
- building sitl_gazebo in parallel within a parallel PX4 build isn't load balanced
2020-12-16 19:45:08 -05:00
Daniel Agar
4d30f327f9
Github Actions: skip Mavros tiltrotor mission for now ( #16405 )
2020-12-16 17:34:32 +01:00
Daniel Agar
a152fb65cb
parameters: remove unnecessary duplicated shutdown lock in param_save_default()
...
- param_export already takes the shutdown lock
2020-12-16 10:50:05 -05:00
Daniel Agar
c7db0942ba
sensors: vehicle_imu don't round measured accel and gyro sample rates
2020-12-16 10:12:27 -05:00
Daniel Agar
bf5ee99952
sensors: acceleration always get accel rate from vehicle_imu_status
...
- sensor rate is used for control data low pass and notch filters
2020-12-16 10:12:27 -05:00
Daniel Agar
7038cb8518
sensors: angular_velocity always get gyro rate from vehicle_imu_status
...
- sensor rate is used for control data low pass and notch filters
2020-12-16 10:12:27 -05:00
Daniel Agar
336176b2f0
Mavlink FLIGHT_INFORMATION fix arming time (ms -> us) and add takeoff time
...
- fixes https://github.com/PX4/PX4-Autopilot/issues/16393
2020-12-16 09:38:05 -05:00
bresch
b23d8244f0
ekf2: fix dist bottom constraint
2020-12-16 09:33:38 -05:00
Hamish Willee
acc647c518
remove duplicate this in COM_HLDL_LOSS_T
2020-12-16 08:37:42 +01:00
Hamish Willee
4bc60cca69
remove more occurrences
2020-12-16 08:37:42 +01:00
Hamish Willee
d58ee9400c
system_params - remove duplicate text in param
2020-12-16 08:37:42 +01:00
Daniel Agar
8e14e13369
README.md update PX4/Firmware -> PX4/PX4-Autopilot
2020-12-15 20:27:03 -05:00
Robin Lilja
aa244a098c
Clarification of coordinate systems for sensors_* and vehicle_* messages ( #16339 )
...
Changed all 'NED' references to 'FRD'. Also cleaned up mixing of m/s/s and m/s^2 to use the latter. Corrected m/s/s to Pascals. Plus minor typos. Also made some minor cosmetic clean ups.
Co-authored-by: Robin <robin@Robins-MacBook-Pro-Work.local >
Co-authored-by: Mathieu Bresciani <brescianimathieu@gmail.com >
2020-12-15 09:18:05 +01:00
Mathieu Bresciani
fdd1d6d244
Multicopter rounded turns ( #16376 )
...
* AutoLineSmoothVel: Implement l1-style guidance in turns
2020-12-14 13:04:01 +01:00
Julian Oes
9b065b4975
Update src/systemcmds/tests/test_dataman.c
...
Co-authored-by: Beat Küng <beat-kueng@gmx.net >
2020-12-14 09:26:18 +01:00
Julian Oes
5cb1bb7731
systemcmds: fix dataman test
2020-12-14 09:26:18 +01:00
Julian Oes
1719ff9892
simulator: fix after px4_task_spawn_cmd change
...
argv[0] now contains the task name, so everything moves by one.
2020-12-14 09:26:18 +01:00
Julian Oes
dba3c642d2
posix: set task name as argv[0] to match Nuttx
...
This changes px4_task_spawn_cmd to match the NuttX task_spawn. It adds
the task name as argv[0]. See example below:
px4_task_spawn_cmd("task_name",
SCHED_DEFAULT,
SCHED_PRIORITY_DEFAULT,
1024,
(px4_main_t)&Something::start_helper,
(char *const *)argv);
with:
argv[0]: "something"
argv[1]: "start"
argv[2]: nullptr
becomes in Something::start_helper:
argv[0]: "task_name"
argv[1]: "something"
argv[2]: "start"
argv[3]: nullptr
2020-12-14 09:26:18 +01:00
Julian Oes
862fd1d450
module: remove NuttX only quirk
...
The behaviour on NuttX and Posix should now be the same anyway.
2020-12-14 09:26:18 +01:00
Julian Oes
314b5e721f
src: remove NuttX ifdefs around args
...
It doesn't look like they are required anymore.
2020-12-14 09:26:18 +01:00
Julian Oes
5be2066e1a
posix: small cleanup
2020-12-14 09:26:18 +01:00