Daniel Agar
a37a589f15
WIP: afbrs50 try SPI_LOCK
2021-07-01 10:59:51 -04:00
Daniel Agar
0aa14deb5d
drivers/distance_sensor/broadcom/afbrs50: minimize IRQ_LOCK()/IRQ_UNLOCK() calls
2021-07-01 10:47:53 -04:00
Matthias Grob
62546350f1
battery: use local instead of global member battery_status message
2021-07-01 14:24:38 +02:00
Matthias Grob
fa976f84b1
battery: clear interface for determineWarning()
2021-07-01 14:24:38 +02:00
Matthias Grob
f41c294028
BatterySimulator: No need to explicitly mention throttle being set to zero
2021-07-01 14:24:38 +02:00
Matthias Grob
b824f33ae9
battery: publish measured values also when battery not connected
2021-07-01 14:24:38 +02:00
Matthias Grob
a99ddd0845
battery: don't reset on every loop iteration
2021-07-01 14:24:38 +02:00
Matthias Grob
8d74e52bb7
battery: omit separate publish() function
2021-07-01 14:24:38 +02:00
Matthias Grob
9c0c85c9e2
battery_status: naming consistency current_filtered_a -> current_average_a
2021-07-01 14:24:38 +02:00
Matthias Grob
41cc73e555
battery: simplify battery_initialized condition
2021-07-01 14:24:38 +02:00
Matthias Grob
a51d47f8e8
battery: connected check outside of determineWarning()
2021-07-01 14:24:38 +02:00
Jaeyoung-Lim
e45b862f1d
Specify orientaiton of ADIS16448 IMU from rc.sensors
...
Specify orientaiton of ADIS16448 IMU for from the rc.sensors
WIP: Currently only handling one orientation
2021-06-30 09:34:12 -04:00
Daniel Agar
d87cd171f4
sensors/vehicle_imu: continue integrating gyro if there's a gap in data
...
- minor improvement that helps to determine the sensor publication rate
as soon as possible
2021-06-30 09:13:49 -04:00
Daniel Agar
7ddcb7fe3c
adis16470: disable debug
2021-06-30 01:01:07 -04:00
Daniel Agar
982692f5ed
ekf2: selector handle NAN test ratios as uninitilaized
...
- requires https://github.com/PX4/PX4-ECL/pull/1020
2021-06-29 21:36:24 -04:00
Daniel Agar
f08a22934e
boards: px4_fmu-v4_test remove deleted drivers/tap_esc
2021-06-29 21:27:29 -04:00
Daniel Agar
f0d8d53da6
sensors/vehicle_imu: minor IMU integration improvements
...
- IMU integrator set max dt based on final return size (uint16)
- improve integration consuming gyro as needed then integrate all available accel until caught up
- increase required number of samples for sensor rate measurement (online Welford mean)
2021-06-29 10:43:09 -04:00
Daniel Agar
3fcd323f6a
drivers/imu/invensense: store offset registers on configure, trigger reset on any change
...
- this can catch subtle failures that occur after self hours of continuous operation on some units
2021-06-29 10:33:03 -04:00
alexklimaj
9d3e18dbe1
ARK Flow rev 2 add icm42688p
2021-06-25 09:44:45 -04:00
TSC21
a67e66000e
protocol_splitter: including magic number on XOR for checksum
2021-06-25 13:05:24 +02:00
TSC21
4741ec25ce
microRTPS: increase base message ID space to 179
2021-06-25 13:05:24 +02:00
Matthias Grob
5ac5399d83
Remove horizontal slow down close to ground
...
Because based on the numerous complaints it was disabled by default
(only velocities above 10m/s were limited)
and since then no one intentionally used it anymore. But
there were some minor investigations of drones not reaching
their maximum speed which always showed 10m/s.
2021-06-25 11:15:41 +02:00
Matthias Grob
055c9db178
state_machine_helper: allow takeoff and hold without any link
2021-06-25 10:46:43 +02:00
Matthias Grob
15096ead5f
state_machine_helper: explicitly notify about rca and data link loss
2021-06-25 10:46:43 +02:00
Matthias Grob
bec9eef5b0
state_machine_helper: react on link losses during takeoff
...
The same way like in loiter. This should be further unified in the code
but at least we can increase safety in the case the takeoff altitude is
very high and the vehicle never reaches it but looses links.
2021-06-25 10:46:43 +02:00
Matthias Grob
11556d4e9a
Commander: allow disabling RC loss failsafe for mission, hold, offboard independently
2021-06-25 10:46:43 +02:00
Matthias Grob
933d31b476
commander_params: correct parameter group from Mission to Commander
2021-06-25 10:46:43 +02:00
Matthias Grob
6ee8f7be0f
Commander: switch to static_cast<> for set_nav_state parameters
2021-06-25 10:46:43 +02:00
Jukka Laitinen
d83033f449
Take the crypto_backend library into use in bootloader for signature verification
...
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae >
2021-06-25 08:35:58 +02:00
Jukka Laitinen
0d4f481035
Add simple SW implementations for crypto_backend and keystore_backend
...
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae >
2021-06-25 08:35:58 +02:00
Jukka Laitinen
d068ae48d6
Add header file for arhitecture/implementation specific px4 crypto and
...
configuration for cmake
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae >
2021-06-25 08:35:58 +02:00
Jukka Laitinen
b3e9904df0
Add monocypher crypto library in src/lib/crypto/monocypher
...
This simple crypto library is used as an example default backend for the crypto
interfaces
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae >
2021-06-25 08:35:58 +02:00
Jukka Laitinen
09e62f96b2
Put all the test key material into same directory
...
Move Tools/test_key.json and key0.pub into same directory.
key0.pub is just a hex-dump of the public key part from the test_key.json,
for easy inclusion into bootloader monocypher sw crypto
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae >
2021-06-25 08:35:58 +02:00
Jukka Laitinen
caed8e4b05
Fix cryptotools.py signature alignment
...
If the signature start address is already aligned, the tool erroneously adds 4 filling bytes
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae >
2021-06-25 08:35:58 +02:00
Roman Dvořák
ab0e3b6001
icm20948_i2c_passthrough: allow to configure i2c address
2021-06-25 07:50:31 +02:00
Beat Küng
d79229f958
mavlink_shell.py: allow scripted use
...
E.g. echo free|./Tools/mavlink_shell.py
Or creating a virtual nsh console:
socat pty,rawer,link=/tmp/fmu_nsh_pts exec:"mavlink_shell.py 0.0.0.0\\:14550,pty,rawer"
2021-06-24 15:18:06 +02:00
Sander Swart
aa60d76963
camera trigger: don't keep triggering while enabled but paused
2021-06-24 06:56:58 +02:00
achim
6b356068cb
boards: mro_x21-777 board.h fix SPI 2 SCK pin
...
- SPI 2 had the wrong SCK PIN -> PB10 instead of PB13 -> accidentally the kill pin
could be probably wrong on other mro boards
2021-06-23 15:00:20 -04:00
Mathieu Bresciani
9cedb169fc
HTE: relax validity condition when already valid ( #17783 )
...
The condition to get valid requires a low variance and test ratio. but
to stay valid, only the variance is required.
Co-authored-by: Daniel Agar <daniel@agar.ca >
2021-06-23 07:33:11 +02:00
Hamish Willee
74cc1d901d
Thoneflow - fix up links to docs
2021-06-22 13:43:53 -04:00
Matthias Grob
0dee7af81f
ekf2_params: enable baro ground effect compensation by default
2021-06-22 10:32:54 +02:00
Thomas
a264541861
explicitly set param2 to 0 in existing *DO_VTOL_TRANSITION commands. add a guard against NaNs.
2021-06-21 22:39:54 +02:00
TSC21
0c5f2d3b8c
microRTPS: add missing header for PRIu32 and PRIu16 macros
...
Co-authored-by: squizz617 <seulbae@gatech.edu >
2021-06-21 16:36:44 +02:00
TSC21
9fb53d4276
microRTPS: add option to build the microRTPS agent after its generation
2021-06-21 16:36:44 +02:00
TSC21
084a992572
microRTPS: agent: only allow to whitelist the localhost when using FastDDS as the rmw
2021-06-21 16:36:44 +02:00
TSC21
79f7986715
apply ROS2 default memory management and publish mode QoS policies; make sure that SharedMemory is only used with FastDDS as the rmw
2021-06-21 16:36:44 +02:00
Igor Mišić
39909128ec
micrortps_client: increased stack size by 250B
...
Co-authored-by: Nuno Marques <n.marques21@hotmail.com >
2021-06-21 16:36:44 +02:00
TSC21
d3a23cee40
microRTPS: agent: fix double free memory problem on SIGINT
...
It fixes also some minor issues when exiting the agent, including the printed stats
2021-06-21 16:36:44 +02:00
TSC21
6d5f12d2a2
microRTPS: client: add TX rate limiter
2021-06-21 16:36:44 +02:00
TSC21
ac2b38603c
microRTPS: client: add missing "-p" option for the UART poll timeout and use microsecs for the send/rcv thread sleeps
2021-06-21 16:36:44 +02:00
TSC21
0cc79f3e48
microRTPS: client: show diagnostic of current bandwidth usage on the 'status' option
2021-06-21 16:36:44 +02:00
TSC21
d6ee15596d
microRTPS: client: show diagnostic of average bandwidth usage on the 'status' option
2021-06-21 16:36:44 +02:00
TSC21
40462bfc1f
microRTPS: client: reduce name set by pthread_setname_np since Linux requires names (with NUL) to fit in 16 chars, otherwise returns ERANGE (34)
2021-06-21 16:36:44 +02:00
TSC21
145e7387fb
posix: start the microRTPS client in sim every time the module is available
2021-06-21 16:36:44 +02:00
TSC21
773d81f208
microRTPS: client: fix send per allocated topic
2021-06-21 16:36:44 +02:00
TSC21
f2fad6d966
microRTPS: by default, when FastDDS >= 2.0, enable Shared Memory transport for the agent participants when the localhost network is enabled
2021-06-21 16:36:44 +02:00
TSC21
320b414511
microRTPS: client: match the code style from the PX4 Firmware
2021-06-21 16:36:44 +02:00
TSC21
63571b3e3f
microRTPS: agent: match the code style from the PX4 Firmware
2021-06-21 16:36:44 +02:00
TSC21
323ce797f8
microRTPS: allow communications only in the localhost network when ROS_LOCALHOST_ONLY env variable is set
2021-06-21 16:36:44 +02:00
TSC21
578e426e9e
microRTPS: set trajectory_waypoint to be sent only, as this is outgoing data with vehicle_trajectory_waypoint_desired
2021-06-21 16:36:44 +02:00
Pieter-Jan Dewitte
155d3c7d36
FW pos control: fix airspeed input constaining
2021-06-21 10:55:21 +02:00
Claudio Micheli
b1829e5766
Predict and use braking distance when Pausing auto modes (for multicopters) ( #17269 )
2021-06-18 10:45:03 +02:00
Daniel Agar
76a8617529
sensors: fix IMU init race condition
...
- IMU init requires valid published data (device ids, etc)
- orb_group_count will include advertised instances before data is published, so this can't be used to throttle IMU init attempts
2021-06-17 10:38:33 -04:00
Peter van der Perk
b2742658b7
UAVCANv1 port unset fixes and deinitialization
2021-06-17 10:02:17 -04:00
Beat Küng
1c3f30be01
protocol_splitter: tcflush() uart before closing it
2021-06-17 09:40:57 -04:00
Beat Küng
14ec7a0d93
mavlink: tcflush() uart before closing it
...
On NuttX with flow control, if no one was reading from the uart, the
close() call would block indefinitely waiting for data to be sent.
2021-06-17 09:40:57 -04:00
honglang
074ed24d02
nora:fixed syntax error
2021-06-17 09:37:04 -04:00
Daniel Agar
500c45e798
uORB: Subscription check if uORB::Manager instance is valid
...
- this is necessary if uORB::Subscription is used with static storage
duration
2021-06-17 08:07:24 +02:00
David Sidrane
a728431e43
spracing_h7extreme:Track NuttX assert changes
2021-06-16 17:07:47 +02:00
David Sidrane
b399b8d5ea
protocol_splitter:Track NuttX assert changes
2021-06-16 17:07:47 +02:00
David Sidrane
61f80c087a
px4io:Fix Type
2021-06-16 17:07:47 +02:00
David Sidrane
18960f0b82
RoboClaw:Fix Types
2021-06-16 17:07:47 +02:00
David Sidrane
9377b02c58
Track NuttX Timer changes
2021-06-16 17:07:47 +02:00
David Sidrane
05bdef867d
Track NuttX syslog change
2021-06-16 17:07:47 +02:00
David Sidrane
028ae9561d
logger:watchdog Track NuttX file reorg
2021-06-16 17:07:47 +02:00
David Sidrane
eea1477e80
FakeImu:Use inttypes
2021-06-16 17:07:47 +02:00
David Sidrane
37d93320eb
uavcan_v1:Uavcan: Use inttypes
2021-06-16 17:07:47 +02:00
David Sidrane
026d36dee8
microRTPS:Use inttypes
2021-06-16 17:07:47 +02:00
David Sidrane
fd68fd2933
tests:Use inttypes
2021-06-16 17:07:47 +02:00
David Sidrane
f3624c172c
kinetis pinirq:Use inttypes
2021-06-16 17:07:47 +02:00
David Sidrane
93c37e4e0c
syslink:Use inttypes
2021-06-16 17:07:47 +02:00
David Sidrane
8d078eb02e
vtol_att_control:Fix type
2021-06-16 17:07:47 +02:00
David Sidrane
bec5d6de9b
vmount:Use inttypes
2021-06-16 17:07:47 +02:00
David Sidrane
350e43f02c
dataman:fix types
2021-06-16 17:07:47 +02:00
David Sidrane
77082188d8
temperature_calibration:Use inttypes
2021-06-16 17:07:47 +02:00
David Sidrane
d73f842151
sensors:Use inttypes
2021-06-16 17:07:47 +02:00
David Sidrane
274c55a4ae
navigator:mission Use inttypes
2021-06-16 17:07:47 +02:00
David Sidrane
65d026d45c
mavlink:Use inttypes
2021-06-16 17:07:47 +02:00
David Sidrane
5faa116681
logger:Use inttypes
2021-06-16 17:07:47 +02:00
David Sidrane
3b725e5525
gyro_fft:Use inttypes
2021-06-16 17:07:47 +02:00
David Sidrane
07fbf8681d
gyro_calibration:Use inttypes
2021-06-16 17:07:47 +02:00
David Sidrane
85f4f13e8a
flight_mode_manager:Use inttypes
2021-06-16 17:07:47 +02:00
David Sidrane
9a423e222b
ekf2:Use inttypes and fix types
2021-06-16 17:07:47 +02:00
David Sidrane
ed474794cc
commander:Use inttypes
2021-06-16 17:07:47 +02:00
David Sidrane
a3593d7d07
analog_battery:Use inttytpes
2021-06-16 17:07:47 +02:00
David Sidrane
9c87766021
sensor_calibration:Use inttytpes
2021-06-16 17:07:47 +02:00
David Sidrane
4bc7f1f3f3
lib/perf:Use inttypes
2021-06-16 17:07:47 +02:00
David Sidrane
f50b238c78
lib/parameters:Use inttypes
2021-06-16 17:07:47 +02:00
David Sidrane
b4ebc68a40
lib/drivers/nuttx/ I2C SPI:Use inttypes
2021-06-16 17:07:47 +02:00
David Sidrane
ff2748ba53
PX4Gyroscope:Fix types
2021-06-16 17:07:47 +02:00
David Sidrane
42e51b0215
PX4Accelerometer:Fix types
2021-06-16 17:07:47 +02:00
David Sidrane
17502da493
lib/battery:Fix types
2021-06-16 17:07:47 +02:00
David Sidrane
42e4ea86b1
uavcannode_gps_demo:Use inttypes
2021-06-16 17:07:47 +02:00
David Sidrane
616401190c
UavcanNode:Use inttypes
2021-06-16 17:07:47 +02:00
David Sidrane
71f3a02c65
uavcan:use inttypes
2021-06-16 17:07:47 +02:00
David Sidrane
a07390a2d7
iridiumsbd:use inttypes
2021-06-16 17:07:47 +02:00
David Sidrane
2af9934f1c
pcf8583:Use inttypes
2021-06-16 17:07:47 +02:00
David Sidrane
4ecda97fc1
roboclaw:Fix types
2021-06-16 17:07:47 +02:00
David Sidrane
4aa7bff8c6
rc_input:Use inttypes
2021-06-16 17:07:47 +02:00
David Sidrane
e7406bbd46
px4io:Use inttypes
2021-06-16 17:07:47 +02:00
David Sidrane
3747d0bc80
px4io:Fix types
2021-06-16 17:07:47 +02:00
David Sidrane
9443dd6345
pwm_out:use inttypes, match signature
2021-06-16 17:07:47 +02:00
David Sidrane
bd511e1074
dShot: Use inttypes
2021-06-16 17:07:47 +02:00
David Sidrane
810e9e174f
distance_sensor: Use inttypes
2021-06-16 17:07:47 +02:00
David Sidrane
c12a3330b8
camera_trigger: Use proper types
2021-06-16 17:07:47 +02:00
David Sidrane
7b2a1d4742
drivers:camera_trigger Use inttypes
2021-06-16 17:07:47 +02:00
David Sidrane
b6435bb7f2
drivers:camera_capture Use inttypes
2021-06-16 17:07:47 +02:00
David Sidrane
3a0770499a
drivers:batt_smbus Use inttypes
2021-06-16 17:07:47 +02:00
David Sidrane
05007944f1
drivers:barometer Use inttypes
2021-06-16 17:07:47 +02:00
David Sidrane
824dbce941
drivers:ADC Use inttypes
2021-06-16 17:07:47 +02:00
David Sidrane
6e5a86b6fe
dshot:Matched signature to drv_pwm_output.h
2021-06-16 17:07:47 +02:00
David Sidrane
dc23c85085
px4/common:mtd Use inttypes
2021-06-16 17:07:47 +02:00
David Sidrane
1b80018f30
systemcmds:Use inttypes
2021-06-16 17:07:47 +02:00
David Sidrane
62fd132047
boards:Use inttypes
...
nxp_ucans32k146:Fix constant
spracing_h7extreme:Use inttypes
2021-06-16 17:07:47 +02:00
David Sidrane
84dd8839a2
i2c_spi_buses:Track NuttX change to getopts avoid name collision
...
NuttX #defined optarg and getopt to move to TLS. This fixes the
name collision.
2021-06-16 17:07:47 +02:00
David Sidrane
64db89ab20
px_generate_uorb_topic_helper: Use inttypes
2021-06-16 17:07:47 +02:00
AlexKlimaj
dddd2c3297
drivers/distance_sensor: New Broadcom AFBR-S50LV85D distance sensor driver
...
* Basic Broadcom AFBR-S50 driver using vendor API and binary blob https://github.com/Broadcom/AFBR-S50-API
* fix ARK Flow paw3902 rotation
2021-06-15 12:12:24 -04:00
Julian Oes
e828ba4288
commander: send parachute command on termination ( #17564 )
...
* commander: send parachute command on termination
This sends the DO_PARACHUTE command to parachute component.
* commander: fix lying comments and printf
* commander: use one flag for termination triggered
This merges the duplicate flags _flight_termination_triggered and
_flight_flight_termination_printed.
* commander: correct variable name
* commander: always send tune with parachute
* commander: fix target_component for parachute cmd
The previous changes were wrong in that all commands were now sent to
the parachute component which doesn't make any sense. Of course only the
parachute command should be sent there.
2021-06-15 11:50:30 +02:00
Jukka Laitinen
b550ad22b9
EKF2: Always publish global position
...
For historical reasons, there is a check in EKF2 to only publish global
position if it has moved for 1mm.
This is no longer necessary, and also this if doesn't save any cpu cycles
in real conditions where GPS errors are always much bigger that this.
When using simulated or fake GPS, based on some other positioning
system, the GPS coordinate input can be very accurate due to quantization
or true accuracy. In this case this check bites and perfectly valid position
doesn't get published.
Just removed this if.
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae >
2021-06-15 10:55:39 +02:00
Julian Oes
8415692f2a
commander: enable user override when GPS is lost
...
When user override using the RC sticks is allowed, I would expect this
feature to also work in the case where GPS is lost and the vehicle goes
into a blind land/descent.
Without this commit, the vehicle would switch to Land mode and a pilot
could not take over control unless they switch to Altitude control in
a ground station.
With this commit, user override works as I would expect it and it will
switch to Altitude control allowing a pilot to recover in this
situation.
2021-06-15 10:36:11 +02:00
TSC21
749f213ca5
make_list: check if file exists before the other operations
2021-06-14 11:54:05 +02:00
TSC21
c4d54d983b
mavsdk_tests: bump MAVSDK version to 0.40.0
2021-06-14 09:23:38 +02:00
Daniel Agar
0c303f03f4
Update submodule mavlink v2.0 to latest Mon Jun 14 00:39:13 UTC 2021
2021-06-13 21:30:10 -04:00
Hamish Willee
d6f69ef2a0
aion robotic frame - fix broken link to R1 UGV docs
2021-06-12 11:58:26 -04:00
TSC21
0f47ae8e7b
update submodule Tools/sitl_gazebo
2021-06-12 11:57:17 -04:00
David Sidrane
9c8e95db8d
NuttX w/NXP contrib for FlexCAN fixes
2021-06-12 06:22:01 -07:00
David Sidrane
5b9201e5b4
cuav:Nora X7 Pro:Camera trigger is on 13/14
2021-06-11 15:13:23 +02:00
David Sidrane
e0fab172a4
camera_trigger:Support more than 8 channles
2021-06-11 15:13:23 +02:00
Beat Küng
615e1f3e29
mavlink: fix module doc for broadcast
2021-06-11 09:01:41 +02:00
Beat Küng
468aea9409
cmake: enable --ethernet to generate common param metadata
...
This will add the MAV_x_BROADCAST params.
2021-06-11 09:01:41 +02:00
Peter van der Perk
8c4b900f9a
uavcan_v1: Correct transmission deadline check & fix SocketCAN tx deadline
2021-06-10 02:26:28 +00:00
Julian Oes
ca86416ce6
mavlink: don't read garbage target sysid/compid
...
This fixes a tricky bug that we discovered in MAVSDK:
https://github.com/mavlink/MAVSDK/pull/1464
It turns out the target_system and target_component fields can
potentially be:
1. at the end of a message payload,
2. and zero,
and therefore they get trimmed. When you then try to read it you
potentially read some garbage from the CRC fields.
2021-06-09 15:40:46 -04:00
echoG
6bc09138c1
Adding BatMon smart battery as a module and refactoring SMBUS based SBS 1.1 spec to a library
2021-06-09 12:17:45 -04:00
Julian Oes
8be1034346
workflows: fixes typo on python package name ( #17740 )
...
The previous PR was merged optimistically.
2021-06-09 09:11:28 -07:00
bresch
514845592b
en-/disable mc position controller using explicit control mode flag
2021-06-09 18:10:22 +02:00
Julian Oes
17ea92bb54
workflows: add missing dependency for mypy ( #17736 )
2021-06-09 08:52:21 -07:00
Daniel Agar
328c5cb1cf
mavlink: properly cleanup instance on exit
2021-06-09 10:58:34 -04:00
Hamish Willee
9f87702074
px4moduledoc/markdownout.py - source links to PX4-Autopilot
2021-06-09 11:11:08 +02:00
Hamish Willee
665d2ea74e
markdownout for parameters - makes link internal
2021-06-09 11:09:48 +02:00
Hamish Willee
f9201811b4
airframes markdownout.py - fix link to not open file for editing
2021-06-09 11:08:37 +02:00
JacobCrabill
0931ff10d5
uavcan_v1: Clean up handling of invalid port IDs
...
Always convert 'invalid' port ID values (e.g., the default PX4 port-ID
parameter value of -1) to CANARD_PORT_ID_UNSET in all comparisons.
2021-06-08 20:13:19 -04:00
JacobCrabill
73ef22ae77
uavcan_v1: Fix heartbeat pub timestamp
...
The hrt_abstime value used to control the 1s pub rate was the value of
the timestamp_usec of the CanardTransfer, which has a timeout of 100ms
added to it.
Since hrt_abstime is an unsigned datatype, if the hrt_elapsed_time()
check was called <100ms apart, the negative value would result in a
large hrt_elapsed_time, and the bus would be spammed with Heartbeat
messages (or error messages from canardTxPush).
2021-06-08 20:13:19 -04:00
Daniel Agar
251f1a069b
ekf2: update message lost error messages to perf counters
...
- only allocate these perf counters if data source is present
2021-06-08 20:12:17 -04:00
bresch
841914462d
MC pos control: use vz<->z_deriv blending in pure vel mode only
...
This logic was introduced to avoid large altitude drifts in velocity
mode (altitude not controlled) due to potential velocity estimate bias
in case of IMU problems (see PR #8445 ). After some refactorings,
the logic started to be used in altitude-controlled modes as well, which is not needed.
2021-06-08 14:58:14 +02:00
Daniel Agar
47b9016f5e
I2CSPIDriverBase: print rotation and i2c address if set
2021-06-08 09:27:21 +02:00
CUAV_gitfishup
c61c1a15ee
cuav/x7pro: fix syntax error in rc.board_sensors
2021-06-08 09:18:20 +02:00
honglang
8b1d2b8551
change fmu-v5's uavcan timer5 to timer6
2021-06-07 20:07:03 +02:00
achim
00229c4fd2
drv_pwm_output.h: increase highest max pwm limit from 2150 to 2500
...
- servo linkages in vtol often need further travel of the servos to cover the full tilt travel
2021-06-07 09:13:39 -04:00
Daniel Agar
578c003c13
ekf2: selector handle uninitalized test ratios
...
- choose the best instance regardless of tilt or yaw alignment
2021-06-07 08:56:37 -04:00
Matthias Grob
ed62ae0e4f
mavlink: add actuator_armed header to heartbeat
2021-06-07 08:55:49 -04:00
Julian Oes
446598d003
mc_pos_control: omit initial warning
2021-06-07 08:54:19 -04:00
Daniel Agar
4f850c7cd0
sensors: preserve all valid calibration parameters even if sensor currently missing
...
- mark calibration slots active for first N sensors found
- calibration procedure don't bother resetting unused slots
2021-06-07 08:50:32 -04:00
Daniel Agar
2ccd86102b
ekf2: add command line option to manually select instance
2021-06-07 08:47:17 -04:00
achim
66dbc1e25f
Update rc.board_arch_defaults
...
logger doesn't start at all up to 4k buffer
2021-06-05 11:46:30 -04:00
achim
fd2161b6bf
Update rc.board_arch_defaults
...
logger doesn't start at all up to 4k buffer
2021-06-05 11:46:10 -04:00
achim
1ab7943940
Update rc.board_arch_defaults
...
Logger doesn´t start at all with 4k buffer
2021-06-05 11:45:53 -04:00
Daniel Agar
4f8f1a5f7e
mavlink: streams HEARTBEAT fix code style
2021-06-04 20:43:25 -04:00
Daniel Agar
d31a45a62d
github actions SITL test run standard_vtol with address sanitizer
2021-06-04 13:27:42 -04:00
Matthias Grob
faabe2d431
mavlink: make sure heartbeat reports flight termination
2021-06-04 12:48:22 -04:00
achim
6fb1ba7583
Update rcS
...
remove sd index file spoofing
2021-06-04 11:43:17 -04:00
Matthias Grob
70050ae4f5
mc_pos_control_params: correct MPC_POS_MODE docs since 1 is depracated
2021-06-04 09:32:03 -04:00
Peter van der Perk
9756c70491
UAVCANv1 Iteration, dynamic subscribers and decoupling ( #17624 )
...
* Update to use libcanard callback
Reworked param system with lambda
* Use callback instead of lambda saves 500 bytes of flash
* [UAVCANv1] Added ServiceRequest class, subscribers decoupled
* PX4 UAVCANv1 portID param default CANARD_PORT_ID_UNSET (65535U)
* [UAVCANv1] uORB sensor_gps modify timestamp for now untill we've got timesync working
* UAVCANv1 update parameter definition to use -1 as unset
2021-06-04 09:30:17 -04:00
Daniel Agar
470c3cfa6e
mavlink: streams HEARTBEAT fix vehicle_control_mode copy
2021-06-04 15:19:34 +02:00
CUAVmengxiao
98fb373590
mavlink: 14S battery support
2021-06-04 09:15:40 -04:00
RomanBapst
ad9288536b
TECS: enable direct height-rate control
...
Signed-off-by: RomanBapst <bapstroman@gmail.com >
2021-06-04 14:51:27 +02:00
RomanBapst
f6de99d42e
FixedWingPositionControl: control only height rate when using pitch stick
...
in manual altitude controlled modes
Signed-off-by: RomanBapst <bapstroman@gmail.com >
2021-06-04 14:51:27 +02:00
Silvan Fuhrer
3d87bfcc0a
rename FW_T_CLIMB_R_SP to FW_T_CLMB_R_SP
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2021-06-04 14:51:27 +02:00
RomanBapst
19449a4e75
FixedWingPositionControl: use target climb/sink rate parameters as maximum
...
rates in manual altitude controlled modes
Signed-off-by: RomanBapst <bapstroman@gmail.com >
2021-06-04 14:51:27 +02:00
RomanBapst
a5cc449e69
tecs: propagate altitude setpoint based on target climb/sink rate
...
- avoids tecs always climbing and sinking and max rates and allows to fine tune these rates
- avoid numerical calculation of feedforward velocity using derivative, this
was prone to jitter in dt
Signed-off-by: RomanBapst <bapstroman@gmail.com >
2021-06-04 14:51:27 +02:00
RomanBapst
4b7416c05b
FixedWingPosControlL1: added target climb and sink rate parameters
...
Signed-off-by: RomanBapst <bapstroman@gmail.com >
2021-06-04 14:51:27 +02:00
Travis Bottalico
861e15be4c
- update CDCAM_PRODUCTID to match bootloader
2021-06-03 21:38:53 -04:00
bresch
8ad0f36f48
pwm: specific fail/disarm parameters should default to global value
2021-06-03 21:26:13 -04:00
Daniel Agar
db1657fa84
sensors/vehicle_magnetometer: apply current compensation regardless of arming state
...
- simplify update on mag compensation type change
2021-06-03 10:08:19 -04:00
Julian Oes
60235f8474
mavlink: properly initialize vehicle_command queue
...
This makes sure that the vehicle_command topic is properly
initialized from the beginning.
orb_exists returns -1 or 0 and not a bool as one would expect.
2021-06-03 08:53:39 -04:00
Hamish Willee
00cc1323ea
gpio.cpp: Add backticks around gpio command docs
2021-06-03 12:37:48 +02:00
alexklimaj
3e9b295c22
Add watchdog_init to ark boards to ensure watchdog pauses during debugging
2021-06-03 00:54:57 -04:00
Daniel Agar
284375efc3
px4io: only update PWM MAX/MIN/DIS/FAIL/REV once
...
- Updating PWM params on param change was interfering with VTOL
parameter settings (e.g. PWM_MIN is set by VTOL at init, and
was then overwritten here after an arbitrary param change).
2021-06-03 00:52:05 -04:00
Silvan Fuhrer
697d713faf
pwm out: disable PWM parameter update on param change
...
Only update PWM params on initialisation.
Updating PWM params on param change was interfering with VTOL
parameter settings (e.g. PWM_MIN is set by VTOL at init, and
was then overwritten here after an arbitrary param change).
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2021-06-03 00:52:05 -04:00
Daniel Agar
c6d5bd868e
boards: px4_fmu-v6x_default disable LPE to save flash
2021-06-02 09:12:24 -04:00
honglang
5672af4299
CUAV X7pro and Nora: use icm42688p instead of bmi088
2021-06-02 09:11:37 -04:00
Julian Oes
1b67187770
navigator: protect against 0 acceptance radius
...
This seems to slip in e.g. as part of the VTOL_LAND command.
2021-06-02 07:28:19 +02:00
Julian Oes
ab23a44b99
navigator: fix acceptance radius for multicopter
...
This fixes a regression introduced in
https://github.com/PX4/PX4-Autopilot/pull/16646
which meant that the acceptance radius was no longer used at all for
multicopter, and instead only the NAV_ACC_RAD param was used.
With this change we use the acceptance radius of the mission item again
if it is actually set (and not NAN) which we did not do before, and we
only do that for multicopter.
2021-06-02 07:28:19 +02:00
Daniel Agar
5f775b508f
boards: enable CONFIG_OTG_ID_GPIO_DISABLE on all F7/H7
2021-06-01 15:19:15 -04:00
David Sidrane
32e92ba817
Revert:Pull downs - bad levels cause motor spins
2021-06-01 15:18:47 -04:00
Beat Küng
dfa5964719
Accelerometer: fix thermal calibration index
2021-06-01 10:01:36 -04:00
Daniel Agar
d430e13401
sensors: wait for real sample rate to initialize LowPassFilter2p
2021-06-01 08:58:10 -04:00
Daniel Agar
438b0abc7a
mathlib: Biquad filters use internal fields for parameter update
2021-06-01 08:58:10 -04:00
Daniel Agar
9661eddef8
mathlib: LowPassFilter2p initialize b0 to 1 for safety
2021-06-01 08:58:10 -04:00
Daniel Agar
e52c0ceca5
Update submodule mavlink v2.0 to latest Tue Jun 1 00:39:07 UTC 2021
2021-05-31 21:11:01 -04:00
RomanBapst
b06b46b224
log raw airspeed derivative, pitch setpoint and airspeed innovation for TECS
...
Signed-off-by: RomanBapst <bapstroman@gmail.com >
2021-05-31 23:56:23 +02:00
Daniel Agar
806b462935
px4_work_queue: increase UART stack
2021-05-31 14:49:40 -04:00
Daniel Agar
5831494164
boards: px4_fmu-v2_default disable gyro_calibration module to save flash
...
- this doesn't impact regular gyro calibration
2021-05-31 12:11:53 -04:00
Daniel Agar
90e106ede3
boards: cuav_x7pro_test disable LPE to save flash
2021-05-31 10:26:45 -04:00
Daniel Agar
5493d96d17
mathlib: merge LowPassFilter2p, LowPassFilter2pArray, and LowPassFilter2pVector3f
...
- fix reset for direct form 2
- push NAN checks out to filter users
2021-05-31 10:26:45 -04:00
Daniel Agar
2a792ca201
gyro_fft: add simple SNR requirement and reduce number of peaks
2021-05-31 10:26:45 -04:00
Daniel Agar
3269ee8df1
sensors/vehicle_angular_velocity: accumualted notch filtering and reset improvements
...
- apply sensor scaling immediately to keep things simple (FIFO vs regular)
- inline filter helpers (minor performance improvement)
- dynamic notch filtering
- reorder by axis (applied per axis)
- don't remove notch filters immediately if ESC or FFT data times out
- constrain notch filter frequency and bandwidth to safe range (minimum bandwidth for flaot precision, Nyquist, etc)
- add safe constraint on dt
2021-05-31 10:26:45 -04:00
Daniel Agar
561cfca4f9
fake_imu: add fake ESC status for testing dynamic notch filters
2021-05-31 10:26:45 -04:00
Daniel Agar
f25a70a674
mathlib: Notchfilter updates
...
- merge NotchFilterArray into regular NotchFilter (apply vs applyArray)
- only use direct form 1 to prevent reset confusion
- safe default field initialization
- update VehicleAngularVelocity usage
2021-05-31 10:26:45 -04:00
Daniel Agar
055b5404c3
sensors/vehicle_imu: switch to WelfordMean library and other improvements
...
- use WelfordMean library to determine sensor sample rate average
- if gyro samples exceeds queue depth, instead round to nearest even integer to ease scheduling
- force update if publication latency is falling behind
- remove redundant sample interval perf counters
- status print accel & gyro interval standard deviation
2021-05-31 10:05:10 -04:00
Daniel Agar
3340fca332
sensors/vehicle_imu: move accel & gyro updates to separate methods
2021-05-31 10:05:10 -04:00
Daniel Agar
a5979e16be
sensors/vehicle_imu: move publish to separate method
2021-05-31 10:05:10 -04:00
Daniel Agar
0b9e4a5902
sensors/vehicle_imu: Integrator simplify and make header only
2021-05-31 10:05:10 -04:00
Silvan Fuhrer
cf5e6e4133
Sensors: subscribe to differential_pressure in vehicle_air_data to calculate air density
...
-constrain range to -20..35°C
-do not use temperature readings if exactly 0 (as likley not filled by driver at all in this case)
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2021-05-31 09:53:47 +02:00
David Sidrane
973068ebfe
holybro_can-gps-v1:Rev to RC9 HW
...
holybro_can-gps-v1:Fix LEDs
holybro_can-gps-v1:Only CAN1
holybro_can-gps-v1:ncp5623c at 0x39
2021-05-29 10:53:27 -04:00
Daniel Agar
51f738e54c
boards: bootloader.cmake trivial whitespace cleanup
2021-05-28 23:56:20 -04:00
modaltb
e25cfaaa2f
boards: Add ModalAI Flight Core v2 initial support
2021-05-28 22:26:40 -04:00
Jukka Laitinen
34de392425
Add compiler cmake files for RISC-V (rv64gc) targets
...
This adds the basic support for riscv64-unknown-elf compiler amd rv64gc ISA
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae >
2021-05-28 22:22:57 -04:00
Jukka Laitinen
935253357a
nuttx compilation: Don't assume "arm" to enable risc-v compilation
...
Replace "arm" by "${CONFIG_ARCH}"
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae >
2021-05-28 22:22:57 -04:00
Jukka Laitinen
12f33524fa
fix legacy data types again
...
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae >
2021-05-28 17:55:02 -04:00
Peter van der Perk
ed0b5a7c1a
FMUK66 update socketcan configs
2021-05-28 08:03:58 -07:00
Jukka Laitinen
0de0709be3
Fix github url for uavcan_v1/legacy_data_types
...
The URL is spelled wrong, it should be capital "PX4"
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae >
2021-05-28 10:36:30 -04:00
Julian Oes
1da4e2f441
vmount: fix param limit
2021-05-28 14:46:40 +02:00
Silvan Fuhrer
4b42a1639b
TECS: in airspeed-less mode, set airspeed estimate to cruise airspeed
...
In airspeed-less mode, instead of the average of min/max airspeed, take the cruise
airspeed (from param) for current airspeed estimate. A diff of the airspeed setpoint
from this value results in increased enegery demand (incerase of throttle) even
in airspeed-less mode.
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2021-05-28 14:25:53 +02:00
Nuno Marques
f9fe0e3746
ROS2/microRTPS: Add support for ROS2 Galactic and ROS2 Rolling ( #17664 )
...
microRTPS: generate_microRTPS_bridge: add support for ROS2 versions
* Galactic
* Rolling
2021-05-27 09:32:16 -07:00
Daniel Agar
ad534561d3
commander: only play safety change tunes if initialized
2021-05-27 10:13:49 +02:00
Daniel Agar
af71b2e3ab
commander: fix COM_DISARM_PRFLT parameter description typos
2021-05-26 21:48:41 -04:00
Jukka Laitinen
675a5a2b2c
bootloader: change flash_cache addresses to uintptr_t
...
To fix comilation errors on 64 bit platforms
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae >
2021-05-26 12:57:37 -07:00
Jukka Laitinen
071eaef884
Adjust paths to bootloader include files for boards
...
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae >
2021-05-26 12:57:37 -07:00
Jukka Laitinen
64d264b49a
bootloader: Move chip specific things under chip specific folders
...
- move systick.c under chip specific sources
- move do_jump into chip specific main.c as arch_do_jump
- wrap flash writes to "arch_flash_write" and implement in chip specific main.c
- add bootloader TOC check
- sync image_toc.h with the version currently in use with old bootloader
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae >
2021-05-26 12:57:37 -07:00
David Sidrane
3e18fa12d6
px4_fmu-v5x:Remove vcm1193l
2021-05-26 13:41:10 -04:00
David Sidrane
2feb096fb9
vtrantech Rename to match V1.1 vcm5883->vcm1193l
2021-05-26 11:24:11 -04:00
Daniel Agar
b264577daa
sensors/vehicle_acceleration: require valid sample rate before running
...
- this fixes a minor edge case when you only have a single accelerometer and haven't made any parameter changes, the sensor sample rate (used for filtering) might not have been updated from default
2021-05-24 21:39:42 -04:00
Daniel Agar
22838f491a
ekf2: replace mag missed error message with perf count
...
- this error is primarily useful when significant gaps in magnetometer are present, otherwise the occasional gaps at startup, etc are distracting in regular usage
2021-05-24 20:52:07 -04:00
PX4 BuildBot
187297653a
Update submodule ecl to latest Mon May 24 12:39:12 UTC 2021
...
- ecl in PX4/Firmware (17da6293aa8e32a0e41c8fe10b8ffbf4e3e922b3): https://github.com/PX4/PX4-ECL/commit/e57af44d71dea2da62055076f186b3d15278ae7e
- ecl current upstream: https://github.com/PX4/PX4-ECL/commit/71fc1b81612fa9b5184d5abb93b69d109e9d0e4b
- Changes: https://github.com/PX4/PX4-ECL/compare/e57af44d71dea2da62055076f186b3d15278ae7e...71fc1b81612fa9b5184d5abb93b69d109e9d0e4b
71fc1b8 2021-05-20 bresch - airspeed fusion: use yaw from 312 sequence when pitch is close to 90deg
2021-05-24 18:59:56 -04:00
Daniel Agar
0fc98b2793
move IMU_GYRO_FFT_EN parameter to developer category
...
- these need more work and testing before we should encourage wider usage
2021-05-24 18:59:32 -04:00
Daniel Agar
e18b1c0355
mpu9250: tolerate missing/mismatching FIFO samples if I2C slave mag active
...
- when the mpu9250 mag is active it disrupts IMU sampling
- this change modifies the simple mpu9250 FIFO integrity checks (comparing duplicate accel samples) to tolerate these samples that don't match if the mag is active
- fixes #17615
2021-05-24 11:22:13 -04:00
Daniel Agar
6549017993
navigator: GeofenceBreachAvoidance remove duplicate type alias
2021-05-23 17:51:08 -04:00
Daniel Agar
8327335fa4
Update submodule mavlink v2.0 to latest Sat May 22 00:38:27 UTC 2021
2021-05-22 13:35:50 -04:00
PX4 BuildBot
a6148d6320
Update submodule libcanard to latest Sat May 22 12:39:12 UTC 2021
...
- libcanard in PX4/Firmware (e2ba4858a3285fe7ff0f2888d8b1ce5dbda589a1): https://github.com/UAVCAN/libcanard/commit/38796831f9083c0f0674319543d8d10813429eb5
- libcanard current upstream: https://github.com/UAVCAN/libcanard/commit/2a116170285fb47fcaae150ad21c2ccde0756a5f
- Changes: https://github.com/UAVCAN/libcanard/compare/38796831f9083c0f0674319543d8d10813429eb5...2a116170285fb47fcaae150ad21c2ccde0756a5f
2a11617 2021-05-20 Pavel Kirienko - Update the changelog
a1efa3a 2021-05-20 Peter van der Perk - Expose CanardRxSubscription fields for read-only use (#167 )
2021-05-22 13:35:03 -04:00
PX4 BuildBot
142d6f3dbc
Update submodule ecl to latest Sat May 22 12:39:15 UTC 2021
...
- ecl in PX4/Firmware (2a18b8feeb24dcb07c2dd141e6097e211f83e6bd): https://github.com/PX4/PX4-ECL/commit/85f5a935fe6095f585bfb12b584e0813126cbc2a
- ecl current upstream: https://github.com/PX4/PX4-ECL/commit/e57af44d71dea2da62055076f186b3d15278ae7e
- Changes: https://github.com/PX4/PX4-ECL/compare/85f5a935fe6095f585bfb12b584e0813126cbc2a...e57af44d71dea2da62055076f186b3d15278ae7e
e57af44 2021-05-18 Bazooka Joe - set parameters that doesn't change with const attribute, for clearification
2021-05-22 13:34:31 -04:00
PX4 BuildBot
68e386cf2d
Update submodule sitl_gazebo to latest Sat May 22 00:38:23 UTC 2021
...
- sitl_gazebo in PX4/Firmware (61e972ba35 ): https://github.com/PX4/PX4-SITL_gazebo/commit/f10ccb7ec34e35842254fe969d49beea699a8ffb
- sitl_gazebo current upstream: https://github.com/PX4/PX4-SITL_gazebo/commit/5c248898524cb670df496149de5e4692e16e69dc
- Changes: https://github.com/PX4/PX4-SITL_gazebo/compare/f10ccb7ec34e35842254fe969d49beea699a8ffb...5c248898524cb670df496149de5e4692e16e69dc
5c24889 2021-05-20 Andrew Voznytsa - Use cmake to find and link to gstreamer-app-1.0
2021-05-22 06:48:03 +02:00
Daniel Agar
61e972ba35
px_uploader.py remove special pyserial checks that fail on some platforms
2021-05-21 08:56:12 +02:00
Julian Oes
518222bae4
navigator: fix home altitude feasibility check
...
This includes the following:
- Remove warning/throw_error flag as it is always !home_alt_valid.
- Remove impossible code path when home_alt_valid = false and
throw_error = false.
- Add home_alt_valid check in second check before using home_alt.
- Only use warning for the second check to allow waypoints below home.
- Don't return early when only warning.
2021-05-20 10:50:54 -04:00
Julian Oes
90a33d59e4
commander: blink red on invalid mission
...
It doesn't make sense to blink green when something is not good.
2021-05-20 10:50:54 -04:00
Julian Oes
4ccc60e2b0
commander: neutral beep on mission with warning
...
When a mission is uploaded we should beep consistenly:
- valid -> positive
- warn -> neutral
- invalid -> negative
Before this, it was:
- valid -> positive
- warn -> negative
- invalid -> negative
2021-05-20 10:50:54 -04:00
Julian Oes
b7890529b2
navigator: reset mission feasibility warning flag
...
Without reseting the warning flag commander would complain about a
warning but still allow arming and flying the mission which was weird.
2021-05-20 10:50:54 -04:00
Daniel Agar
9969edfabc
mavlink: STATUSTEXT stream use perf count for missed messages
...
- don't send stale messages
- process all queued messages until tx buffer is full
2021-05-20 10:39:11 -04:00
Julian Oes
1f40a65210
mavlink: improve command param5/6, x/y handling
...
This adds support to handle INT32_MAX for COMMAND_INT.x/y by converting
it to NAN internally.
It also adds paranoid checks to prevent:
- NAN being used sent by a COMMAND_INT by mistake.
- INT32_MAX being used sent by a COMMAND_LONG by mistake.
2021-05-20 09:26:30 +02:00
PX4 BuildBot
4bb53e2afc
Update submodule libcanard to latest Wed May 19 00:39:15 UTC 2021
...
- libcanard in PX4/Firmware (7c7657e6a0254b62959ea6b908b89815f0cfee5a): https://github.com/UAVCAN/libcanard/commit/55938c51cf7da3096679933302693c9dae7a2b33
- libcanard current upstream: https://github.com/UAVCAN/libcanard/commit/38796831f9083c0f0674319543d8d10813429eb5
- Changes: https://github.com/UAVCAN/libcanard/compare/55938c51cf7da3096679933302693c9dae7a2b33...38796831f9083c0f0674319543d8d10813429eb5
3879683 2021-05-18 Pavel Kirienko - Add canardRxAccept2(), fix #163 (#164 )
2021-05-19 00:24:00 -04:00
CUAVcaijie
ffe9f8a942
boards: CUAV Nora/X7Pro ICM20649 on SPI6 bus will be replaced by ICM20689
2021-05-18 18:49:25 -04:00
Daniel Agar
10f33cdd35
boards: px4_fmu-v6x_default re-enable top and free up flash
2021-05-18 16:22:02 -04:00
Daniel Agar
e498023d0f
ist8308: improve configuration
...
- disable noise suppression filter
- select more appropriate dynamic range
- carefully set and clear all ODR, DR, and OSRCNTL bits
- retry in probe multiple times
2021-05-18 13:20:21 -04:00
David Sidrane
4acc18ca60
Add VCM5883 Magnetometer
...
Fix LSB/G
2021-05-18 12:57:46 -04:00
Daniel Agar
820a442fe3
drivers/imu/analog_devices/adis16448: minor fixes and compatibility with older model
...
- increase SPI stall time slightly
- tolerate mag self test failure (could be due to local magnetic field)
- register configuration compatible with older ADIS16448AMLZ
- don't publish duplicate accel/gyro
- only allocate CRC perf counter if using CRC
2021-05-18 12:44:37 -04:00
PX4 BuildBot
eee08601af
Update submodule sitl_gazebo to latest Tue May 18 00:50:37 UTC 2021
...
- sitl_gazebo in PX4/Firmware (c3884b5bc1 ): https://github.com/PX4/PX4-SITL_gazebo/commit/402897d22505a13505c19adca23c03a47224175f
- sitl_gazebo current upstream: https://github.com/PX4/PX4-SITL_gazebo/commit/f10ccb7ec34e35842254fe969d49beea699a8ffb
- Changes: https://github.com/PX4/PX4-SITL_gazebo/compare/402897d22505a13505c19adca23c03a47224175f...f10ccb7ec34e35842254fe969d49beea699a8ffb
f10ccb7 2021-05-17 grahamjamesaddis - Fix non unique name warning in tailsitter.sdf.jinja (#756 )
05b8625 2021-05-13 Andrew Voznytsa - Fix gstreamer timestamps; Use push mode all the way; Avoid duplicated frame encoding; Cleanup a bit there and here
9ec04cc 2021-05-16 Graham James Addis - Tidy rotor colours Grey/Blue.
493c5dc 2021-05-16 Graham James Addis - Minimal conversion to jinja format.
2021-05-17 23:03:51 -04:00
Daniel Agar
db3c89b1e3
Update submodule mavlink v2.0 to latest Tue May 18 00:50:40 UTC 2021
2021-05-17 21:53:36 -04:00
PX4 BuildBot
319cab6c2c
Update submodule ecl to latest Tue May 18 00:50:43 UTC 2021
...
- ecl in PX4/Firmware (4668ea5c32075aca28fd813881a349f765ad8d2a): https://github.com/PX4/PX4-ECL/commit/29243ac5cbb5d27ac71744e88afcd786df6f748d
- ecl current upstream: https://github.com/PX4/PX4-ECL/commit/85f5a935fe6095f585bfb12b584e0813126cbc2a
- Changes: https://github.com/PX4/PX4-ECL/compare/29243ac5cbb5d27ac71744e88afcd786df6f748d...85f5a935fe6095f585bfb12b584e0813126cbc2a
85f5a93 2021-05-11 bresch - [AUTO COMMIT] update change indication
f7c687e 2021-05-11 bresch - GNSS yaw unit test: test fallback to non yaw aiding mode
a4fe2b1 2021-05-11 bresch - yaw_align: let the mag control logic do the alignement and resets
2cc0230 2021-05-11 bresch - mag control: select mag mode before doing the reset
fe943cf 2021-05-11 bresch - mag reset: force align in MC custom mode (aka. indoor mode)
cadcc58 2021-05-11 bresch - mag reset: do not stop the fusion from inside the reset function
6248646 2021-05-11 bresch - EV yaw: move EV yaw reset out of resetMagHeading function
48722a2 2021-05-07 bresch - control: inhibit EV yaw from restarting when GPS aid wants to start
a685987 2021-05-07 bresch - GNSS yaw: unset yaw_align if fusion stops before takeoff
7ee6970 2021-05-04 bresch - GNSS yaw: add test case when measurement jumps
7a11871 2021-05-04 bresch - GNSS yaw tests: adjust timing
51197a5 2021-05-03 bresch - GNSS yaw selection logic refactor
2021-05-17 21:52:00 -04:00
Daniel Agar
c3884b5bc1
fake_imu (formally fake_gyro) updates for testing gyro filtering
...
- fake_imu now publishes sine sweeps over 10 seconds
- accel is also published so that fake IMU can be selected when the only option
2021-05-17 20:26:25 -04:00
Daniel Agar
39c90c8fc9
Update submodule GPSDrivers to latest Mon May 17 12:38:15 UTC 2021
2021-05-17 19:25:45 -04:00
Daniel Agar
87b861d0f0
IMU_GYRO_CUTOFF and IMU_DGYRO_CUTOFF increase default slightly
2021-05-17 17:37:52 +02:00
Peter van der Perk
60a083b662
canbootloader clear pending systick interrupts
2021-05-17 05:05:24 -07:00
Daniel Agar
3a3cc33d69
drivers/optical_flow/paw3902: require >= 10 valid consecutive readings before deciding mode changes
...
- improve mode change requirements comments
- reduce verified read/write retries (these are mostly wasting time)
2021-05-16 20:29:06 -04:00
PX4 BuildBot
9d54b7b64e
Update submodule jMAVSim to latest Sun May 16 12:39:03 UTC 2021
...
- jMAVSim in PX4/Firmware (5f14ee2a97 ): https://github.com/PX4/jMAVSim/commit/2b610caab81726ab79019de0f2fa8cff5e341bd5
- jMAVSim current upstream: https://github.com/PX4/jMAVSim/commit/0a816d8100e9860a031ccfccfb9941bcd6eedc81
- Changes: https://github.com/PX4/jMAVSim/compare/2b610caab81726ab79019de0f2fa8cff5e341bd5...0a816d8100e9860a031ccfccfb9941bcd6eedc81
0a816d8 2021-05-12 Beat Küng - mavlink: update message definitions to latest master
2021-05-16 17:23:40 -04:00
PX4 BuildBot
093854d29b
Update submodule public_regulated_data_types to latest Sun May 16 12:39:17 UTC 2021
...
- public_regulated_data_types in PX4/Firmware (b0b812007a76a7d3cfb3e1d2d32f245a681800d7): https://github.com/UAVCAN/public_regulated_data_types/commit/1337b1c86fee5bd3f3c3c0f1027bcf19e5c08aae
- public_regulated_data_types current upstream: https://github.com/UAVCAN/public_regulated_data_types/commit/0a773b93ce5c94e1d2791b180058cb9897fab7e1
- Changes: https://github.com/UAVCAN/public_regulated_data_types/compare/1337b1c86fee5bd3f3c3c0f1027bcf19e5c08aae...0a773b93ce5c94e1d2791b180058cb9897fab7e1
0a773b9 2021-05-10 Kalyan Sriram - reg/drone: remove redundant timestamp in Velocity3Var (#117 )
2021-05-16 17:23:01 -04:00
PX4 BuildBot
723e803ab9
Update submodule public_regulated_data_types to latest Sun May 16 12:39:14 UTC 2021
...
- public_regulated_data_types in PX4/Firmware (b00f416229a5bcef2bdad4ec29c90e4846c701af): https://github.com/UAVCAN/public_regulated_data_types/commit/1337b1c86fee5bd3f3c3c0f1027bcf19e5c08aae
- public_regulated_data_types current upstream: https://github.com/UAVCAN/public_regulated_data_types/commit/0a773b93ce5c94e1d2791b180058cb9897fab7e1
- Changes: https://github.com/UAVCAN/public_regulated_data_types/compare/1337b1c86fee5bd3f3c3c0f1027bcf19e5c08aae...0a773b93ce5c94e1d2791b180058cb9897fab7e1
0a773b9 2021-05-10 Kalyan Sriram - reg/drone: remove redundant timestamp in Velocity3Var (#117 )
2021-05-16 17:22:40 -04:00
Daniel Agar
904f827df0
Jenkins: increase timeout and build history
2021-05-16 15:59:56 -04:00
AlexKlimaj
4a93f7cea1
Add ARK CAN GPS Board Config
2021-05-16 13:21:44 -04:00
Damien SIX
e4f235001b
fix timesync for timestamp sample (including SFINAE detection)
2021-05-16 13:15:37 -04:00
Daniel Agar
ecf2cd3afb
CAN node STM32F7 support and Freefly RTK GPS CAN node
2021-05-16 13:10:02 -04:00
Beat Küng
1ad25369e7
Makefile: ensure 'clean' does not fail if build directory does not exist
2021-05-16 13:01:20 -04:00
Beat Küng
5114158090
px4/fmu-v6x: disable dumpfile (reduce flash)
2021-05-16 13:01:20 -04:00
Beat Küng
9fbbcc9c73
mavlink ATTITUDE_TARGET: send also if vehicle_attitude_setpoint is not updated
...
This is the case in MC acro
2021-05-16 13:01:20 -04:00
Beat Küng
2a84afb6a2
mavlink: avoid 'stream xy not found' warnings on CONSTRAINED_FLASH targets
...
e.g.:
WARN [mavlink] stream ADSB_VEHICLE not found
WARN [mavlink] stream GIMBAL_DEVICE_ATTITUDE_STATUS not found
WARN [mavlink] stream GIMBAL_MANAGER_STATUS not found
WARN [mavlink] stream GIMBAL_DEVICE_SET_ATTITUDE not found
WARN [mavlink] stream GPS2_RAW not found
WARN [mavlink] stream UTM_GLOBAL_POSITION not found
ERROR [mavlink] configure_streams_to_default() failed
2021-05-16 13:01:20 -04:00
PX4 BuildBot
9e352e92bd
Update submodule sitl_gazebo to latest Sun May 16 12:39:08 UTC 2021
...
- sitl_gazebo in PX4/Firmware (7cb3ed98b61c514d01fc9a68ba87445f8b9aa142): https://github.com/PX4/PX4-SITL_gazebo/commit/2496b85dd22d2f9c1c1281d5ef77dfb86ef604a3
- sitl_gazebo current upstream: https://github.com/PX4/PX4-SITL_gazebo/commit/402897d22505a13505c19adca23c03a47224175f
- Changes: https://github.com/PX4/PX4-SITL_gazebo/compare/2496b85dd22d2f9c1c1281d5ef77dfb86ef604a3...402897d22505a13505c19adca23c03a47224175f
402897d 2021-05-09 Jaeyoung-Lim - Update mavsdk version scripts
2021-05-16 12:55:28 -04:00
Jonas Vautherin
5f14ee2a97
busy -> invalid item
2021-05-13 12:22:16 +02:00
Daniel Agar
ad0482155e
ROMFS: reduce LOGGER_BUF default to 8 kB on older boards
2021-05-12 17:06:33 +02:00
Beat Küng
d300a879f1
cmake: remove romfs content before tar extraction
...
This avoids incremental build errors when switching between branches with
a different set of airframes.
E.g:
Aborting due to missing @type tag in file: 'Firmware/build/px4_fmu-v5_default/etc/init.d/airframes/13030_generic_vtol_quad_tiltrotor'
2021-05-11 13:14:42 -04:00
Beat Küng
e77b4418a5
fix logger: use free() instead of 'delete[]' for _buffer
...
The allocation got changed to px4_cache_aligned_alloc
2021-05-11 18:12:56 +02:00
Igor Mišić
05a2d4d5a9
gps: updated submodule to fix for heading
2021-05-11 08:34:23 +02:00
Igor Mišić
d9e31d67aa
gps: Updated timeout time for the rover with moving base
...
The MB rover will wait as long as possible to compute a navigation solution, possibly lowering the navigation rate all the way to 1 Hz while doing so.
2021-05-11 08:34:23 +02:00
Silvan Fuhrer
b7e563bdbe
Airspeed selector: fix in_air_fixed_wing condition
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2021-05-10 13:43:05 +02:00
Silvan Fuhrer
596da5b7d3
Airspeed selector: use module params for FW_AIRSPD_STALL
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2021-05-10 13:43:05 +02:00
Silvan Fuhrer
2f73115b54
translate ASPD_STALL to FW_AIRSPD_STALL
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2021-05-10 13:43:05 +02:00
Silvan Fuhrer
bf311ed77d
addressed review comments (fixes in error message and comments)
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2021-05-10 13:43:05 +02:00
Silvan Fuhrer
63a53d48e7
FW Position controller: improve parameter sanity checks (provide more feedback)
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2021-05-10 13:43:05 +02:00
Silvan Fuhrer
c8ec6b3d08
Airspeed selector: remove ASPD_STALL and replace by FW_AIRSPD_STALL
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2021-05-10 13:43:05 +02:00
RomanBapst
3b27864e53
vehicle_status: added field for geofence violation
...
Signed-off-by: RomanBapst <bapstroman@gmail.com >
2021-05-10 10:46:49 +03:00
RomanBapst
3ac8c23dd0
commander: added prearm check for geofence violation
...
- if geofence action is not none, then don't allow arming outside of geofence
Signed-off-by: RomanBapst <bapstroman@gmail.com >
2021-05-10 10:46:49 +03:00
RomanBapst
6215e6c7ec
navigator: do not emit geofence warnings if system is not armed
...
Signed-off-by: RomanBapst <bapstroman@gmail.com >
2021-05-10 10:46:49 +03:00
David Sidrane
e87a6c755d
px4_fmu-v5x:Add support for Revision 2 FMUM HW using ICM20649 not BMI088
2021-05-10 09:11:50 +02:00
David Sidrane
69e0c2fc10
px4:platform support SPI configuration selection on HW REV
2021-05-10 09:11:50 +02:00
Julian Oes
e4ee7c7d98
sitl_gazebo: update submodule
...
This fixes the simulation stalling after 30mins due to an int overflow.
2021-05-09 15:17:25 +02:00
David Sidrane
541697d193
NuttX Backports Fixing SDIO/SDMMC Data Timeouts
...
stm32, F7 and H7
2021-05-08 04:40:54 -07:00
Daniel Agar
c49c8932de
commander: mag_calibration fail immediately if no mags available
2021-05-08 13:03:42 +02:00
Peter van der Perk
0c926250a2
UAVCANv1 cleanup and uORB over UAVCANV1 move to own subclass
2021-05-08 13:03:02 +02:00
Daniel Agar
dfb4ec56b1
Makefile: clean and distclean updates
...
- update clean to recurse all build directories and use build system clean
- git clean is used to remove submodule generated build artifacts that
are left in the source tree
- distclean now discards all build directories and any gitignored
filess that were generated in source directories (but not top level)
2021-05-08 12:29:16 +02:00
Daniel Agar
f15eefcc95
ekf2: selector increase status rate before potential instance change
2021-05-07 22:38:47 -04:00
Julian Oes
29730e30fa
ekf2: don't timeout in HITL mode
...
Otherwise ekf2 might not start if HITL isn't started within 30 seconds.
2021-05-07 22:38:03 -04:00
Julian Oes
ac97b5520c
commander: assume power is fine for HITL
...
This means that the preflight check indicator in QGC is green for HITL.
2021-05-07 22:38:03 -04:00
Julian Oes
648a21f11d
commander: ignore calibration in HITL
...
The calibration is not found in HITL mode. Therefore, I suggest to
ignore this step and assume the calibration is fine.
This mostly fixes the preflight check indicator in QGC, arming was (for
some reason?) already possible.
2021-05-07 22:38:03 -04:00
Hamish Willee
d3fd03a014
airspeed calibration: instruct to blow into front of pitot
...
... rather than across it
2021-05-07 21:34:53 -04:00
David Sidrane
b1e0702657
px4_fmuv2:Save Flash CONFIG_LIBC_STRERROR=n
2021-05-07 11:50:38 -07:00
David Sidrane
8d82560308
NuttX Backports
...
[BACKPORT] binnfmt:Fix return before close ELF fd
stm32h7: serial: use dma tx semaphore as resource holder
[BACKPORT] stm32h7:Serial Add RX and TX DMA
[BACKPORT] drivers/serial: fix Rx interrupt enable for cdcacm
[BACKPORT] stm32h7:Allow for reuse of the OTG_ID GPIO
[BACKPORT] stm32f7:Allow for reuse of the OTG_ID GPIO
2021-05-07 11:50:38 -07:00
PX4 BuildBot
e265ebabc5
Update submodule ecl to latest Thu May 6 12:39:12 UTC 2021
...
- ecl in PX4/Firmware (a300d32523e24df3f366a0d564b764261e1c1909): https://github.com/PX4/PX4-ECL/commit/a7b8afe420f438554ad90bcba0f1f4872325e75b
- ecl current upstream: https://github.com/PX4/PX4-ECL/commit/29243ac5cbb5d27ac71744e88afcd786df6f748d
- Changes: https://github.com/PX4/PX4-ECL/compare/a7b8afe420f438554ad90bcba0f1f4872325e75b...29243ac5cbb5d27ac71744e88afcd786df6f748d
29243ac 2021-05-05 bresch - yaw_reset: reduce minimum vector length to compute yaw error
aad4840 2021-05-02 Kabir Mohammed - EKF: increase allowed difference between flow and gyro ODRs
2021-05-06 13:53:40 -04:00
Daniel Agar
9419f9c5e8
Update submodule mavlink v2.0 to latest Thu May 6 12:39:02 UTC 2021
2021-05-06 13:52:43 -04:00
Silvan Fuhrer
08dab18a8b
vtol_type: in FW, set min PWM to PWM_DEFAULT_MIN instead of PWM_MOTOR_OFF
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2021-05-06 10:20:24 +02:00
benjinne
099c2d13f6
dshot: add 3D capability
2021-05-06 08:12:07 +02:00
Daniel Agar
177ee4cbca
drivers/optical_flow/paw3902: properly discard samples after mode change
...
- respect mode 2 shutter requirements from datasheet (should not operate with Shutter < 0x01F4 in Mode 2)
- sensor reset is handled by mode change
2021-05-05 21:48:01 -04:00
Daniel Agar
b1ebd16c61
ekf2: improve selector reset handling
...
- handle reset count rollover (uint8_t)
- compute full reset delta if primary estimator instance has changed or if we missed a reset
2021-05-05 21:45:13 -04:00
Alessandro Simovic
d1d5eba320
follow-me: log follow_target msg
2021-05-05 16:13:50 -04:00
Alessandro Simovic
48f3bd4078
follow-me: formatting
2021-05-05 16:13:50 -04:00
Alessandro Simovic
5f19eeaaa5
follow_target: copy also velocity fields from uorb
2021-05-05 16:13:50 -04:00
Alessandro Simovic
2d6bc9b6e0
follow_target: use actual velocity measurement
2021-05-05 16:13:50 -04:00
Alessandro Simovic
5d9b3504f7
follow-target: correctly set "updated" flag
2021-05-05 16:13:50 -04:00
Alessandro Simovic
f1fca0939f
follow-target: name variable correctly
2021-05-05 16:13:50 -04:00
David Sidrane
3702140e24
PWMOut:Arm once all channels are initalized.
2021-05-05 20:48:06 +02:00
David Sidrane
3d166d3279
PWM:Add Channel mask to up_pwm_servo_arm & up_pwm_servo_deinit
2021-05-05 20:48:06 +02:00
David Sidrane
19fa5cfe25
px4_fmu-v6x: Disable OTG_ID_GPIO
2021-05-05 20:48:06 +02:00
David Sidrane
baa37c1143
px4_fmu-v5x: Disable OTG_ID_GPIO
2021-05-05 20:48:06 +02:00
David Sidrane
0385245ae1
px4_fmu-v5: Disable OTG_ID_GPIO
2021-05-05 20:48:06 +02:00
David Sidrane
1f61dcfb06
modalai_fc-v1: Disable OTG_ID_GPIO
2021-05-05 20:48:06 +02:00
David Sidrane
3779ff3690
holybro_pix32v5: Disable OTG_ID_GPIO
2021-05-05 20:48:06 +02:00
David Sidrane
21cf26a69f
holybro_durandal-v1: Disable OTG_ID_GPIO
2021-05-05 20:48:06 +02:00
David Sidrane
a654c37306
cuav_x7pro: Disable OTG_ID_GPIO
2021-05-05 20:48:06 +02:00
David Sidrane
07e38563ba
cuav_nora: Disable OTG_ID_GPIO
2021-05-05 20:48:06 +02:00
David Sidrane
d5b60f7002
NuttX with WIP OTG_ID
2021-05-05 20:48:06 +02:00
David Sidrane
923af2c65b
spracing_h7extreme: Initalize PWM as input with Pull Downs
2021-05-05 20:48:06 +02:00
David Sidrane
2d3800fa25
px4_fmu-v6x: Initalize PWM as input with Pull Downs
2021-05-05 20:48:06 +02:00
David Sidrane
4f8c1ccfe8
px4_fmu-v6u: Initalize PWM as input with Pull Downs
2021-05-05 20:48:06 +02:00
David Sidrane
7dd57d55f6
px4_fmu-v5x: Initalize PWM as input with Pull Downs
2021-05-05 20:48:06 +02:00
David Sidrane
69bf437e9a
px4_fmu-v5: Initalize PWM as input with Pull Downs
2021-05-05 20:48:06 +02:00
David Sidrane
633fbe147a
nxp_fmuk66-v3: Initalize PWM as input with Pull Downs
2021-05-05 20:48:06 +02:00
David Sidrane
118839e75c
nxp_fmuk66-e: Initalize PWM as input with Pull Downs
2021-05-05 20:48:06 +02:00
David Sidrane
3f5a0e49a4
mro_pixracerpro: Initalize PWM as input with Pull Downs
2021-05-05 20:48:06 +02:00
David Sidrane
86360d076c
mro_ctrl-zero-h7: Initalize PWM as input with Pull Downs
2021-05-05 20:48:06 +02:00
David Sidrane
3820f761b1
mro_ctrl-zero-h7-oem: Initalize PWM as input with Pull Downs
2021-05-05 20:48:06 +02:00
David Sidrane
50d3af1ba1
mro_ctrl-zero-f7: Initalize PWM as input with Pull Downs
2021-05-05 20:48:06 +02:00
David Sidrane
867aa9d4bc
mro_ctrl-zero-f7-oem: Initalize PWM as input with Pull Downs
2021-05-05 20:48:06 +02:00
David Sidrane
310d166899
modalai_fc-v1: Initalize PWM as input with Pull Downs
2021-05-05 20:48:06 +02:00
David Sidrane
9c761d9ae5
holybro_pix32v5: Initalize PWM as input with Pull Downs
2021-05-05 20:48:06 +02:00
David Sidrane
b3b74eaaf6
holybro_kakutef7: Initalize PWM as input with Pull Downs
2021-05-05 20:48:06 +02:00
David Sidrane
4c8dca738c
holybro_durandal-v1: Initalize PWM as input with Pull Downs
2021-05-05 20:48:06 +02:00
David Sidrane
4da1ec1146
cubepilot_cubeyellow: Initalize PWM as input with Pull Downs
2021-05-05 20:48:06 +02:00
David Sidrane
1a5741f984
cubepilot_cubeorange: Initalize PWM as input with Pull Downs
2021-05-05 20:48:06 +02:00
David Sidrane
4d4d8ed887
cuav_x7pro: Initalize PWM as input with Pull Downs
2021-05-05 20:48:06 +02:00
David Sidrane
eae01a06e7
cuav_nora: Initalize PWM as input with Pull Downs
2021-05-05 20:48:06 +02:00
David Sidrane
d6a54910b4
av_x-v1: Initalize PWM as input with Pull Downs
2021-05-05 20:48:06 +02:00
David Sidrane
362db92515
Define PX4_MAKE_GPIO_INPUT_PULL_DOWN
2021-05-05 20:48:06 +02:00
David Sidrane
dd4ffb3c0c
PWMOut:Fix pwm status
2021-05-05 20:48:06 +02:00
David Sidrane
44cdc52ef8
PWMOut:Use rates from single instance & init all instances channels
2021-05-05 20:48:06 +02:00
David Sidrane
dcbfc9de2d
io_timer:Fixed imposible logic
2021-05-05 20:48:06 +02:00
Peter van der Perk
9a085126fd
FMUK66 free up some RAM
2021-05-05 18:52:56 +02:00
Jukka Laitinen
ac6e7a1c6c
FlightTaskManualAltitude: Fix double->float conversion in initialization
...
This gives an error on some new compilers, e.g. riscv64-unknown-elf 10.2.0
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae >
2021-05-05 09:31:07 +02:00
Jukka Laitinen
532f370e7d
Fix implicit float to double conversions
...
The both results of ?: should be of same type, and some compilers give error
on this:
" implicit conversion from 'float' to 'double' to match other result of conditional"
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae >
2021-05-05 09:31:07 +02:00
Peter van der Perk
62dc926891
Add support for UCANS32K146B board revision
2021-05-04 22:13:24 -04:00
Daniel Agar
c1d3be4258
Makefile: keep git clean for submodules to resolve incomplete dependency problems
2021-05-04 21:22:56 -04:00
Daniel Agar
68a9e981b1
boards: px4_fmu-v5_optimized disable temperature_compensation to save flash
2021-05-04 21:20:32 -04:00
Daniel Agar
f5b6656a6c
cmake: set MAX_CUSTOM_OPT_LEVEL to -O3 if Release
2021-05-04 21:20:32 -04:00
Daniel Agar
3b7ce61901
px4_work_queue: increase wq:rate_ctrl stack slightly
2021-05-04 17:40:56 -04:00
Daniel Agar
3ec40a5956
collision_prevention: fix CP_GO_NO_DATA parameter type
2021-05-04 16:41:32 -04:00
Peter van der Perk
24c2967511
legacy_data_types specify branch
2021-05-04 13:23:14 -04:00
Matthias Grob
ee87257a8d
FlightModeManager: move velocity control feedback into FlightTask
...
This was only handled outside because FlightTaks lived in the
multicopter position controller which produces the data that was
needed but now it doesn't make sense anymore to handle this
subscription separately.
It's better to have it inside the base task to have the data available
on task activation sucht that e.g. Altitude mode can take over smoothly
from Position mode.
2021-05-04 16:47:48 +02:00
Matthias Grob
c28533677d
MulticopterLandDetector: use setpoint generation to infer decend intent
...
For any normal use case where a downwards velocity setpoint is set
this works exactly the same as before.
E.g. autonomous landing, landing in Altitude or Position mode
The advantage is that the very common case where a vehicle tries
to hold a constant altitude but fails to do so e.g. during a hard brake
with too much lift the resulting downwards velocity was interpreted
as descend intent and since the vehicle already struggled to hold altitude
with low thrust and was not moving fast anymore because it was braking
this lead to a lot more false positives on certain vehicle types.
The disadvantage is that not setting a downwards velocity setpoint but
just moving the position setpoint into the ground does not result in
land detection anymore. We do not use this method of landing anymore for
quite a while. It's not recommended and I wonder if there's some rare use
case like offboard where this is done.
We could add an additional case for the specific case to land with a
position setpoint only.
2021-05-04 16:43:33 +02:00
Matthias Grob
2e292abfff
MulticopterLandDetector: Make land detection time configurable
...
The tree stages used arbitrary 350, 250 300ms totally 900ms
So this changes it to each stage to a third of the parameter.
Default it is 1 second -> 333ms per stage.
2021-05-04 16:43:33 +02:00
RomanBapst
269ce07cb5
land detector: log more states in order to facilitate debugging ground contact state
...
Signed-off-by: RomanBapst <bapstroman@gmail.com >
2021-05-04 16:43:33 +02:00
Daniel Agar
3348869ae1
Makefile: git clean properly preserve project files (.project, .cproject, etc)
2021-05-04 09:49:50 -04:00
Jari Nippula
04b7ee43bc
protocol_splitter: Sp2Header defined as union ( #17511 )
...
Aligned with agent_protocol_splitter to make byte access easier
for checksum generation
Co-authored-by: Nuno Marques <n.marques21@hotmail.com >
2021-05-04 10:09:24 +02:00
Mikołaj Grzybek
4e69952ee4
arch.sh: Syntax error fix
...
Script failed for me with following error
PX4-Autopilot/Tools/setup/arch.sh: line 159: syntax error near unexpected token `else'
PX4-Autopilot/Tools/setup/arch.sh: line 159: ` else'
Seems like there is nothing to do in case of positive if case.
Changed code should maintain logic
2021-05-04 10:06:39 +02:00
RomanBapst
cd4378b8c6
vtol: init boolean consistently
...
Signed-off-by: RomanBapst <bapstroman@gmail.com >
2021-05-03 18:58:26 -04:00
Thomas
ab10e68a40
update Quadchute trigger from mavlink PR 1569
2021-05-03 21:44:27 +03:00
Thomas
bf9758247b
add VEHICLE_VTOL_STATE_QC and remove hardcoding
2021-05-03 21:44:27 +03:00
Thomas
d3ddbe8db5
Allow quadchute from external command
2021-05-03 21:44:27 +03:00
Peter van der Perk
ecc5154a44
Reflect dynamically allocate block pointers instead of using heap
2021-05-03 14:04:02 -04:00
David Sidrane
cd2aceb363
stm32_common:board_reset Fix reboot -b broke by canbootloader
2021-05-03 05:21:25 -07:00
Silvan Fuhrer
2c6b3eeb02
Navigator: NAV_CMD_DO_VTOL_TRANSITION: accept once in correct vtol state
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2021-05-03 08:40:54 +02:00
Silvan Fuhrer
5579a1d789
Navigator: remove WORK_ITEM_TYPE_CMD_BEFORE_MOVE
...
It was used to make the vehicle needing to accept the waypoint after a VTOL transition in the new VTOL mode
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2021-05-03 08:40:54 +02:00
Silvan Fuhrer
3c4b0c1b8c
tiltrotor: only allow increasing tilt during first part of transition
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2021-05-02 21:51:09 -04:00
Jukka Laitinen
fa9fdce6e6
sensors/vehicle_gps_position: Fix raw_dt and present_dt calculation in gps_blending
...
If the GPS data is passed from companion computer, there may be inaccuracies
with timesync. This may cause time deltas to overflow.
Make the time delta calculation using floats directly, wich results in negative
numbers in case there are such inaccuracies.
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae >
2021-05-02 13:59:50 -04:00
Daniel Agar
e78a4287f9
parameters: attempt import multiple times
2021-05-02 13:48:16 -04:00
Daniel Agar
3b24abaa1b
Makefile: clean use git clean to delete all gitignore files recursively
2021-05-02 13:47:54 -04:00
Daniel Agar
feebb24106
logger: skip multi-EKF logging if CONSTRAINED_MEMORY
2021-05-02 13:47:28 -04:00
Femtomes
783a780207
drivers/gps: add femtomes gps driver protocol
2021-05-02 13:46:39 -04:00
Julian Oes
abee13df1a
mavlink: improve rx stats printf
2021-05-02 13:45:39 -04:00
Julian Oes
d96ba2d88a
mavlink: use 4s for HITL
...
This is more inline with SITL.
2021-05-02 13:45:39 -04:00
Julian Oes
e9a1599355
mavlink: clang-tidy fix
2021-05-02 13:45:39 -04:00
Julian Oes
aa0752ad86
mavlink: fix pthread usage
2021-05-02 13:45:39 -04:00
Julian Oes
5784f1d951
mavlink: add detailed stats about rx messages
2021-05-02 13:45:39 -04:00
Julian Oes
370d9ee409
mavlink: use px4::atomic instead of volatile
2021-05-02 13:45:39 -04:00
Julian Oes
4498509426
mavlink: move thread handling into MavlinkReceiver
...
In my opinion this makes it much cleaner and will allow mavlink main to
directly call the receiver.
2021-05-02 13:45:39 -04:00
Julian Oes
71bd35fcaa
mavlink: keep track of seq for any component
...
Instead of only keeping track of the sequence ID of specific "supported"
components, we now keep track of any sysid/compid of an incoming
message. Before this change, unknown components (such as jMAVSim) would
completely screw up the mavlink message stats and create confusion (at
least in my case).
With this change we currently keep track of up to 8 other components.
Once we reach the limit, we will print a warning.
2021-05-02 13:45:39 -04:00
Julian Oes
6ae23e7b7b
mavlink: fix HITL battery status publication
...
Without these fields the pre-arm check would complain and fail.
Also, the voltage is adjusted to be at around 70% rather than 30% which
would almost start to trigger warnings.
2021-05-02 13:45:39 -04:00
Julian Oes
cfcc074e9d
mavlink: remove unused methods
2021-05-02 13:45:39 -04:00
Daniel Agar
b4e0a8396e
Tools/process_sensor_caldata.py - median filter sensor data
...
- this makes it a bit easier to see what's going on now that the raw sensor data (sensor_accel, sensor_gyro) is completely unfiltered
2021-05-02 13:42:09 -04:00
Daniel Agar
5ec5a12f5e
Tools/setup: update ubuntu.sh with current NuttX dependencies
2021-05-02 13:10:47 -04:00
TSC21
18dc0e4900
update submodule micro-CDR
2021-05-02 13:05:16 -04:00
Daniel Agar
6e2343a485
Jenkins: fix new px4io/px4-dev-nuttx-focal container tag
2021-05-02 12:34:48 -04:00
SalimTerryLi
514d4fd57b
drivers/distance_sensor: GY-SR04 sonar range finder driver
2021-05-02 12:09:35 -04:00
PX4 BuildBot
32d354e5fe
Update submodule ecl to latest Sun May 2 12:39:08 UTC 2021
...
- ecl in PX4/Firmware (cb999f37d4891ebfbbc21b4ce9b3851888b39ad4): https://github.com/PX4/PX4-ECL/commit/5d34d7a24ef72b826c320a3259ee0ec68b1936df
- ecl current upstream: https://github.com/PX4/PX4-ECL/commit/a7b8afe420f438554ad90bcba0f1f4872325e75b
- Changes: https://github.com/PX4/PX4-ECL/compare/5d34d7a24ef72b826c320a3259ee0ec68b1936df...a7b8afe420f438554ad90bcba0f1f4872325e75b
a7b8afe 2021-04-30 Eike - Allow rangefinder fusion in vision height mode (Fix for #994 ) (#999 )
4ac57d3 2021-04-25 Daniel Agar - EKF: increase fault flags value size to fit current flag bits (> 16)
2021-05-02 11:47:36 -04:00
Daniel Agar
92dc1a71a6
github actions delete MAVROS avoidance tests
...
- these aren't currently running properly on github actions, but continue to use build resources
2021-05-02 11:44:06 -04:00
Daniel Agar
165420598e
Update submodule mavlink v2.0 to latest Sat May 1 00:38:27 UTC 2021
2021-05-01 19:17:28 -04:00
PX4 BuildBot
8ef10c9b38
Update submodule public_regulated_data_types to latest Sat May 1 12:41:36 UTC 2021
...
- public_regulated_data_types in PX4/Firmware (bb5225ddae32f3a85f6c01fa5957f1b30cb73a14): https://github.com/UAVCAN/public_regulated_data_types/commit/309b251a7e8d713d6bf428e18e28d91d5f07b73e
- public_regulated_data_types current upstream: https://github.com/UAVCAN/public_regulated_data_types/commit/1337b1c86fee5bd3f3c3c0f1027bcf19e5c08aae
- Changes: https://github.com/UAVCAN/public_regulated_data_types/compare/309b251a7e8d713d6bf428e18e28d91d5f07b73e...1337b1c86fee5bd3f3c3c0f1027bcf19e5c08aae
1337b1c 2021-04-23 Pavel Kirienko - Update the `nominal_voltage` in battery parameters (#114 )
2021-05-01 19:17:02 -04:00
PX4 BuildBot
199db72d5f
Update submodule public_regulated_data_types to latest Sat May 1 12:41:39 UTC 2021
...
- public_regulated_data_types in PX4/Firmware (d052cf4a6963d576e0e108b6c95b6fa4fab57584): https://github.com/UAVCAN/public_regulated_data_types/commit/309b251a7e8d713d6bf428e18e28d91d5f07b73e
- public_regulated_data_types current upstream: https://github.com/UAVCAN/public_regulated_data_types/commit/1337b1c86fee5bd3f3c3c0f1027bcf19e5c08aae
- Changes: https://github.com/UAVCAN/public_regulated_data_types/compare/309b251a7e8d713d6bf428e18e28d91d5f07b73e...1337b1c86fee5bd3f3c3c0f1027bcf19e5c08aae
1337b1c 2021-04-23 Pavel Kirienko - Update the `nominal_voltage` in battery parameters (#114 )
2021-05-01 19:16:42 -04:00
mcsauder
4eb758edf0
Alphabetize flight_mode_manager CMakeLists.txt list, and group/format types in FlightTask.cpp/hpp.
2021-05-01 10:46:27 -04:00
Yannick Fuhrer
759a60ac82
Update rc.vtol_defaults
...
based on our experience with VTOL it makes sense to change the yaw mode default. You always want your VTOL to yaw in transition direction before starting the transition.
2021-05-01 10:45:14 -04:00
PX4 BuildBot
dd0465070c
Update submodule jMAVSim to latest Sat May 1 12:41:22 UTC 2021
...
- jMAVSim in PX4/Firmware (d2a118ee86 ): https://github.com/PX4/jMAVSim/commit/358b6cca4093646eb96e0cb075e45efa8f4a0c48
- jMAVSim current upstream: https://github.com/PX4/jMAVSim/commit/2b610caab81726ab79019de0f2fa8cff5e341bd5
- Changes: https://github.com/PX4/jMAVSim/compare/358b6cca4093646eb96e0cb075e45efa8f4a0c48...2b610caab81726ab79019de0f2fa8cff5e341bd5
2b610ca 2021-04-21 Julian Oes - Merge pull request #126 from PX4/pr-forwarding
75f2aa3 2021-04-21 Julian Oes - Serial/TCP/UDP ports: mark messages as forwarded
2021-05-01 10:31:43 -04:00
Daniel Agar
186bc2bda4
Update submodule GPSDrivers to latest Sat May 1 00:38:31 UTC 2021
2021-05-01 10:31:09 -04:00
PX4 BuildBot
d2a118ee86
Update submodule sitl_gazebo to latest Sat May 1 00:38:24 UTC 2021
...
- sitl_gazebo in PX4/Firmware (283138e87d46e573ce101033e01a59b273430928): https://github.com/PX4/PX4-SITL_gazebo/commit/05e2cd9c03ffa77f0c0d5bd3e788d33e06480b25
- sitl_gazebo current upstream: https://github.com/PX4/PX4-SITL_gazebo/commit/4c27fc7dd659c262257abeea2308e2f1c54e9029
- Changes: https://github.com/PX4/PX4-SITL_gazebo/compare/05e2cd9c03ffa77f0c0d5bd3e788d33e06480b25...4c27fc7dd659c262257abeea2308e2f1c54e9029
4c27fc7 2021-04-20 JaeyoungLim - Update mavsdk versions for firmware SITL tests (#741 )
2021-04-30 21:04:25 -04:00
David Sidrane
92344b96b3
CI Update to 2021-04-29
2021-04-30 14:32:40 -04:00
Julian Oes
4f52c0b6da
mavsdk_tests: unused var and index fix
2021-04-29 21:08:33 -04:00
Julian Oes
f16913c175
mavsdk_tests: fix timeout at 1x speed
2021-04-29 21:08:33 -04:00
Julian Oes
e7fcfbf658
mavsdk_tests: use global position instead of local
...
We are currently not testing with flow only anyway, so we might as well
remove this for now.
2021-04-29 21:08:33 -04:00
Julian Oes
43fccece61
mavsdk_tests: check installed version
...
Starting with MAVSDK 0.39.0 we can specify the version required. This
way we can fail at configure time instead of later during compilation or
linking.
2021-04-29 21:08:33 -04:00
Julian Oes
14e51098e5
workflows: use MAVSDK_VERSION in sitl_tests
2021-04-29 21:08:33 -04:00
Julian Oes
7384bd2675
mavsdk_tests: specify required MAVSDK version
...
This way it can be better picked up by CI scripts.
2021-04-29 21:08:33 -04:00
Daniel Agar
64688b04d8
boards: mro pixracerpro set BOARD_SUPPORTS_RC_SERIAL_PORT_OUTPUT instead of RC_SERIAL_SINGLEWIRE
2021-04-29 21:06:39 -04:00
Peter van der Perk
96bc58f0eb
CMake Bloaty add static ram usage breakout
2021-04-29 10:16:43 -04:00
TSC21
4f098a01bc
drivers: protocol_splitter: some style updates
2021-04-29 11:57:35 +02:00
Jari Nippula
9980d2a556
Utilize header struct instead of control bytes directly
2021-04-29 09:37:48 +02:00
Jari Nippula
757f1df068
Protocol_splitter: 4-byte header with checksum
2021-04-29 09:37:48 +02:00
korotkoves
d62204856c
ROMFS/px4fmu_common/init.d-posix/rcS: split and source data from files in PATH
2021-04-28 09:00:47 +02:00
CUAVcaijie
b898aabfed
Fix the repeated configuration of PWM rate after initialization
2021-04-28 00:22:07 +02:00
Kalyan Sriram
b2d73dca26
uavcan_v1: cmake: nunavut generation message
2021-04-27 10:30:33 -04:00
Kalyan Sriram
925213db8f
requirements: bump nunavut minimum version
2021-04-27 10:30:33 -04:00
Beat Küng
38c1ec6a9c
ekf2: check if ChangeInstance succeeded
2021-04-27 10:29:09 -04:00
Beat Küng
0a98c5a7f4
Subscription: fix ChangeInstance
2021-04-27 10:29:09 -04:00
Beat Küng
1a89f165fd
fix bmi088: set correct accel scale
...
This affected the clipping limit, which was set too low
2021-04-27 10:27:57 -04:00
RomanBapst
171c26373b
land_detector: robustify land detection by using distance to ground info
...
- if distance to the ground is available then hysteresis times will be increased
by a factor of 3 if vehicle is higher than 1m above ground
Signed-off-by: RomanBapst <bapstroman@gmail.com >
2021-04-27 08:19:19 +02:00
RomanBapst
f6a34e1e80
vtol_type: reset accel to pitch integrator
...
Signed-off-by: RomanBapst <bapstroman@gmail.com >
2021-04-27 07:43:38 +03:00
Alex Mikhalev
cbf34109d1
paw3902: Default to using SENS_FLOW_ROT rotation
...
This restores the behavior to what it was previous to #16338 (74083d6 ).
Signed-off-by: Alex Mikhalev <alex@corvus-robotics.com >
2021-04-26 15:14:17 -04:00
Daniel Agar
c266c3e43a
parameters: remove unnecessary param_get_system_default_value() locking
2021-04-26 09:49:15 +02:00
benjinne
3664d9e4ce
rover: publish actuator controls with rate of gyro
...
Some ESC's with DShot don't initialize otherwise (as the 200Hz of the vehicle attitude rate is too low).
2021-04-26 08:53:20 +02:00
JacobCrabill
cc81c7d49e
poor-mans-profiler: Add documentation
...
Now sets the GDB serial device to the path of a DroneCode Probe by
default, with option command-line option override.
A few usage instructions added to the top of the file.
2021-04-26 08:47:49 +02:00
Daniel Agar
6e9e503ee6
sensors/vehicle_imu: accel clipping warning minor improvements
...
- no warning if accel is disabled
- threshold increased 100 -> 1000 (only warn if severe ongoing clipping)
- more generic warning message (vehicle isn't necessarily in air flying)
2021-04-25 17:03:43 -04:00
Daniel Agar
8478d1ea37
sensors/vehicle_angular_velocity: properly handle filter reset on FIFO data scale changes
...
For the sake of efficiency (at 8 kHz) all filtering is performed on the raw data before the calibration and rotation is applied to only the final output. As a result we have to be a bit more careful when switching between sensors or in cases where the gyro scale factor changes (eg icm42688p 20 bit data rescaled to fit in int16 output).
2021-04-25 14:20:32 -04:00
Daniel Agar
ed0fa99198
icm42688p: limit to 8 kHZ for now
2021-04-24 20:23:19 -04:00
Daniel Agar
59b70a881d
commander: temporarily increase worker thread stack substantially
2021-04-23 22:13:12 -04:00
Matthias Grob
5416679735
check_code_style_all.sh: remove ignored xargs parameter
...
to suppress the warning message:
`xargs: warning: options --max-args and --replace/-I/-i are mutually exclusive, ignoring previous --max-args value`
when running make format.
2021-04-23 22:09:16 -04:00
Matthias Grob
6df299738e
FlightTask: reactivate tasks on ground with empty setpoint
...
Such that they properly reset and don't try to take over smoothly from
their own setpoints generated in the last loop iteration.
2021-04-23 21:57:27 -04:00
Matthias Grob
9e2375ab91
FlightTaskManualAcceleration: change reset order, check all components for NAN
...
Just cleanup and completeness.
2021-04-23 21:57:27 -04:00
Matthias Grob
5e75f17680
StickAccelerationXY: fix acceleration reset using x component instead of y
...
This entire feature only has an impact if the last mode set
a huge acceleration and we have to take over as smooth as possible.
But it's stil lworth fixing.
2021-04-23 21:57:27 -04:00
Matthias Grob
fee4728b1f
StickAccelerationXY: change function name feasibility limit -> jerk limit
...
for clarity because it's more accurate.
2021-04-23 21:57:27 -04:00
Daniel Agar
c71a228f15
Tools/setup: macos use pip as python3 module
2021-04-23 16:47:49 -04:00
bazooka joe
112fc5c9cd
log battery status every 0.2sec instead of 0.3sec
...
Battery status is logged every 0.3Sec.
but BMS data published every 0.25Sec, so there are many drops of data.
2021-04-23 16:46:02 -04:00
Beat Küng
51f527d845
param: update 'param show-for-airframe' to use set-default
2021-04-23 16:44:55 -04:00
Beat Küng
1730cd1971
param: avoid warning for 'param show -c' or 'param show -a'
2021-04-23 16:44:55 -04:00
Igor Mišić
d631a5d39f
Commander: checking COM_ARM_CHK_ESCS param for ESCs telemetry
...
COM_ARM_CHK_ESCS set to 0. The user will need to enable it manually.
Co-authored-by: Beat Küng <beat-kueng@gmx.net >
2021-04-22 13:46:08 +02:00
Claudio Micheli
bff99f9794
Commander:esc_checks minor improvements
...
Signed-off-by: Claudio Micheli <claudio@auterion.com >
2021-04-22 13:46:08 +02:00
Claudio Micheli
371fa98579
Commander/preflight checks: Add monitoring to ESC failures
...
Signed-off-by: Claudio Micheli <claudio@auterion.com >
2021-04-22 13:46:08 +02:00
Thies Lennart Alff
1c624d20f5
srcparser support for vectored 6 dof uuv airframe added
2021-04-22 08:30:11 +02:00
Matthias Grob
789d91900d
commander_params: lower COM_DISARM_PRFLT but disable for fixed-wing
2021-04-21 14:55:04 +02:00
Daniel Agar
f9d8c613b0
px4_work_queue: increase nav_and_controllers stack
2021-04-21 07:34:13 +02:00
Peter van der Perk
8b3aa46c01
[UAVCANv1] Publisher default timeout, has to be tuned further for all publishers
2021-04-20 21:44:40 +02:00
Peter van der Perk
1804cea92c
[UAVCANv1] TX deadline fix and other fixes
2021-04-20 21:44:40 +02:00
Peter van der Perk
02a4d93c74
[UAVCANv1] snprintf and cleanup ram usage ~4KB
2021-04-20 21:44:40 +02:00
Peter van der Perk
399815469f
[UAVCANv1] Subscriber multi topic subscription
...
reg.drone.bms full support
legacy.equipment.bms support
2021-04-20 21:44:40 +02:00
Matthias Grob
5e7ebbe47c
FlightTask: correct comment about setpoints
2021-04-20 18:18:21 +02:00
Matthias Grob
45ada2dd4c
MulticopterLandDetector: remove unnecessary newline
2021-04-20 18:18:21 +02:00
Matthias Grob
4865d027f9
StickAccelerationXY: factor in stricter tilt limit on takeoff
2021-04-20 18:18:21 +02:00
Matthias Grob
29e07b1e52
MulticopterPositionControl: publish stricter tilt limit during takeoff
2021-04-20 18:18:21 +02:00
Matthias Grob
ff67da1bb4
SlewRate: add getter for current state without update
2021-04-20 18:18:21 +02:00
Lorenz Meier
3d8a35288e
Rename Snapdragon Spektrum RC
...
The previous name was confusing because it did not clarify that this driver was specific to the Snapdragon platform.
2021-04-18 18:35:03 +02:00
Daniel Agar
38bc46fd1a
re-add RC_MAP_RATT_SW (unused) and mark active for QGC
2021-04-16 13:07:02 -04:00
mcsauder
3b72f3b641
Create publish_status() method in the heater driver, add a status field to indicate if the temperature setpoint has been met within 2.5C, breakout update_params() method from the Heater::Run() method and simplify logic.
2021-04-16 08:09:51 -04:00
benjinne
3dad16bc40
RTPS client remove redundant baudrate check
2021-04-16 14:01:27 +02:00
benjinne
42108eb4af
Fix microRTPS_client_main.cpp format
2021-04-16 14:01:27 +02:00
benjinne
76e15b4a21
RTPS client get baudrate parameter if requested, and mark the device baud rate parameter as used so it shows up in QGC
2021-04-16 14:01:27 +02:00
Daniel Agar
2492fb35e4
rc_update: require consecutive valid input_rc before publishing
2021-04-15 16:40:54 -04:00
PX4 BuildBot
96c7fe4978
Update submodule matrix to latest Thu Apr 15 12:39:10 UTC 2021
...
- matrix in PX4/Firmware (501b463b36b07481181c15b734861704d9f27020): https://github.com/PX4/PX4-Matrix/commit/1d0e7f1ca1187c90c70a9dac92ca6294a320b1d3
- matrix current upstream: https://github.com/PX4/PX4-Matrix/commit/b8568a89db8455d0ab2e2e391e2149ba2e5e10dd
- Changes: https://github.com/PX4/PX4-Matrix/compare/1d0e7f1ca1187c90c70a9dac92ca6294a320b1d3...b8568a89db8455d0ab2e2e391e2149ba2e5e10dd
b8568a8 2021-04-14 Daniel Agar - Euler: improve quaternion constructor
2021-04-15 13:27:07 -04:00
Daniel Agar
5c4582ccce
rc: dsm allow full range
2021-04-15 18:27:33 +02:00
Igor Mišić
bd4839e855
commander: changed msg "connection to GCS lost" from critical to info
...
update
2021-04-15 11:29:02 -04:00
Beat Küng
2219e096d7
cmake: embed param metadata if not CONSTRAINED_FLASH and not "test" LABEL
2021-04-15 08:16:51 +02:00
PX4 BuildBot
592dc65bae
Update submodule matrix to latest Thu Apr 15 00:39:06 UTC 2021
...
- matrix in PX4/Firmware (d9ebf2a842f611976d7ba5078d3f31ad8cde55a7): https://github.com/PX4/PX4-Matrix/commit/3679f7fd5160c7d2a8271b1134ca1e601f1a4254
- matrix current upstream: https://github.com/PX4/PX4-Matrix/commit/1d0e7f1ca1187c90c70a9dac92ca6294a320b1d3
- Changes: https://github.com/PX4/PX4-Matrix/compare/3679f7fd5160c7d2a8271b1134ca1e601f1a4254...1d0e7f1ca1187c90c70a9dac92ca6294a320b1d3
1d0e7f1 2021-04-14 Daniel Agar - Matrix: use naive per element copy instead of memcpy call
1344ce0 2021-04-14 Daniel Agar - Euler: simplify DCM constructor
2021-04-14 23:11:41 -04:00
Jukka Laitinen
b99e597a73
flashparams: Fix a null-pointer dereference crash
...
Fix a potential crash caused by calling erase_sector with a null
sector_descriptor (current_sector == 0).
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae >
2021-04-14 07:55:33 -07:00
Daniel Agar
58b40fbbb9
boards: move testing to dedicated test variants
2021-04-14 09:21:31 +02:00
Daniel Agar
047fb13922
IMU_GYRO_RATEMAX: enforce reasonable constraint and update metadata
2021-04-13 20:26:57 -04:00
Barcis, Michal
7053919a9f
fixed micrortps_agent usage description
2021-04-13 21:28:27 +02:00
Daniel Agar
2d15c96b9b
ekf2: Multi-EKF let new instance schedule itself immediately on successful init
...
- this is to minimize missed sensor data (and unnecessary error output) between EKF2 construction and once it actually starts running
2021-04-13 14:24:46 -04:00
Daniel Agar
6a4c589c62
examples/work_item: add ModuleParams and more uORB::Subscription example usage
2021-04-13 14:23:36 -04:00
Lorenz Meier
bf09089a26
PWM out: Collect settings for all outputs
...
There are settings that have to be the same for a split output across multiple instances, like for example the PWM mask and rate configurations. This change collects them for all outputs of the same underlying driver structure and applies the complete set.
2021-04-13 18:39:27 +02:00
Lorenz Meier
6bc11596fe
VTOL mixer: Correct alt rate channels
...
The baby shark config did mark main rate outputs (50 Hz) as alt rate, resulting in the alt rate being set to 50 Hz.
2021-04-13 18:39:27 +02:00
Daniel Agar
aa22407d87
drivers/pwm_out: only print rates if changed
2021-04-13 09:55:21 +02:00
Daniel Agar
a07bccc046
boards: modalai simplify defaults with new parameter defaults mechanism (AUTOCNF replacement)
2021-04-12 21:27:53 -04:00
Daniel Agar
f44f497e3f
parameters: better handle export failures and retry
2021-04-12 21:26:50 -04:00
Daniel Agar
edc445a1b2
parameters: tinybson fill total document length for bson compatibility
2021-04-12 21:26:50 -04:00
PX4 BuildBot
b9e0a16594
Update submodule public_regulated_data_types to latest Mon Apr 12 12:45:35 UTC 2021
...
- public_regulated_data_types in PX4/Firmware (9101f5707a251c33048289249bd565eba5d3a848): https://github.com/UAVCAN/public_regulated_data_types/commit/53a7dbbf85554e11517c13ad91b9efb871599ad1
- public_regulated_data_types current upstream: https://github.com/UAVCAN/public_regulated_data_types/commit/309b251a7e8d713d6bf428e18e28d91d5f07b73e
- Changes: https://github.com/UAVCAN/public_regulated_data_types/compare/53a7dbbf85554e11517c13ad91b9efb871599ad1...309b251a7e8d713d6bf428e18e28d91d5f07b73e
309b251 2021-04-11 Peter van der Perk - reg.drone Battery parameters add nominal voltage (#113 )
2021-04-12 19:51:35 -04:00
Lorenz Meier
991c07eef9
Global: Allow users to arm with USB
...
This change reflects the medium-term experience with users using USB as data link or power source in R&D setups. While we still discourage this for volume products, not allowing it seems like a major hurdle and blocker in R&D setups.
2021-04-12 19:11:22 -04:00
Lorenz Meier
3a004ffd68
PWM Out: Simplify startup logic
...
The simpler logic is more robust towards future refactoring.
2021-04-12 19:11:22 -04:00
PX4 BuildBot
5f6b8fcb9f
Update submodule sitl_gazebo to latest Mon Apr 12 12:45:32 UTC 2021
...
- sitl_gazebo in PX4/Firmware (8acdb8ca3f ): https://github.com/PX4/PX4-SITL_gazebo/commit/5761bd66cd36ded2d0dccf8127e30a1522fe1ac6
- sitl_gazebo current upstream: https://github.com/PX4/PX4-SITL_gazebo/commit/05e2cd9c03ffa77f0c0d5bd3e788d33e06480b25
- Changes: https://github.com/PX4/PX4-SITL_gazebo/compare/5761bd66cd36ded2d0dccf8127e30a1522fe1ac6...05e2cd9c03ffa77f0c0d5bd3e788d33e06480b25
05e2cd9 2021-04-10 Manuel Galliker - Removed unused computation of CoG (#737 )
2021-04-12 14:22:14 -04:00
Daniel Agar
f0f16b9cc5
mavlink: streams fix SCALED_IMU size reporting
2021-04-12 13:02:10 -04:00
Beat Küng
faaee0f077
fix pwm_out: avoid race condition when setting mode
...
Bootup failed in some cases with:
ERROR [mixer] can't reset mixers on /dev/pwm_output1
The reason was the mode change was not applied yet.
2021-04-12 18:39:51 +02:00
PX4 BuildBot
18f17dcb96
Update submodule public_regulated_data_types to latest Mon Apr 12 12:45:37 UTC 2021
...
- public_regulated_data_types in PX4/Firmware (9f25ac4175fd81259b11cfe79f0f875a21562d3d): https://github.com/UAVCAN/public_regulated_data_types/commit/53a7dbbf85554e11517c13ad91b9efb871599ad1
- public_regulated_data_types current upstream: https://github.com/UAVCAN/public_regulated_data_types/commit/309b251a7e8d713d6bf428e18e28d91d5f07b73e
- Changes: https://github.com/UAVCAN/public_regulated_data_types/compare/53a7dbbf85554e11517c13ad91b9efb871599ad1...309b251a7e8d713d6bf428e18e28d91d5f07b73e
309b251 2021-04-11 Peter van der Perk - reg.drone Battery parameters add nominal voltage (#113 )
2021-04-12 09:58:48 -04:00
Silvan Fuhrer
381c97d3c6
Commander: baro check: only report failure of mandatory instances
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2021-04-12 09:27:12 -04:00
tututu123-tu
8acdb8ca3f
Update .gitmodules
2021-04-12 08:18:16 -04:00
CUAVmengxiao
45b9e18195
UAVCANv0: add CUAV smart battery support
2021-04-11 21:27:31 -04:00
David Sidrane
96d0755afd
NuttX with SDMMC Backport
2021-04-09 15:53:26 -04:00
Tarik Agcayazi
1520805a20
README: remove redundant autogyro, add High altitude balloons
2021-04-09 08:48:17 +02:00
Daniel Agar
39c96a8884
gps add device_id
2021-04-08 08:27:07 +02:00
Alex Mikhalev
1f4960d480
boards: cubeorange enable pwm_input
...
Signed-off-by: Alex Mikhalev <alex@corvus-robotics.com >
2021-04-07 21:34:44 -04:00
alexklimaj
0c3e64a7f5
Fix support for Cube Black Heater
2021-04-07 10:23:02 -04:00
benjinne
9b7eae4043
rc: enable crsf and ghst telemetry on supported boards
...
Co-authored-by: Benjamin Linne <benjamin.linne.civ@mail.mil >
2021-04-07 08:51:49 +02:00
Hamish Willee
6fbb409e43
Param markdown - fix sensor param table
2021-04-07 08:46:11 +02:00
alessandro
b46e505b0d
Handle velocity fields in follow_target message
...
The mavlink message FOLLOW_TARGET has additional
fields that are not being parsed here. See
https://mavlink.io/en/messages/common.html#FOLLOW_TARGET
for more details.
2021-04-06 22:11:23 -04:00
Hamish Willee
aa94a60043
COM_ARM_WO_GPS - values round the wrong way
2021-04-06 22:10:02 -04:00
obicons
a7e920d276
Updated MavlinkReceiver::handle_message_landing_target to warn users when they provide a landing target with an unsupported coordinate frame.
...
Updated Simulator::handle_message_landing_target to warn users when they provide a landing target that is not relative to a captured image.
2021-04-06 16:02:54 -04:00
Daniel Agar
31b9efdaeb
sensors/vehicle_imu: increase threshold for clipping warning
2021-04-06 15:42:26 -04:00
Daniel Agar
f33fee99c1
ROMFS: init.d-posix/airframes migrate EKF2_GPS_MASK -> SENS_GPS_MASK
2021-04-06 13:48:40 -04:00
Julian Oes
bb0fe9ee61
mavsdk_tests: losen time limit for VTOL mission
2021-04-06 11:35:18 -04:00
Julian Oes
2eaf677de3
mavsdk_tests: correctly locate plan
2021-04-06 11:35:18 -04:00
Julian Oes
cd66a79747
mavsdk_tests: move waypoints to vehicle position
...
This way it shouldn't matter where the test is run.
2021-04-06 11:35:18 -04:00
Julian Oes
9eadabcb02
sitl_tests: update MAVSDK to v0.38.0
2021-04-06 11:35:18 -04:00
Julian Oes
d714c2faec
mavsdk_tests: add VTOL mission tests
...
This adds VTOL mission tests to the CI integration tests.
This depends on MAVSDK v0.38.0.
2021-04-06 11:35:18 -04:00
Julian Oes
1e88939605
mavsdk_tests: report speed factor every second
...
This helps in debugging slow CI.
2021-04-06 11:35:18 -04:00
Daniel Agar
e05a4badf8
ROMFS: rcS start uavcan earlier
...
- starting this earlier is a minor improvement for things like lights and buzzers on UAVCAN or parameter sync over mavlink
2021-04-06 09:48:11 -04:00
Daniel Agar
4189eb11f5
simulator: GPS populate all sensor_gps fields (alt_ellipsoid, etc)
2021-04-06 09:44:18 -04:00
Daniel Agar
015849b402
mathlib: LowPassFilter2p and NotchFilter add magnitude response getter
2021-04-05 22:47:30 -04:00
Daniel Agar
f9460107d0
cleanup PWM param naming inconsistencies
2021-04-05 22:41:06 -04:00
PX4 BuildBot
f741606c60
Update submodule sitl_gazebo to latest Tue Apr 6 00:39:03 UTC 2021
...
- sitl_gazebo in PX4/Firmware (2a0a747598 ): https://github.com/PX4/PX4-SITL_gazebo/commit/e703e2726a4cd82cf3c57614e9c33d6354310885
- sitl_gazebo current upstream: https://github.com/PX4/PX4-SITL_gazebo/commit/5761bd66cd36ded2d0dccf8127e30a1522fe1ac6
- Changes: https://github.com/PX4/PX4-SITL_gazebo/compare/e703e2726a4cd82cf3c57614e9c33d6354310885...5761bd66cd36ded2d0dccf8127e30a1522fe1ac6
5761bd6 2021-04-05 Jaeyoung-Lim - Switch tailsitter sdf version to 1.6
2021-04-05 22:28:47 -04:00
Daniel Agar
436a6fce38
Update submodule mavlink v2.0 to latest Tue Apr 6 00:39:07 UTC 2021
2021-04-05 22:28:10 -04:00
PX4 BuildBot
997abf382d
Update submodule public_regulated_data_types to latest Tue Apr 6 00:39:10 UTC 2021
...
- public_regulated_data_types in PX4/Firmware (5e242d366f2e266e8226f7baa33e5973783e2045): https://github/commit/7f5489e6e916cc8b13db0582dcf9930e225594b9
- public_regulated_data_types current upstream: https://github/commit/53a7dbbf85554e11517c13ad91b9efb871599ad1
- Changes: https://github/compare/7f5489e6e916cc8b13db0582dcf9930e225594b9...53a7dbbf85554e11517c13ad91b9efb871599ad1
53a7dbb 2021-03-31 Pavel Kirienko - Change wording in uavcan.pnp.NodeIDAllocationData to reflect the less static nature of UAVCAN v1 (#111 )
c3aa82f 2021-03-23 Pavel Kirienko - Update Readiness as discussed at the DS-015 call
fcc1062 2021-03-16 Pavel Kirienko - Doc amendment for uavcan.register.Access: mapping between registers and environment variables (#109 )
342f358 2021-02-22 Pavel Kirienko - Remove misleading comment in battery.Status.0.2
1baa9cb 2021-02-22 Pavel Kirienko - Add link to Nunaweb and synchronize the description with the front page (#108 )
2021-04-05 21:23:06 -04:00
Benjamin Linne
2a0a747598
boards: modalai-fc-v1 add rtps.cmake add to ci
2021-04-05 17:01:35 -04:00
Benjamin Linne
a1bc520df8
boards: modalai-fc-v1 add rtps.cmake add to ci
2021-04-05 17:01:35 -04:00
Benjamin Linne
3261118538
boards: modalai-fc-v1 add rtps.cmake
2021-04-05 17:01:35 -04:00
Daniel Agar
54438140e1
ROMFS: posix airframes update to new parameter defaults mechanism (AUTOCNF replacement)
2021-04-05 15:29:34 -04:00
Daniel Agar
565c644b2e
boards: CUAV keep Nora and X7pro in sync
2021-04-05 12:54:41 -04:00
Daniel Agar
695adbc037
Jenkins: hardware skip AUTOCNF, don't force px4io update, show configured parameters
2021-04-05 12:30:55 -04:00
Daniel Agar
357b322eb5
ROMFS: tune_control stop if px4io update fails
2021-04-05 11:49:55 -04:00
PX4 BuildBot
74e848d57e
Update submodule public_regulated_data_types to latest Mon Apr 5 12:40:16 UTC 2021
...
- public_regulated_data_types in PX4/Firmware (1557f3a23461a144dd75edae4595665e5684597d): https://github.com/UAVCAN/public_regulated_data_types/commit/7f5489e6e916cc8b13db0582dcf9930e225594b9
- public_regulated_data_types current upstream: https://github.com/UAVCAN/public_regulated_data_types/commit/53a7dbbf85554e11517c13ad91b9efb871599ad1
- Changes: https://github.com/UAVCAN/public_regulated_data_types/compare/7f5489e6e916cc8b13db0582dcf9930e225594b9...53a7dbbf85554e11517c13ad91b9efb871599ad1
53a7dbb 2021-03-31 Pavel Kirienko - Change wording in uavcan.pnp.NodeIDAllocationData to reflect the less static nature of UAVCAN v1 (#111 )
c3aa82f 2021-03-23 Pavel Kirienko - Update Readiness as discussed at the DS-015 call
fcc1062 2021-03-16 Pavel Kirienko - Doc amendment for uavcan.register.Access: mapping between registers and environment variables (#109 )
342f358 2021-02-22 Pavel Kirienko - Remove misleading comment in battery.Status.0.2
1baa9cb 2021-02-22 Pavel Kirienko - Add link to Nunaweb and synchronize the description with the front page (#108 )
2021-04-05 11:26:01 -04:00
Daniel Agar
e8d98c1f8a
uavcan: skip beep if CBRK_BUZZER circuit breaker set
2021-04-05 11:25:37 -04:00
Daniel Agar
8e8826c516
Makefile: uorb_graphs exclude src/lib from graph_full
2021-04-05 11:03:43 -04:00
Daniel Agar
186e987efb
Jenkins: fetch all tags before generating Airframe & Parameter documentation (master only)
2021-04-05 09:51:18 -04:00
Daniel Agar
2e390009f0
Jenkins: fetch all tags before make documentation (master only)
2021-04-05 09:24:21 -04:00
Julian Oes
8720655683
sitl_gazebo: update submodule
...
This fixes the airspeed sensor orientation for tailsitter.
2021-04-05 14:14:31 +02:00
Silvan Fuhrer
8400f2c9bc
FW attitude controller: add protection against division by zero in airspeed scaling
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2021-04-04 21:22:28 -04:00
Beat Küng
436258c1c5
config: cleanup ethernet configuration
2021-04-04 21:20:36 -04:00
Daniel Agar
ad934b4911
icm20948 i2c passthrough driver for ak09916 magnetometer (Here+ GPS/compass)
...
- include icm20948 on most boards by default
- create more test variants for default boards near flash limit (cuav_nora_test, cuav_x7pro_test, holybro_durandal-v1_test)
2021-04-04 21:18:16 -04:00
Daniel Agar
c6a0161047
commander: COM_PREARM_MODE disable by default
2021-04-03 20:15:05 +02:00
Daniel Agar
bbf27d6960
boards: mro pixracerpro Add remaining SRAM4 & DTCM to heap
2021-04-03 14:13:23 -04:00
Daniel Agar
43da43ddc6
boards: cubepilot cubeorange Add remaining SRAM4 & DTCM to heap
2021-04-03 14:13:23 -04:00
Daniel Agar
fffa10ade4
boards: px4_fmu-v6u sync with other stm32h7 boards
2021-04-03 14:13:23 -04:00
Daniel Agar
825d81dd57
boards: px4_fmu-v6x sync with other stm32h7 boards
2021-04-03 14:13:23 -04:00
David Sidrane
dcfa3c97ba
px4 fmu-v6x:Add remaining SRAM4 & DTCM to heap
2021-04-03 14:13:23 -04:00
David Sidrane
38485a5d41
px4 fmu-v6u:Add remaining SRAM4 & DTCM to heap
2021-04-03 14:13:23 -04:00
David Sidrane
961bac759a
mro pixracerpro:Add remaining SRAM4 & DTCM to heap
2021-04-03 14:13:23 -04:00
David Sidrane
2f9a57c604
mro ctrl-zero-h7:Add remaining SRAM4 & DTCM to heap
2021-04-03 14:13:23 -04:00
David Sidrane
5c7a9204a2
mro ctrl-zero-h7-oem:Add remaining SRAM4 & DTCM to heap
2021-04-03 14:13:23 -04:00
David Sidrane
f63f1f3969
holybro durandal-v1:Add remaining SRAM4 & DTCM to heap
2021-04-03 14:13:23 -04:00
David Sidrane
55ed76522e
cuav x7pro:Add remaining SRAM4 & DTCM to heap
2021-04-03 14:13:23 -04:00
David Sidrane
df201342bb
cuav nora:Add remaining SRAM4 & DTCM to heap
2021-04-03 14:13:23 -04:00
David Sidrane
5e73fe588e
NuttX with SRAM4-heap-bp
2021-04-03 14:13:23 -04:00
Jaeyoung-Lim
01083cecfc
Enable adis16448 with parameter
...
This commit adds enabling adis16448 with a parameter
2021-04-03 13:58:25 -04:00
Nidhish Raj
01d8c3da3d
vtol_att_control: occasional tailsitter forward transition failure issue solved
...
Tailsitter VTOLs very occasionally gets stuck with zero roll and pitch angle in multicopter mode after
a forward transition command is issued.
This very rare behavior is triggered by the following events:
1> a forward transition is triggered either in auto or manual mode.
2> in the vtol_att_control main loop, if multicopter and fixed wing attitude setpoints are not updated, transition state is not updated
3> the commander changes the vehicle status to transition mode.
4> multicopter pos controller initiated Transition flight task. This results in zero roll and pitch setpoint due to zero acceleration setpoint
5> now vtol_att_control executes and updates the transition state. Specifically, _q_trans_start and _q_trans_sp are set with zero roll and pitch sp
6> tilt is evaluated to be NaN, despite _q_trans_sp being normalized. This happens for 25% of all yaw angles when using float datatype. This can be
verified using the matrix library
7> once tilt is evaluated to be NaN, _q_trans_sp is never updated again and is stuck in this state for ever.
This has been fixed by constraining the cos(tilt) within +1 to -1 range
Further, _q_trans_start and _q_trans_sp are immedietly initialized after a transition event is triggered.
2021-04-03 19:19:48 +02:00
Daniel Agar
b30f3917d3
sensors/vehicle_imu: periodically send mavlink critical message if clipping
2021-04-03 10:32:16 -04:00
Daniel Agar
588883f663
uavcan: quiet server output
...
- remove verbose UAVCAN command bridge prefix
- disable many normal PX4_INFO messages entirely (kept as PX4_DEBUG)
- properly exit when arming (silently)
2021-04-03 10:07:50 -04:00
David Sidrane
2fcdadfbd1
holybro_durandal-v1:Enable UAVCAN
2021-04-03 12:47:20 +02:00
David Sidrane
003ef59019
px4_fmu-v6x:Enable UAVCAN
2021-04-03 12:47:20 +02:00
Lorenz Meier
c96ca0434e
Update README.md
...
Sort autopilot generations according to relevance to potential users (latest first)
2021-04-03 12:21:02 +02:00
PX4 BuildBot
9a02141d0d
Update submodule ecl to latest Fri Apr 2 12:39:10 UTC 2021
...
- ecl in PX4/Firmware (744cd1182e183b62a0ab4b2f3e4e3c4aa6f5c15f): https://github.com/PX4/PX4-ECL/commit/6f2dec726adeedcb53aad9a77a8fcdfc8f7b3054
- ecl current upstream: https://github.com/PX4/PX4-ECL/commit/5d34d7a24ef72b826c320a3259ee0ec68b1936df
- Changes: https://github.com/PX4/PX4-ECL/compare/6f2dec726adeedcb53aad9a77a8fcdfc8f7b3054...5d34d7a24ef72b826c320a3259ee0ec68b1936df
5d34d7a 2021-03-31 Eike - Height source vision: Fallback to rangefinder if available (#994 )
da06f25 2021-03-28 PX4BuildBot - [AUTO COMMIT] update change indication
85fcf93 2021-03-28 PX4 BuildBot - Update geo_lookup WMM to latest Sun Mar 28 11:48:06 UTC 2021
2021-04-02 11:46:19 -04:00
Lorenz Meier
1ec8ce58c7
Commander: Increase auto-disarm timeout to 25 seconds after arming
2021-04-02 09:37:40 +02:00
Daniel Agar
278633c980
boards: cuav x7pro include correct adis IMU
2021-04-01 17:13:54 -04:00
Daniel Agar
c017f76a36
github actions add all NuttX builds
2021-04-01 10:21:14 -04:00
Lorenz Meier
82f319a84a
Commander: Add support for pairing via commandline
2021-04-01 09:56:09 -04:00
斯东Stone
e789124bd9
Remove duplicated line in 50003_aion_robotics_r1_rover
2021-04-01 09:36:20 -04:00
Beat Küng
369d375417
holybro_can-gps-v1_debug: disable ekf & listener due to flash overflow
2021-04-01 08:35:36 -04:00
Daniel Agar
9171a84324
IMU_DGYRO_CUTOFF increase default 10 -> 20 Hz
2021-04-01 08:30:09 -04:00
Jaeyoung-Lim
19c4fdd7c5
Add support for 3D body thrust setpoint for offboard attitude control
...
This adds support for filling up the 3D thrust setpoint using SET_ATTITUDE_TARGET message
Update mavlink submodule
2021-04-01 13:58:04 +02:00
Nico van Duijn
8d3335906a
v5x: use low bandwidth mavlink mode
...
This changes the default mavlink message set from onboard to
onboard_low_bandwidth, which drastically reduces the bandwidth required to get a
usable connection.
2021-04-01 07:28:43 +02:00
Daniel Agar
846695f986
ekf2: replace vehicle_imu lost error message with perf count
2021-03-31 22:07:32 -04:00
Daniel Agar
00f86eb895
drivers/uavcan: silence redundant exit message
2021-03-31 22:01:35 -04:00
Chris Lovett
292a66ce41
Add support for simulators running on a different host than the PX4 instance
2021-03-31 20:56:38 -04:00
RomanBapst
b66ae5f2d4
tecs: use raw inertial acceleration for true airspeed complementary filter
...
Signed-off-by: RomanBapst <bapstroman@gmail.com >
2021-03-31 20:12:40 -04:00
Beat Küng
9dd6bef7f9
autostart scripts: remove SYS_PARAM_VER
...
With the airframe defaults there's no use for that anymore
2021-03-31 20:12:05 -04:00
Beat Küng
aec63eacbe
mavlink_receiver: avoid spamming 'unsupported component id'
2021-03-31 20:10:15 -04:00
Matthias Grob
5f4802a239
SlewRate: add back dummy file for mac build
2021-03-31 15:50:16 +02:00
Matthias Grob
8fec39ad39
MulticopterPositionControl: readd takeoff ramp fix
...
added in #14821 and accidentally removed in #14665
2021-03-31 15:21:42 +02:00
Bastian Jäger
752bc9ebce
startup scripts: fix rc.mavlink_override
2021-03-31 14:05:24 +02:00
Julian Kent
5c5ec1a0ea
Receive telemetry_status, send vehicle_trajectory_waypoint_desired
2021-03-31 13:26:00 +02:00
Julian Kent
b5a64f957e
Update RTPS messages to match what is needed for PX4/Avoidance
2021-03-31 13:26:00 +02:00
Julian Kent
c1cb964c2a
RTPS timesync don't use MONOTONIC_RAW
2021-03-31 13:25:27 +02:00
Julian Kent
1011382098
Clamp RTPS -> uorb timestamps to system time
2021-03-31 13:25:27 +02:00
TSC21
eca4d90a91
init.d-posix: adjust COM_OBC_LOSS_T when using PX4_SIM_SPEED_FACTOR
2021-03-31 13:25:01 +02:00
TSC21
7abce87ae4
commander: add COM_OBC_LOSS_T for setting onboard computer loss time-out
2021-03-31 13:25:01 +02:00
Beat Küng
e9370c658a
nuttx cmake: include upload.cmake if it exists (same as on posix)
2021-03-31 11:25:11 +02:00
RomanBapst
5b08362ba3
position_controller_status message: added comments regarding NAN
...
Signed-off-by: RomanBapst <bapstroman@gmail.com >
2021-03-31 11:23:33 +02:00
Matthias Grob
c06b5a1de9
MulticopterPositionControl: improve tilt limit readability and scope
...
according to @bresch's review comment.
2021-03-31 10:03:08 +02:00
Matthias Grob
94469d84ae
MulticopterPositionControl: fix twitch on tilt limit relaxation
2021-03-31 10:03:08 +02:00
Matthias Grob
34a5948692
Adapt SlewRate includes to convention
2021-03-31 10:03:08 +02:00
Matthias Grob
c16b937221
Takeoff: switch internally to use a ramp progress
2021-03-31 10:03:08 +02:00
Matthias Grob
8ca76feaba
Takeoff: remove updateRamp() early return
2021-03-31 10:03:08 +02:00
Matthias Grob
b7600f4e4d
Commander: check_posvel_validity use return value
2021-03-30 22:33:01 -04:00
Matthias Grob
29e1e0905c
Commander: switch main_state functions to pass by reference
2021-03-30 22:33:01 -04:00
Matthias Grob
531de5c588
Commander: switch all state_machine_helper functions to pass by reference
2021-03-30 22:33:01 -04:00
Matthias Grob
d97fba67e5
Commander: switch helper functions to pass by reference
2021-03-30 22:33:01 -04:00
Daniel Agar
0fa91f7cb0
commander: centralize main_state strings and simplify main state change attempts
...
* commander: centralize main_state strings and simplify main state change attempts
2021-03-30 17:56:28 +02:00
Daniel Agar
18be1bacdc
state_machine_helper: automatically initialize to assist mode if using mavlink manual control
2021-03-30 17:56:28 +02:00
Claudio Micheli
b001865e5c
Commander: clean up logic for flight mode transitions and add joystick mode initialization
...
Signed-off-by: Claudio Micheli <claudio@auterion.com >
2021-03-30 17:56:28 +02:00
Daniel Agar
9a35756cd1
ekf2: enable range aid by default
...
- this is to help more users get the benefit (by default) and perhaps circumvent the common mistake of setting EKF2_HGT_MODE to range sensor
- this should be safe to enable as the range aid defaults are fairly conservative (max horizontal velocity 1 m/s, and range aid gate 1 SD)
2021-03-30 10:23:18 -04:00
Daniel Agar
6874e9fba0
boards: NuttX disable all NSH memory debug commands (mb, mh, mw) by default
...
- closes https://github.com/PX4/PX4-Autopilot/issues/17062
2021-03-30 09:23:43 -04:00
Michael Schaeuble
f9af1bbe2d
PreFlightCheck: Check if SD card is present only once and store the result
...
statfs accesses the file-system and can be blocking for an extended period. Since the SD card check is part of the preflight checks in the main thread of commander, it could block its execution and cause various issues. The SD card is only mounted in rcS during boot so the state will not change after the first check.
2021-03-30 08:20:49 +02:00
Daniel Agar
c2350c06c1
commander: ManualControl avoid unnecessary copy
2021-03-30 08:19:07 +02:00
Beat Küng
416a663d11
params: add build dependency for *parameters.c
...
Makes sure changes to these files trigger metadata rebuild
2021-03-30 08:18:49 +02:00
Beat Küng
42a865f349
param json: ensure category is set to Standard if not set
...
For xml this was previously done on the QGC side.
2021-03-30 08:18:49 +02:00
Beat Küng
2d2799b739
IMU_GYRO_CUTOFF: add 800 (used by SITL)
2021-03-30 08:18:49 +02:00
Beat Küng
346f269d8f
IMU_INTEG_RATE: add 250 (used by SITL)
2021-03-30 08:18:49 +02:00
Beat Küng
6a7688cbca
component_information: rework to reflect mavlink message changes
2021-03-30 08:18:49 +02:00
Daniel Williams
0f29b87101
[uorb-graph][squash][refactor] Rework of uorb-graph script -- Greatly expands handled test cases
...
- Source processing now happens on original source files:
- processing to line-by-line
- required overhaul of regex match patterns + processing
- pros:
- enable tracing of ambiguous parsing sites -- reports (module, file, line-number, line-contents)
- simplifies code
- reduces computational complexity
- cons:
- certain declarations are harder to parse: multiline declarations
- refactors:
- added specific subclasses for each: Publications, Subscriptions, Ambiguities
- added a "Scope" class to represent either a module ('ModuleScope') or a library ('LibraryScope')
- regexes:
- added cases for C++-style classes
- expanded C++-style regex cases to accommodate templates
- `ORB_ID::` is accepted wherever `ORB_ID(` is accepted
- adds 'orb_copy' regex to the subscription cases
- emit ambiguous-line warning for declarations with `ORB_ID` on the same line
- emit ambiguous-line warning for `ORB_ID` with a declaration on the same line
- changed 'module whitelist' to 'scope-whitelist'
- whitelist may now apply to libraries
- libraries are optionally merged with their depending modules (but not by default)
- may be merged with their depending modules with the `--merge-depends` cli flag
- eliminates some redundant 'special-case' handling code
- debug output
- raises exception and aborts if a topic is found outside of a scope
- debug output is now printed & filtered with the python 'logging' standard module
- alphabetizes topic output in debug logging
- fixes debug output if package dependencies are missing
- now warns on ambiguous matches
- prints a list of ambiguous source sites (aka warnings) on completion
- (still) emits a warning if we find ORB_ID outside of a scope
- adds warnings if any of the source paths are invalid
- do not emit debug output for modules outside of the module/scope whitelist
- Expand script's CLI parameters
- added 'none' output options: undocumented debugging option to silence file output while debugging
- added the `--merge-depends` cli flag -- merges output of modules & their dependee libraries
2021-03-29 09:36:34 +02:00
Daniel Agar
3d667b1675
delete unused drivers/lights/blinkm
2021-03-28 19:21:29 -04:00
Daniel Agar
631d1647d3
boards: minimize unnecessary differences in default variants
2021-03-28 14:46:47 -04:00
Daniel Agar
fcc4153c26
drivers/gps: explicitly link libm
...
- needed on stripped down builds
2021-03-28 12:39:22 -04:00
Daniel Agar
7314b69adc
cmake: fix jlink_flash_uavcan_bin helper
2021-03-28 12:39:22 -04:00
Daniel Agar
f5c7f89a76
vscode add holybro can-gps-v1 variants
2021-03-28 12:39:22 -04:00
Daniel Agar
e58af90bac
boards: holybro can-gps-v1 create separate default and debug variants
2021-03-28 12:39:22 -04:00
Daniel Agar
86b831b019
Update submodule GPSDrivers to latest Sun Mar 28 12:39:06 UTC 2021 ( #17253 )
...
- devices in PX4/Firmware (22b74424d42fa89ebc4df84422ca7ea633843878): https://github.com/PX4/PX4-GPSDrivers/commit/e7f0b23f47d65490b72e9bacaff191bda2d99496
- devices current upstream: https://github.com/PX4/PX4-GPSDrivers/commit/f2eb62c2c78a2ec47bccfe993ff59acc94155e7e
- Changes: https://github.com/PX4/PX4-GPSDrivers/compare/e7f0b23f47d65490b72e9bacaff191bda2d99496...f2eb62c2c78a2ec47bccfe993ff59acc94155e7e
f2eb62c 2021-02-21 chenhui.yu - sbf: fix #430 longitude judgement bug
Co-authored-by: PX4 BuildBot <bot@px4.io >
2021-03-28 11:13:58 -04:00
Daniel Agar
f65781025e
boards: mRo x21 enable mpu9250 mag (only internal)
...
- fixes #17244
2021-03-26 21:02:30 -04:00
Daniel Agar
b1c913244f
boards: CUAV X7pro restore lights
2021-03-26 18:25:39 -04:00
Daniel Agar
e77bffe582
boards: STM32H7 remove CONFIG_MM_REGIONS=3
2021-03-26 17:40:44 -04:00
Daniel Agar
a260ddd8ff
posix-configs: rpi multi-EKF defaults
...
- the ekf2 frontend typically runs in the background for up to 30 seconds waiting for all instances to appear, but this isn't supported by the legacy posix launcher
2021-03-26 14:24:34 -04:00
Daniel Agar
a9b47558b1
magnetometer/lsm9ds1_mag: fix register typo and refactor to new style with state machine and configuration monitoring
2021-03-26 14:23:25 -04:00
bresch
a124426541
ecl: apply same GNSS speed accuracy for EKF2 and yaw estimator
2021-03-25 12:57:36 -04:00
bresch
ace6f81c93
commander: report estimator mag fault detection to ground station
2021-03-25 12:57:36 -04:00
bresch
2c5342acd4
commander: increase nav_test_failed hysteresis time
...
This is to avoid race condition with the yaw emergency estimator having
the same trigger delay of 1 second. Commander will now give more time to
EKF2 to reset itself before switching to altitude mode.
2021-03-25 12:57:36 -04:00
Serhat Aksun
beadae6dfc
process_sensor_caldata.py: Fix 2nd barometer plot
...
fixed the figure numbers to avoid plot conflicts
2021-03-25 09:53:15 -04:00
Daniel Agar
5a1eb3f9ef
Update submodule GPSDrivers to latest Thu Mar 25 00:41:54 UTC 2021
2021-03-25 00:25:29 -04:00
PX4 BuildBot
98e1e25d93
Update submodule sitl_gazebo to latest Thu Mar 25 00:41:48 UTC 2021
...
- sitl_gazebo in PX4/Firmware (7f2566dd8a ): https://github.com/PX4/PX4-SITL_gazebo/commit/1f339cdf5c5da27097e58ec2beb2793bf6057c7d
- sitl_gazebo current upstream: https://github.com/PX4/PX4-SITL_gazebo/commit/3e5fed04d8e574b10e17e446d2938346bc6152ca
- Changes: https://github.com/PX4/PX4-SITL_gazebo/compare/1f339cdf5c5da27097e58ec2beb2793bf6057c7d...3e5fed04d8e574b10e17e446d2938346bc6152ca
3e5fed0 2021-03-22 JaeyoungLim - Multiple airspeed sensors in SITL with multi HIL_SENSOR instances (#731 )
2021-03-24 23:54:49 -04:00
David Sidrane
7f2566dd8a
NuttX STM32H7 16 bit SPI fixes + ADIS16470 updates for proper 16 bit mode in burst
2021-03-24 19:29:40 -04:00
Daniel Agar
92910de81d
gyro_fft: silence initial sensor selection attempt
...
- early in startup the selected gyro may not be published yet
2021-03-24 18:58:18 -04:00
David Sidrane
d9d832c568
NuttX with BACKPORT libc/stdio: Preallocate the stdin, stdout and stderr
2021-03-24 18:27:30 -04:00
Daniel Agar
2d6deb4f1c
drivers/rc_input: don't accept RX_PAIR cmd when armed
2021-03-24 15:13:38 -04:00
Lorenz Meier
435ef38eda
RC Input: Reset lock state when switching to a new protocol
2021-03-24 15:13:38 -04:00
Daniel Agar
3502ba53ba
Update submodule mavlink v2.0 to latest Wed Mar 24 12:38:18 UTC 2021
2021-03-24 11:25:00 -04:00
Beat Küng
c4ae667157
generate_board_targets_json.py: exclude uavcanv1 for now
...
px4_fmu-v4_uavcanv1 fails to build:
../../src/drivers/uavcan_v1/Uavcan.cpp: In static member function 'static int UavcanNode::start(uint32_t, uint32_t)':
../../src/drivers/uavcan_v1/Uavcan.cpp:140:29: error: 'interface' was not declared in this scope
140 | _instance = new UavcanNode(interface, node_id);
2021-03-24 10:08:41 -04:00
Beat Küng
c46c6e63ae
px4/fmu-v4/uavcanv1: remove non-existing tap_esc module & gyro_fft example
2021-03-24 10:08:41 -04:00
Beat Küng
f528c5d206
github ci: push parameter metadata to s3
2021-03-24 10:08:41 -04:00
Beat Küng
c3985709e4
version: add optional oem version tag (ext/oem-<version>) and log it
2021-03-24 10:08:41 -04:00
Beat Küng
be3849f0b2
px4_mkfw.py: fix byte to string conversion
2021-03-24 10:08:41 -04:00
Beat Küng
bac2a02a65
git: ignore git tags starting with 'ext/' when getting the version tag
...
Allows for external/extra tags
2021-03-24 10:08:41 -04:00
Daniel Agar
ae010ea55c
sensors/vehicle_angular_velocity: unify filtering for both FIFO and regular use cases
2021-03-24 09:23:40 +01:00
PX4 BuildBot
8c173b2e7f
Update submodule ecl to latest Wed Mar 24 00:38:46 UTC 2021
...
- ecl in PX4/Firmware (a730f0f5ce7a2cc909cb3d0dfab5f0106a9b3aeb): https://github.com/PX4/PX4-ECL/commit/bb950a1550ba55de36ed66877817ec7f2f47b349
- ecl current upstream: https://github.com/PX4/PX4-ECL/commit/e3d1ade66092d47478488c89e4a6f6d21f0435a4
- Changes: https://github.com/PX4/PX4-ECL/compare/bb950a1550ba55de36ed66877817ec7f2f47b349...e3d1ade66092d47478488c89e4a6f6d21f0435a4
e3d1ade 2021-03-12 Daniel Agar - EKF: use flow for vel test ratio if only active source of horizontal aiding
2021-03-23 22:17:11 -04:00
Daniel Agar
b2faea7f43
pwm_out: check PWM_OUT_MAX_INSTANCES with conditional
...
- PWM_OUT_MAX_INSTANCES is a constant (static constexpr) not available to the preprocessor
2021-03-23 22:13:18 -04:00
Silvan Fuhrer
3983f0b833
ROMFS: add new VTOL config and mixer (generic quadplane tiltrotor VTOL)
2021-03-23 19:55:19 -04:00
Beat Küng
2dace0c9ea
param: limit short description lenght to 150 for existing, 70 for yaml
2021-03-23 12:55:11 -04:00
Beat Küng
629f7ba15b
params: ensure short description is only a single line
...
So a UI can display it properly
2021-03-23 12:55:11 -04:00
Julian Oes
2ab276f5ca
ROMFS: disable MAVLink broadcast by default
...
I don't think we should be broadcasting by default as we haven't done
that in the past. This suddenly spams the network with a lot of
messages, and leads to confusing situations in offices where there are
multiple PX4 SITL and QGC intances are open.
2021-03-23 12:54:46 -04:00
Daniel Agar
ea902e7f38
systemcmds/tests: split out individual module test commands
2021-03-23 11:39:14 -04:00
Daniel Agar
9b1cf98474
drivers/pwm_out: fix launch for non-multi case
...
- skip _objects[1] access if only 1 possible instance
- command line request new mode via atomic
2021-03-23 10:40:22 -04:00
David Sidrane
06cd3eded5
Revert "boards: CUAV Nora don't start icm20649 on SPI6 by default"
...
This reverts commit bcae99e34a .
2021-03-23 05:52:27 -07:00
David Sidrane
644794d134
Revert "boards: CUAV x7pro disable SPI6 IMU until NuttX BDMA is fixed"
...
This reverts commit 0b4006ae86 .
2021-03-23 05:52:27 -07:00
David Sidrane
817d21bb39
px4 fmu-v6x:Properly configure BDMA
2021-03-23 05:52:27 -07:00
David Sidrane
5f28ea10c0
px4 fmu-v6u:Properly configure BDMA
2021-03-23 05:52:27 -07:00
David Sidrane
bbdb671dd2
mro pixracerpro:Properly configure BDMA
2021-03-23 05:52:27 -07:00
David Sidrane
a8ece584e5
mro ctrl-zero-h7-oem:Properly configure BDMA
2021-03-23 05:52:27 -07:00
David Sidrane
4eabee00d6
holybro durandal-v1:Properly configure BDMA
2021-03-23 05:52:27 -07:00
David Sidrane
e813385f12
cuav x7pro:Properly configure BDMA
2021-03-23 05:52:27 -07:00
David Sidrane
344be233cf
mro ctrl-zero-h7:Properly configure BDMA
2021-03-23 05:52:27 -07:00
David Sidrane
ba3a099775
cuav nora:Properly configure BDMA
2021-03-23 05:52:27 -07:00
David Sidrane
3581099c09
Revert "boards: disable BDMA on STM32H7 for now"
...
This reverts commit f0d1f1d679 .
2021-03-23 05:52:27 -07:00
David Sidrane
55abe48925
NuttX with BDMA enable fix backpork
2021-03-23 05:52:27 -07:00
Peter van der Perk
8c5e51dba6
Add nxp_ucans32k146_canbootloader to CI archive to distribute UCANS32K146 bootloader
2021-03-23 04:43:56 -07:00
Mohamed Moustafa
5802dce699
mavlink: ignore self published UTM_GLOBAL_POSITION msgs in simulation using sys id ( #17193 )
2021-03-23 10:32:21 +01:00
Daniel Agar
5f6832e101
px4_work_queue: increasae UART stack
2021-03-22 22:48:58 -04:00
Beat Küng
e2cd39bf6c
micro_hal: use inline methods instead of #define's
...
Fixes errors in the form of 'error: statement has no effect'
2021-03-22 15:38:21 -04:00
Daniel Agar
e57aaaaa5e
rotate accel/gyro FIFO before publish and fix angular velocity filter resets
...
- rotates accel & gyro FIFO data before publication both to simplify downstream usage (including log review) and fix other issues
- to best handle int16_t data rotations are now either performed with swaps if possible, otherwise promoted to float, rotated using the full rotation matrix, then rounded back to int16_t
- fix sensors/vehicle_angular_velocity filter reset both with proper rotation and new calibration uncorrect helper
- in FIFO case filtering is done before calibration is applied, but we need to handle a possible reset from a completely different sensor (vehicle body angular velocity -> sensor frame uncorrected data)
2021-03-22 12:01:12 -04:00
Star Simpson
d4dd019578
removing hardcoded units from parameter descriptions throughout land_detector_params
2021-03-22 11:39:53 +01:00
Dongoo Lee
32012cb3ee
for cmake option GENERATE_ROS_MODELS to make ROS sdf models
2021-03-22 08:59:48 +01:00
Star Simpson
48219ab1e6
fixed typo in description of RWTO_PSP parameter
2021-03-22 00:37:18 -04:00
Daniel Agar
7563438558
sensors/vehicle_angular_velocity: fix dynamic notch ESC in FIFO case
...
- last timestamp sample must be set in FIFO case for ESC RPM dynamic filter update
- slightly relax thresholds for dynamic notch FFT apply or reset
2021-03-21 20:46:54 -04:00
PX4 BuildBot
1e507f41ca
Update submodule sitl_gazebo to latest Sun Mar 21 12:39:01 UTC 2021
...
- sitl_gazebo in PX4/Firmware (6e9f745809 ): https://github.com/PX4/PX4-SITL_gazebo/commit/b195315b869a5e86e31bcb934ca85172d4f5f33f
- sitl_gazebo current upstream: https://github.com/PX4/PX4-SITL_gazebo/commit/1f339cdf5c5da27097e58ec2beb2793bf6057c7d
- Changes: https://github.com/PX4/PX4-SITL_gazebo/compare/b195315b869a5e86e31bcb934ca85172d4f5f33f...1f339cdf5c5da27097e58ec2beb2793bf6057c7d
1f339cd 2021-03-20 Dongoo Lee - Pass ros_distro in CMakeLists.txt instaed of checking it in jinja_gen.py (#712 )
1b1afca 2021-03-18 David Jablonski - gst camera: add RTMP streaming and nvidia encoding (#727 )
2021-03-21 10:43:26 -04:00
PX4 BuildBot
e79b3930f3
Update submodule ecl to latest Sun Mar 21 12:39:12 UTC 2021
...
- ecl in PX4/Firmware (81e811997b8e611aff08fa25c81322e4b956425f): https://github.com/PX4/PX4-ECL/commit/4df005487379436dcdde10402d3cea7b78d76c19
- ecl current upstream: https://github.com/PX4/PX4-ECL/commit/bb950a1550ba55de36ed66877817ec7f2f47b349
- Changes: https://github.com/PX4/PX4-ECL/compare/4df005487379436dcdde10402d3cea7b78d76c19...bb950a1550ba55de36ed66877817ec7f2f47b349
bb950a1 2021-03-10 Morten Fyhn Amundsen - Expose terrain vpos reset counter
ab69681 2021-03-10 Morten Fyhn Amundsen - Add parameter for terrain timeout
2021-03-21 10:42:43 -04:00
Lorenz Meier
6e9f745809
PWM out: Robustify initialization
...
This ensures that all PWM outputs get correctly inialized on targets that only support one.
2021-03-21 00:21:10 +01:00
Daniel Williams
f6eae08597
[uorb_graph][fix][doc] FIxes type around regex definition
...
Co-authored-by: Beat Küng <beat-kueng@gmx.net >
2021-03-20 08:11:41 +01:00
Daniel Williams
e7b1ffbd4c
[uorb_graph][fix] broadens regex for ambiguous subscription arrays
...
Co-authored-by: Beat Küng <beat-kueng@gmx.net >
2021-03-20 08:11:41 +01:00
Daniel Williams
1dce38a8fe
[uorb_graph][fix] fixes typo in Graph class __init__
...
Co-authored-by: Beat Küng <beat-kueng@gmx.net >
2021-03-20 08:11:41 +01:00
Daniel Williams
711422d755
[uorb-graph][squash][refactor] Rework of uorb-graph script -- Greatly expands handled test cases
...
- debug output is now printed & filtered with the python 'logging' standard module
- changed 'module whitelist' to 'scope-whitelist'
- whitelist may now apply to libraries
- libraries are not included by default
- may be merged with their depending modules with the `--merge-depends` cli flag
- eliminates redundant 'special-case' handling code
- greatly expands debugging output
- fixes debug output if package dependencies are missing
- still crashes on error matches
- now warns on ambiguous matches
- prints a list of ambiguous source sites (aka warnings) on completion
- adds warnings if any of the source paths are invalid
- do not emit debug output for modules outside of the module/scope whitelist
- Expand script's CLI parameters
- added 'none' output options: undocumented debugging option to silence file output while debugging
- added the `--merge-depends` cli flag -- merges output of modules & their dependee libraries
- Source processing now happens on original source files:
- processing to line-by-line
- required overhaul of regex match patterns + processing
- pros:
- enable tracing of ambiguous parsing sites -- reports (module, file, line-number, line-contents)
- simplifies code
- reduces computational complexity
- cons:
- certain declarations are harder to parse (multiline arrays)
- refactors:
- added specific subclasses for each: Publications, Subscriptions, Ambiguities
- added a "Scope" class to represent either a module ('ModuleScope') or a library ('LibraryScope')
2021-03-20 08:11:41 +01:00
Daniel Williams
8c87ef4272
[refactor][uorb-graph] add a pythonic __main__ idiom to the uorb-graph tool script
2021-03-20 08:11:41 +01:00
Daniel Agar
aef3c474e2
cmake: add install_python_requirements helper
...
- this is useful because it installs the python requirements using the
python interpreter found and used by cmake
2021-03-19 23:58:16 -04:00
Julian Oes
a13459858d
commander: improve logic for ekf2 preflight check
...
With this change we prevent the case where arming silently fails within
the first 10 seconds after boot.
Also, we now set the sensors as healthy as soon as the ekf is healthy,
and don't wait 10 seconds without actually checking.
2021-03-19 15:58:14 -04:00
Julian Oes
2f024a9a8a
commander: pass in correct time since boot
...
This fixes the case where the preflight check fail right after the start
and report "sensors unstable".
2021-03-19 15:58:14 -04:00
Morten Fyhn Amundsen
19533377b3
drv_hrt: Fix hrt_abstime literal argument names
...
The user-defined literals for milli- and microseconds
should have argument names matching their units. The
current argument names 'seconds' is probably an oversight.
2021-03-19 16:36:36 +01:00
David Sidrane
0d4f48a8d2
spracing h7extreme:Enable ADC3 in support of temperature sensing
2021-03-19 15:48:47 +01:00
David Sidrane
cdcff35760
cubepilot cubeorange:Enable ADC3 in support of temperature sensing
2021-03-19 15:48:47 +01:00
David Sidrane
2373ba47a2
mro pixracerpro:Enable ADC3 in support of temperature sensing
2021-03-19 15:48:47 +01:00
David Sidrane
6780428a9d
mro ctrl-zero-h7:Enable ADC3 in support of temperature sensing
2021-03-19 15:48:47 +01:00
David Sidrane
fa5dfb29cb
mro ctrl-zero-h7-oem:Enable ADC3 in support of temperature sensing
2021-03-19 15:48:47 +01:00
David Sidrane
216959e221
holybro durandal-v1:Enable ADC3 in support of temperature sensing
2021-03-19 15:48:47 +01:00
David Sidrane
7bc2393936
cubepilot cubeorange:Enable ADC3 in support of temperature sensing
2021-03-19 15:48:47 +01:00
David Sidrane
a67edf229a
cuav x7pro:Enable ADC3 in support of temperature sensing
2021-03-19 15:48:47 +01:00
David Sidrane
4f3d74b9d3
cuav nora:Enable ADC3 in support of temperature sensing
2021-03-19 15:48:47 +01:00
David Sidrane
833501dee6
stm32h7:adc fix temperature sensing
2021-03-19 15:48:47 +01:00
David Sidrane
cc098f9dff
netman:Fix setting on first boot
2021-03-19 15:48:25 +01:00
Daniel Agar
19fc33a66e
boards: ark/can-flow add debug build and reduce default
2021-03-19 15:44:57 +01:00
bresch
6fda6e43af
StickAcceleration: synchronize XY acceleration profiles
2021-03-19 13:51:15 +01:00
Matthias Grob
c8c3f57ba1
mc_pos_control_params: correct cruise speed description
...
It is used in autonomous modes only and has no influence
on Position mode.
2021-03-19 13:35:17 +01:00
Daniel Agar
2360c50713
boards: spracing/h7extreme remove temperature_compensation and differential_pressure sensors to save flash
2021-03-18 19:34:51 -04:00
Daniel Agar
b74bdb0250
sensors/vehicle_angular_velocity: RPM filter add harmonics
2021-03-18 19:34:51 -04:00
Daniel Agar
8f242ec444
cmake: add jlink_flash_uavcan_bin helper
2021-03-18 19:33:19 -04:00
Daniel Agar
a86e854a3b
boards: CUAV CAN GPS enable safety button
...
- the circuit breaker was changed to set by default (disabling the safety button)
2021-03-18 19:33:19 -04:00
David Sidrane
e9409e59e6
NuttX with flexcan CTRL1 fixes backports
2021-03-18 21:38:56 +01:00
David Sidrane
395519ac66
uavcan_stm32h7:can driver preserve ordering
...
Refering to the refernece manual:
Tx queue operation is configured by programming FDCAN_TXBC.TFQM to 1. Messages
stored in the Tx queue are transmitted starting with the message with the lowest message
ID (highest priority). **In case that multiple queue buffers are configured with the same
message ID, the queue buffer with the lowest buffer number is transmitted first**
Tx FIFO operation is configured by programming FDCAN_TXBC.TFQM to 0. Messages
stored in the Tx FIFO are transmitted starting with the message referenced by the get index
FDCAN_TXFQS.TFGI. After each transmission the get index is incremented cyclically until
the Tx FIFO is empty. The Tx FIFO enables transmission of messages with the same
message ID from different Tx buffers in the order these messages have been written to the
Tx FIFO
The issue will be cancelation:
The FDCAN supports transmit cancellation. To cancel a requested transmission from a
dedicated Tx buffer or a Tx queue buffer the Host has to write a 1 to the corresponding bit
position (= number of Tx buffer) of register FDCAN_TXBCR. Transmit cancellation is not
intended for Tx FIFO operation.
But there is nothing preventing it. This seems to indicate it will
work. When a transmission request for the Tx buffer referenced by the get index is canceled, the
get index is incremented to the next Tx buffer with pending transmission request and the Tx
FIFO free level is recalculated. When transmission cancellation is applied to any other Tx
buffer, the get index and the FIFO free level remain unchanged.
2021-03-18 18:31:05 +01:00
David Sidrane
52a29ac6cf
uavcan_stm32h7:can driver add proper timeouts
2021-03-18 18:31:05 +01:00
dinomani
4bf894a35d
Update platforms/nuttx/src/px4/stm/stm32h7/include/px4_arch/micro_hal.h
...
Co-authored-by: David Sidrane <David.Sidrane@Nscdg.com >
2021-03-18 06:13:24 -07:00
dino
44b2e0b729
As David request
2021-03-18 06:13:24 -07:00
dino
7c8b7fa44d
Fixed typo and added support for H7 temperature sense on ADC3
2021-03-18 06:13:24 -07:00
dino
6d04a67b02
Moving define to microhal.h files, for each ST architecture. Correct channels were verified with ST_CUBE header files. For the H7 its a simplification for the current used H7x3. Other devices in that family expect the temperarture on channel 18.
...
F1: channel 16
F3: channel 16
F4: channel 18
F7: channel 18
H7: channel 17, on STMf32Hx3
2021-03-18 06:13:24 -07:00
dino
528dc41822
changed #elif to #else, to build on all targets
2021-03-18 06:13:24 -07:00
dino
3c77ef7eb3
Fixed adc config, to read internal reference to get cpu temperature
2021-03-18 06:13:24 -07:00
Daniel Agar
7c2b945c21
ROMFS: posix rcS add gyro_fft and gyro_calibration start
2021-03-18 10:04:04 +01:00
Daniel Agar
8000e6feba
gyro_fft: reduce default max
...
- we're mainly looking for lower frequencies that may be an issue for control
2021-03-18 10:04:04 +01:00
Daniel Agar
c7c6122bfd
gyro_fft: manually inline subset of arm_rfft_init_q15 to save flash
2021-03-18 10:04:04 +01:00
Daniel Agar
1429423876
gyro_fft: support sensor_gyro (non-fifo)
2021-03-18 10:04:04 +01:00
alexklimaj
69e57b22ac
Add LEDs to ARK Can Bootloader
2021-03-17 18:10:22 -04:00
alexklimaj
38ce892582
ARK Flow sensor rotations
2021-03-17 18:06:38 -04:00
Dima Ponomarev
e660b50021
uavcan: add IMU sensor support
2021-03-17 18:04:12 -04:00
Lorenz Meier
d35ce21594
PWM out: Ensure correct loading on single-bank targets
2021-03-17 22:03:18 +01:00
Lorenz Meier
9490c64ad4
PWM out: provide running state
...
Important to know if the app is running.
2021-03-17 22:03:18 +01:00
Lorenz Meier
33c5f4210a
X7 disable FFT
...
This depends on the IMU driver supporting queue
2021-03-17 22:03:18 +01:00
Lorenz Meier
935cc05c47
FMU PWM OUT: Start driver in interface
2021-03-17 22:03:18 +01:00
Lorenz Meier
dd400e9562
Modal: Fix tabs in start script
2021-03-17 22:03:18 +01:00
Lorenz Meier
8cc3247d21
PWM command: Switch default to status, leave info
2021-03-17 22:03:18 +01:00
Lorenz Meier
0efa7556fe
VTOL airframe: Remove spurious tab
2021-03-17 22:03:18 +01:00
Lorenz Meier
595b3a05fb
Draco airframe: Remove tabs
2021-03-17 22:03:18 +01:00
Lorenz Meier
4af42be3f3
IFO-S airframe: Remove tabs
2021-03-17 22:03:18 +01:00
Lorenz Meier
e887aa902f
IFO airframe: Remove tabs
2021-03-17 22:03:18 +01:00
Lorenz Meier
06f7c49d3a
Baby-shark airframe: Remove spurious tabs
2021-03-17 22:03:18 +01:00
Lorenz Meier
3c19853f6c
ROMFS pruner: Detect spurious tabs
...
This is necessary to make sure that users cannot insert tabs into shell commands.
2021-03-17 22:03:18 +01:00
Lorenz Meier
21f5f9fba0
Param: Print failing param name
...
This is important for any sort of boot logs to know which parameter failed.
2021-03-17 22:03:18 +01:00
Lorenz Meier
c4e86f69c6
X7: Correct RGB led configuration
...
This removes unused modules and keeps the currently used ones in place.
2021-03-17 22:03:18 +01:00
Lorenz Meier
dc1e7335a3
UAVCAN: Lower debug print level
2021-03-17 22:03:18 +01:00
Lorenz Meier
9fe2f84db5
CUAV X7 Pro: Remove unneeded drivers.
2021-03-17 22:03:18 +01:00
Lorenz Meier
13e0b74782
MAVLink: Increased stack size
...
This is needed for MAVLink shell and UAVCAN.
2021-03-17 22:03:18 +01:00
Lorenz Meier
c904767f1d
Always start airspeed
...
This ensures we get readings in the log and in the telemetry even if the sensor is disabled.
2021-03-17 22:03:18 +01:00
Lorenz Meier
891b231215
Ensure that AUX mixer is loaded when 2nd bank is present
2021-03-17 22:03:18 +01:00
Lorenz Meier
38f306908d
Remove PWM14 VTOL airframe
2021-03-17 22:03:18 +01:00
Daniel Agar
e7722b11eb
pwm_out multi-instance support
...
PX4 uses banks of 8 outputs as a logical structure. Boards that have
more outputs than 8 get multiple instances. This is an arbitrary choice
that helps with overall structure and enables the mixing of different
device classes (like FMU, IO or UAVCAN).
2021-03-17 22:03:18 +01:00
Daniel Agar
c1c0a62be5
drivers/gps: log automatic gain control (AGC) monitor
2021-03-17 15:11:43 -04:00
Daniel Agar
385512aead
uORB: test multi timestamp requirement only applies per topic instance
2021-03-17 12:35:53 -04:00
Daniel Agar
205beb9526
boards: revert remaining CONFIG_ARMV7M_LAZYFPU
2021-03-17 09:58:23 -04:00
Matthias Grob
25dd12382a
FlightTaskOrbit: default center at exact vehicle location
2021-03-17 09:50:11 -04:00
Matthias Grob
ef774578e1
FlightTaskOrbit: NACK command if coordinates could not get applied
2021-03-17 09:50:11 -04:00
Ryan Johnston
bffa83bd47
Reverting LAZYFPU for v1.12 beta1 Compatibility
...
Without reverting this a constant boot loop occurs.
Prior to merging, why this occurs on some F7 boards and not this one should be looked at.
With LazyFPU enabled, v1.12.0 beta1 will not boot but without it removed it works fine.
2021-03-17 06:10:02 +01:00
David Sidrane
ccee36bb68
sd_bench and logger use aligned buffers
2021-03-17 05:27:53 +01:00
David Sidrane
45d0603627
micro_hal:Fixed DCACHE_LINESIZE abuse
2021-03-17 05:27:53 +01:00
garfieldG
e9725a5fa7
Merge pull request #17089 from garfieldG/pr-safety_switch_status
...
send safety switch status to ground
2021-03-17 05:23:31 +01:00
PX4 BuildBot
5ad8ed6994
Update submodule devices to latest Wed Mar 17 00:38:33 UTC 2021
...
- devices in PX4/Firmware (dd479f9cca ): https://github.com/PX4/PX4-GPSDrivers/commit/d7100ddc3dfdbe9702d0d21542a9ca3f4ea42652
- devices current upstream: https://github.com/PX4/PX4-GPSDrivers/commit/0acaf6185245382389f7f6019cee6537d8f5a8e6
- Changes: https://github.com/PX4/PX4-GPSDrivers/compare/d7100ddc3dfdbe9702d0d21542a9ca3f4ea42652...0acaf6185245382389f7f6019cee6537d8f5a8e6
0acaf61 2021-02-26 Beat Küng - output mode: add GPS+RTCM output for PPK
2021-03-17 05:21:20 +01:00
Daniel Agar
dd479f9cca
drivers/imu/analog_devices/adis16470: Analog Devices ADIS16470 IMU driver for CUAV x7pro
2021-03-16 18:00:06 -04:00
Daniel Agar
4092f87390
paw3902: fixes and improvements
...
- fully respect datasheet quality and shutter metrics for mode changes
- use MOTION pin for scheduling if available
- log light mode
- refactor common enable LED code
- respect read and write time delays
2021-03-16 15:52:03 -04:00
Daniel Agar
34ea056bd2
Update submodule mavlink v2.0 to latest Tue Mar 16 12:39:08 UTC 2021
2021-03-16 15:50:23 -04:00
PX4 BuildBot
c368aa180a
Update submodule sitl_gazebo to latest Tue Mar 16 12:39:03 UTC 2021
...
- sitl_gazebo in PX4/Firmware (00016e53fa ): https://github.com/PX4/PX4-SITL_gazebo/commit/6b6f4749a74215b9a4fb81cfaa99a3950f13464d
- sitl_gazebo current upstream: https://github.com/PX4/PX4-SITL_gazebo/commit/b195315b869a5e86e31bcb934ca85172d4f5f33f
- Changes: https://github.com/PX4/PX4-SITL_gazebo/compare/6b6f4749a74215b9a4fb81cfaa99a3950f13464d...b195315b869a5e86e31bcb934ca85172d4f5f33f
b195315 2021-03-16 JaeyoungLim - Revert "Pr liftdrag coefficients (#690 )" (#730 )
2021-03-16 15:49:58 -04:00
David Sidrane
243adf5250
NuttX with SDMMC back ports
2021-03-16 15:37:41 -04:00
Fabrizio Romanelli
853459c21b
Tools/setup/ubuntu.sh: Update to allow multiple host architectures
2021-03-16 13:33:48 -04:00
Daniel Agar
00016e53fa
boards: holybro/kakutef7 disable CONSTRAINED_FLASH to increase optimization
2021-03-16 10:30:32 +01:00
Inhwan Wee
c67d85945b
[commander] more detailed print_status
2021-03-16 01:00:55 -04:00
Daniel Agar
29d4ad1848
fw_pos_control_l1: OFFBOARD fully populate position_setpoint_triplet
2021-03-16 00:58:04 -04:00
Ryan Johnston
bcf93304c7
Board ID Update
...
Needed for updating firmware (due to boot loader).
2021-03-16 00:51:17 -04:00
Ryan Johnston
8e6987d480
Board ID update
...
Needed for firmware to update.
2021-03-16 00:51:17 -04:00
Daniel Agar
5d63306427
Update submodule GPS drivers to latest Tue Mar 16 00:40:31 UTC 2021
2021-03-16 00:50:13 -04:00
Daniel Agar
be58db1ec9
boards: cubepilot_cubeorange_console add gyro_fft
2021-03-16 00:49:45 -04:00
Daniel Agar
8261ee5fd7
boards: px4_fmu-v5_stackcheck add gyro_fft
2021-03-16 00:49:45 -04:00
Daniel Agar
ed8f6aa8fe
gyro_fft: fix bucket_index size
...
- needed for larger FFT lengths (eg 1024, 2048, etc)
2021-03-16 00:49:45 -04:00
Daniel Agar
0eac534b80
geo: purge globallocal_converter
2021-03-15 16:16:19 -04:00
Daniel Agar
ae67c53b1e
boards: px4_fmu-v6u_default address flash shortage
...
- create separate px4_fmu-v6u_test variant for onboard testing code
2021-03-15 14:19:00 -04:00
Daniel Agar
4b99bd2077
boards: remove optional external ADIS IMUs to save flash
2021-03-15 13:37:24 -04:00
Daniel Agar
b20949e664
mission feasibility: Fix first wp too far message overflow
...
Co-authored-by: Sander Smeets <sander@droneslab.com >
2021-03-15 12:40:52 -04:00
Daniel Agar
6cdc034f08
camera_trigger: cleanup
...
- add copyright headers and update year
- move initializers to header
- add PX4_DEBUG messages
2021-03-15 12:35:41 -04:00
Sander Smeets
517a1d0116
battery_status: factor in total current consumption in battery remaining estimation
2021-03-15 12:32:45 -04:00
RomanBapst
82a2126f97
TECS: add feedforward gain for total energy balance rate
...
Signed-off-by: RomanBapst <bapstroman@gmail.com >
2021-03-15 11:47:07 -04:00
Daniel Agar
edd42cfa86
boards: px4/fmu-v5x disable optional external IMU drivers
2021-03-15 11:16:38 -04:00
Daniel Agar
0b4006ae86
boards: CUAV x7pro disable SPI6 IMU until NuttX BDMA is fixed
2021-03-15 10:54:43 -04:00
Daniel Agar
20d8de2dca
gyro_fft: reduce run frequency (still consuming all queued data)
2021-03-15 09:42:35 -04:00
Daniel Agar
3c80db9796
boards: stm32f7 run gyro_fft by default
2021-03-15 09:42:35 -04:00
Lorenz Meier
a5151f92ea
Merge pull request #17065 from PX4/pr/fix-mavlink-shell
...
MAVLink shell: Ensure that nothing is written to the file handles during shell creation.
2021-03-15 09:47:58 +01:00
Daniel Agar
2257c3767e
simple gyro auto calibration module
2021-03-15 09:46:47 +01:00
jciberlin
01c9a4f24d
ghst: fix warning generated on PR (Clang Tidy)
...
Fix warning generated on PR (Clang Tidy).
2021-03-15 09:42:53 +01:00
jciberlin
6f5efbeab5
ghst_telemetry: send battery status
...
Send battery status (ghst_telemetry). Apply factors to show correct values of volts, amps and mAh. Change ghost protocol code to follow more MISRA C++ guidelines.
2021-03-15 09:42:53 +01:00
Daniel Agar
af3573e464
gyro_fft: log peak frequency magnitudes
2021-03-15 09:42:08 +01:00
Daniel Agar
3665f9a3c4
gyro_fft: increase default range and length to improve test data
2021-03-14 20:17:41 -04:00
Daniel Agar
893eee4cb8
logger: double sensor_gyro_fft logging rate
2021-03-14 20:17:41 -04:00
Daniel Agar
cfb3099870
boards: mRo pixracer pro restore USART6, but RX only
2021-03-14 16:32:22 -04:00