Daniel Agar
c9c20666a2
sensors: sanity check differential pressure temperature ( #15845 )
...
- if valid temperature unavailable then use ICAO Standard Atmosphere 15 degrees celcius
2020-09-29 09:35:34 -04:00
Daniel Agar
24ffed827f
ROMFS: 50000_generic_ground_vehicle remove fmu-v2 exclude
...
- this allows px4_fmu-v2_rover to function until we have a better mechanism for including or excluding ROMFS dependencies #15711
2020-09-28 22:43:28 -04:00
Daniel Agar
f1feaf45d3
EKF2: move vehicle_odometry publish to method
2020-09-28 18:34:49 -04:00
Daniel Agar
faccb0d948
Jenkins: HIL script minor improvements
...
- periodically send newline while checking for output or command completion (back to nsh prompt)
- mtd test
- fix adc test (now board_adc)
2020-09-28 16:41:28 -04:00
Daniel Agar
fe6a1ce882
simulator: fix airspeed temperature
...
- HIL_SENSOR temperature is only being sent with barometer data
2020-09-28 12:56:56 -04:00
Daniel Agar
828134c56f
sensor_calibration: add link dependencies
2020-09-28 12:26:38 -04:00
Daniel Agar
cf26f24387
msg: add quaternion euler angle pretty print
2020-09-28 10:13:43 -04:00
Daniel Agar and PX4 BuildBot
6a08e16351
Update submodule mavlink v2.0 to latest Sat Sep 26 15:30:19 UTC 2020
...
- mavlink v2.0 in PX4/Firmware (aab65cdc3261a4ca315d5b91d65e0dd3e39940d0): https://github.com/mavlink/c_library_v2/commit/09524c98db4eb389d3d50f7905a17805b216a9ea
- mavlink v2.0 current upstream: https://github.com/mavlink/c_library_v2/commit/e3d00c443602ff81cc57123fbc3b50c250b3e9ad
- Changes: https://github.com/mavlink/c_library_v2/compare/09524c98db4eb389d3d50f7905a17805b216a9ea...e3d00c443602ff81cc57123fbc3b50c250b3e9ad
Co-authored-by: PX4 BuildBot <bot@px4.io >
2020-09-26 13:14:25 -04:00
Daniel Agar
e792c46f20
mavlink: increase stack 2650 -> 2848 bytes ( #15821 )
2020-09-25 21:42:02 -04:00
Daniel Agar
f37d0a85e2
Jenkins: remove remaining SITL tests (MC_avoidance/MC_safe_landing)
...
- MC_avoidance and MC_safe_landing are currently failing intermittently and will be migrated to Github Actions
2020-09-25 12:28:26 -04:00
Daniel Agar
861e06dfd7
mavlink: handle receiving GENERATOR_STATUS
...
- only published (ORB_ID(generator_status)) and logged for now
2020-09-25 11:36:58 -04:00
Daniel Agar
c57a48682e
Tools: ecl analysis handle estimator_innovations/estimator_innovation_variances size inconsistencies
2020-09-25 10:35:01 -04:00
Daniel Agar
2ccf664e95
commander: disarm from safety relax land detector timeout
...
- ensure land detector is updated before safety is checked
2020-09-25 09:41:53 -04:00
Daniel Agar
60252dde08
Jenkins: SITL tests disable ninja build to reduce build parallelism
...
- test slaves have limited memory
2020-09-24 15:56:57 -04:00
Daniel Agar
bbdc57a662
cmake: remove sitl_gazebo build -j2
...
- allow ninja build to automatically determine parallelism
2020-09-24 15:56:57 -04:00
Daniel Agar
0dc8bb9c86
uORB: increase ORB_MULTI_MAX_INSTANCES 4 -> 10
...
- put more realistic bounds on maximum number of battery instances, gps, etc
2020-09-24 11:01:28 -04:00
Daniel Agar
f04f0c89ca
boards: CUAV Nora/X7pro fix BOARD_DSHOT_MOTOR_ASSIGNMENT
...
- BOARD_DSHOT_MOTOR_ASSIGNMENT isn't needed if there's no remapping
2020-09-24 10:53:54 -04:00
Daniel Agar
762d925d20
boards: cubepilot orange/yellow fix BOARD_DSHOT_MOTOR_ASSIGNMENT
2020-09-24 10:53:54 -04:00
Daniel Agar
0a607bdc67
boards: CUAV CAN_GPS v1.2 cannode (stm32f412) with UAVCAN bootloader
2020-09-23 14:30:54 -04:00
Daniel Agar
8579b5dd26
uORB: Subscription add copy/move constructor and assignment
2020-09-23 10:04:54 -04:00
Daniel Agar
d5295ef4e1
mavlink: add static asserts to keep MAV_SENSOR_ROTATION in sync with PX4 ROTATION
2020-09-22 11:10:31 -04:00
Daniel Agar
00e955cc3e
rotations: sync rotation enum, SENS_BOARD_ROT, CAL_MAGx_ROT with MAV_SENSOR_ORIENTATION
2020-09-22 11:10:31 -04:00
Daniel Agar
8b26b84fd1
Jenkins: hardware disable holybro durandal bootloader update
...
- this is currently bricking the board
2020-09-21 22:51:11 -04:00
Daniel Agar
43903dcb79
Jenkins: temporarily disable catkin build on ROS workspace
2020-09-21 22:48:33 -04:00
Daniel Agar
d676e65294
logger: log_writer_file increase stack 1170 -> 1472 bytes ( #15765 )
2020-09-21 22:17:31 -04:00
Daniel Agar
e4a408bc55
cmake nuttx build modify copied nuttx repo .git to point to actual git dir
...
- this fixes builds that contain a px4io and use the Makefile generator rather than Ninja
2020-09-21 12:39:29 -04:00
Daniel Agar
4d97772756
vscode: SITL debug add gazebo world select
2020-09-21 11:56:25 -04:00
Daniel Agar
2728af4264
boards: cubeorange and cubeyellow disable serial console (used for ADSB on new carrier boards)
...
- add console builds (cubepilot_cubeorange_console) for hardware test rack and developers
2020-09-21 11:53:49 -04:00
Daniel Agar
09af5e0637
commander: mag calibration use expected WMM sphere radius to reject samples if GPS is available
2020-09-20 12:22:56 -04:00
Daniel Agar
940dc9cca0
cmake NuttX build fix path to git dir
...
- this relative path was incorrect for the px4io when using the Makefile generator and built for inclusion within another build (eg px4_fmu-v5_default)
2020-09-18 21:18:36 -04:00
Daniel Agar
abbd335e4e
uavcannode: use correct PYTHON_EXECUTABLE and support stm32h7
...
- sync CMakeLists.txt with drivers/uavcan
2020-09-18 13:03:07 -04:00
Daniel Agar
d61fd0e4ca
update all px4-dev-base and px4-dev-nuttx container usage uniformly
2020-09-18 13:03:07 -04:00
Daniel Agar
41a2fe5bdf
gitmodules update NuttX branches
2020-09-18 12:10:34 -04:00
Daniel Agar
12ab762adc
sensor_calibration: silence error if priority is -1 (uninitialized parameter value)
2020-09-16 12:32:40 -04:00
Daniel Agar
033f74b1c8
sitl_run.sh remove xtrace leftover from debugging
2020-09-16 10:43:29 -04:00
Daniel Agar
2b18b05a8a
vscode updates and improvements
...
- fix gazebo SITL debug
- now prompts you to select vehicle
- devcontainer.json container support https://code.visualstudio.com/docs/remote/containers
- this allows you to jump straight into working within a container (px4-dev-nuttx) on a fresh machine
- also helps with Codespaces https://github.com/features/codespaces
- plugin updates
- cpp extension pack, spell checking, CTest support
- cleanup intellisense
- the backup tag parser was a resource hog and didn't work very well
- fix problemMatcher support so that you can click on a build failure
2020-09-16 09:07:54 -04:00
Daniel Agar
0e9a4cc65f
boards: px4/sitl sync all build variants and fix none default package
2020-09-15 21:13:04 -04:00
Daniel Agar
5e4e4a4573
boards: aerotenna ocpoc fix package (new ROMFSROOT was missing)
2020-09-15 21:13:04 -04:00
Daniel Agar
c41f053c7b
vehicle_imu/vehicle_magnetometer add calibration indicator to message
...
- vehicle_imu/vehicle_magnetometer add monotonically increasing `calibration_count` field so that downstream subscribers are aware of calibration changes
2020-09-15 13:12:57 -04:00
Daniel Agar
87471a988d
land_detector: use hover thrust if it was valid recently
...
- the hover thrust estimate will often invalidate upon ground contact, but before the land detector ground_contact triggers
- use same time throughout call to avoid subtle timing surprises
2020-09-15 10:17:25 -04:00
Daniel Agar
dc507ee544
sensors: add SENS_MAG_MODE to optionally publish all magnetometers
2020-09-15 10:15:39 -04:00
Daniel Agar
a04412fc1f
sensors: add SENS_IMU_MODE to optionally skip IMU voting/selection
2020-09-15 10:15:39 -04:00
Daniel Agar and PX4 BuildBot
2b04ae3a05
Update submodule mavlink v2.0 to latest Mon Sep 14 00:39:47 UTC 2020
...
- mavlink v2.0 in PX4/Firmware (8d63bbe7d06ac13a5e78905886cfa51a53d0de92): https://github.com/mavlink/c_library_v2/commit/efc2a1fa7e1c7814ca7b65f484f6e9968cb8f1c8
- mavlink v2.0 current upstream: https://github.com/mavlink/c_library_v2/commit/09524c98db4eb389d3d50f7905a17805b216a9ea
- Changes: https://github.com/mavlink/c_library_v2/compare/efc2a1fa7e1c7814ca7b65f484f6e9968cb8f1c8...09524c98db4eb389d3d50f7905a17805b216a9ea
Co-authored-by: PX4 BuildBot <bot@px4.io >
2020-09-13 21:23:46 -04:00
Daniel Agar
13db2ebb2b
accel/gyro/mag calibration set default priority uninitialized
...
- this allows the default priority to be set differently for internal/external sensors
- accel and gyro initialize default priority like mag in preparation for fully supporting external sensors
- fixes #15652
2020-09-13 21:02:53 -04:00
Daniel Agar
d70e183f5b
commander: sensor calibration check parameter save success
2020-09-13 21:00:40 -04:00
Daniel Agar
04214a347e
lib/sensor_calibration: check param save success and comment helpers
2020-09-13 21:00:40 -04:00
Daniel Agar
198466306e
boards: airmind mindpx-v2 fix internal qmc5883l rotation
2020-09-13 18:28:31 -04:00
Daniel Agar
60d613ea04
sensors: sensor_preflight_imu -> sensors_status_imu and run continuously
...
- inconsistency checks now run continuously instead of only preflight
- keep inconsistencies for all sensors
- add per sensor data validator state as overall health flag
2020-09-06 22:06:13 -04:00
Daniel Agar
4e8775a584
Jenkins: temporarily disable MC safe landing SITL test
...
- the MC safe landing SITL test continues to fail intermittently so I'm disabling it for now
2020-09-06 19:47:10 -04:00
Daniel Agar
ca9b6bc137
commander: quick mag cal with fixed heading use MAV_CMD_FIXED_MAG_CAL_YAW message
...
- use proper Mavlink MAV_CMD_FIXED_MAG_CAL_YAW command for initiating magnetometer quick cal
- MAV_CMD_FIXED_MAG_CAL_YAW allows specifying the yaw and optionally latitude and longitude if the vehicle doesn't have GPS
2020-09-06 19:25:11 -04:00
Daniel Agar
1ac31100cc
commander: HITL skip auto disarm if lockdown
...
- auto disarm when locked down was added in #14766 to prevent user confusion in regular usage, but also breaks HITL where lockdown is enabled for safety
- fixes #15686
2020-09-06 18:38:05 -04:00
Daniel Agar
3fa9ff6d20
boards: px4_fmu-v5_debug increase LPWORK stack 1632 -> 1728 bytes
2020-09-06 18:36:30 -04:00
Daniel Agar
dfa82b58fd
msg/tools/uorb_to_ros_msgs.py set executable
2020-09-06 23:31:52 +02:00
Daniel Agar
cea1a19fe6
NuttX sched notes add C linkage
2020-09-06 19:18:42 +02:00
Daniel Agar
023f6d3983
NuttX cpuload monitoring optimization
...
- Nuttx only process all suspend & resume scheduling notes when top is running, otherwise only track IDLE
- convert cpuload and print load to c++
- delete unused fields from print_load struct
- update hrt_store_absolute_time (previous unused)
2020-09-05 14:35:50 -04:00
Daniel Agar
f7c364de37
Jenkins hardware print estimator and sensor messages
2020-09-04 10:48:26 -04:00
Daniel Agar
e5879f1bb6
estimator_sensor_bias: add bias variance
2020-09-04 10:48:26 -04:00
Daniel Agar
c54a0ff0c7
estimator_status: add device ids for accel/baro/gyro/mag
2020-09-04 10:48:26 -04:00
Daniel Agar
20c2fe6d28
estimator messages add explicit timestamp_sample
...
- timestamp is uORB publication metadata
- this allows us to see what the system saw at publication time plus the latency in estimation
2020-09-04 10:48:26 -04:00
Daniel Agar
09666c324f
msg: add mag device id pretty print decode
2020-09-04 10:48:26 -04:00
Daniel Agar
9215fb57a2
ekf2: advertise immediately to ensure consistent uORB instance numbering
2020-09-04 10:48:26 -04:00
Daniel Agar
9ccc1db649
estimator_status split out estimator_states
2020-09-04 10:48:26 -04:00
Daniel Agar
33a7fed240
ekf2: split out header and rename
2020-09-04 10:48:26 -04:00
Daniel Agar
4879a4e2ef
ekf2: use single uORB::Subscription, but change instance
2020-09-03 15:41:33 -04:00
Daniel Agar
59e66e5be9
sensors/vehicle_acceleration: use single uORB::Subscription, but change instance
2020-09-03 15:41:33 -04:00
Daniel Agar
ee88561a33
sensors/vehicle_angular_velocity: use single uORB::Subscription, but change instance
2020-09-03 15:41:33 -04:00
Daniel Agar
94f7b50970
uORB: add Subscription method to change instance
2020-09-03 15:41:33 -04:00
Daniel Agar
bf41574b1d
isentek/ist8308: set sensor_mag error count and fix bitwise AND
2020-09-03 07:50:43 +02:00
Daniel Agar
19b43b5e9c
uORB:: SubscriptionMultiArray fix construction argument
...
- uORB::SubscriptionInterval construction requires the interval THEN the instance
2020-09-03 07:49:57 +02:00
Daniel Agar
24125b3da4
magnetometer/qmc5883l: cleanup/rewrite driver ( #14384 )
2020-09-02 13:16:27 -04:00
Daniel Agar
7569722821
iSentek IST8310 magnetometer rewrite
...
- simple state machine to reset, configure, etc
- checked register mechanism (sensor will reset itself on configuration error)
- configured in 16 bit mode (1320 LSB/Gauss instead of 330 LSB/Gauss)
- adjusted orientation handling in driver to match datasheet as closely as possible
- in many external compass units the rotation was wrong and very difficult to actual determine how to set correctly
2020-09-02 13:14:45 -04:00
Daniel Agar
6ff361479c
uORB: introduce SubscriptionMultiArray for working with multi-instances
2020-09-02 12:46:47 -04:00
Daniel Agar
5017a7e33a
simulator: publish 2 instances of accel/baro/gyro/mag
2020-09-02 10:42:02 -04:00
Daniel Agar
668c16da83
px4_work_queue: reset statistics after each status print
2020-09-02 10:09:13 -04:00
Daniel Agar
7c2bb6a983
Jenkins: hardware increase timeout
2020-09-02 09:00:34 -04:00
Daniel Agar
e56dfe6497
rover_pos_control: revert sensor_combined purge
...
- sensor_combined is only used for scheduling in this module under certain circumstances and should be reviewed and replaced
- fixes https://github.com/PX4/Firmware/issues/15628
2020-09-01 21:09:33 -04:00
Daniel Agar
dd9676b73e
boards: px4/fmu-v5_debug increase interrupt stack 512 -> 768 bytes
2020-09-01 20:04:06 -04:00
Daniel Agar
978e35478f
logger: add_topic_multi optional specify max multi-instance ( #15647 )
2020-09-01 09:36:32 +02:00
Daniel Agar
cbf21959ab
Update submodule mavlink v2.0 to latest Tue Sep 1 00:39:26 UTC 2020
...
- mavlink v2.0 in PX4/Firmware (0b0d23e8fa ): https://github.com/mavlink/c_library_v2/commit/5ad778dea329d40f3cd128aae988986de79d830c
- mavlink v2.0 current upstream: https://github.com/mavlink/c_library_v2/commit/7d6be862bca8f733a854bfd6c97f1bb25cdb477c
- Changes: https://github.com/mavlink/c_library_v2/compare/5ad778dea329d40f3cd128aae988986de79d830c...7d6be862bca8f733a854bfd6c97f1bb25cdb477c
2020-08-31 22:30:52 -04:00
Daniel Agar
0b0d23e8fa
process_sensor_caldata.py: skip accel or gyro if temperature is NAN
2020-08-31 07:59:03 -04:00
Daniel Agar
fe391c0af8
perf: combine duplicate Knuth/Welford recursive mean
2020-08-31 10:03:56 +02:00
Daniel Agar
9feea0e2fd
commander: accel calibration fail early on bad rotations
2020-08-29 11:02:37 -04:00
Daniel Agar
28d52aef1f
bosch/bmi088: minor cleanup and consistency improvements
...
- track consecutive failures and trigger reset aggressively
- only count missed drdy interrupts, not time
- reset wait times consistent with other drivers
- accel improve FIFO count check if DRDY isn't available
2020-08-29 11:01:09 -04:00
Daniel Agar
a04d79b810
bosch/bmi055: minor cleanup and consistency improvements
...
- track consecutive failures and trigger reset aggressively
- only count missed drdy interrupts, not time
- reset wait times consistent with other drivers
2020-08-29 11:01:09 -04:00
Daniel Agar
08ad7850fc
rotation: combine duplicates
2020-08-28 18:29:09 -04:00
Daniel Agar
08cfea0b6f
commander: mag calibration auto rotation skip all duplicates
...
- add simple rotation test with corresponding blacklist
2020-08-28 18:29:09 -04:00
Daniel Agar
eb46a42400
bosch/bmi055: fix accel temperature reading
...
- single register output is in 2's complement
2020-08-28 16:01:08 -04:00
Daniel Agar
8869cb5e4a
Update submodule mavlink v2.0 to latest Fri Aug 28 00:39:46 UTC 2020
...
- mavlink v2.0 in PX4/Firmware (8e37063c7be7279b004a2eb584144e8a080422a9): https://github.com/mavlink/c_library_v2/commit/171ae1da5e1799235ea7e35f6d34bfe3897d9a9a
- mavlink v2.0 current upstream: https://github.com/mavlink/c_library_v2/commit/5ad778dea329d40f3cd128aae988986de79d830c
- Changes: https://github.com/mavlink/c_library_v2/compare/171ae1da5e1799235ea7e35f6d34bfe3897d9a9a...5ad778dea329d40f3cd128aae988986de79d830c
2020-08-27 21:43:47 -04:00
Daniel Agar
60a7f7f9f2
isentek/ist8308: small style and consistency cleanup
2020-08-25 13:46:04 -04:00
Daniel Agar
fb149045e3
drivers/imu/invensense: new ICM42605 IMU driver
2020-08-25 13:07:59 -04:00
Daniel Agar
0ae6da4bb0
Jenkins: microRTPS agent fetch git tags for versioning
2020-08-25 11:12:38 -04:00
Daniel Agar
0e64baa93b
parameters: delete unused PARAM_TYPE_STRUCT
2020-08-25 09:59:29 -04:00
Daniel Agar
1d0188fc07
logger: add vehicle_acceleration to default topics
2020-08-23 17:38:27 -04:00
Daniel Agar
53b3dfa64e
rover_pos_control: remove unused sensor_combined subscription
2020-08-23 17:38:27 -04:00
Daniel Agar
a368c7cded
muorb: delete unused sensor_combined.h include
2020-08-23 17:38:27 -04:00
Daniel Agar
57721cad9b
mavlink: replace sensor_combined with selected vehicle_imu
...
- check all ORB_MULTI_MAX_INSTANCES possible instances for future expansion
2020-08-23 17:38:27 -04:00
Daniel Agar
1d2e424c4c
commander: calibration replace sensor_combined with vehicle_acceleration
2020-08-23 17:38:27 -04:00
Daniel Agar
2c450280d2
examples/uuv_example_app: replace sensor_combined with vehicle_acceleration
2020-08-23 17:38:27 -04:00
Daniel Agar
e8a074dc03
examples/px4_simple_app: replace sensor_combined with vehicle_acceleration
2020-08-23 17:38:27 -04:00
Daniel Agar
1bb4c9d05f
frsky_telemetry: replace sensor_combined with vehicle_acceleration
2020-08-23 17:38:27 -04:00