Matthias Grob
f70dda12a6
failureDetectorCheck: remove string manipulation
2020-09-08 11:42:30 +02:00
Matthias Grob
5eba25d2b5
Commander: remove duplicate flag changes
2020-09-08 11:42:30 +02:00
Matthias Grob
ab17b6bad4
failureDetectorCheck: revise messageing
2020-09-08 11:42:30 +02:00
Matthias Grob
981e05c633
FailureDetector: move esc topic check into esc status update
2020-09-08 11:42:30 +02:00
Matthias Grob
c180e09b9a
FailureDetector: replace resetAttitudeStatus
2020-09-08 11:42:30 +02:00
Matthias Grob
390edb770d
Commander: separate failure detector cases
...
One case could lead to the action for the other!
2020-09-08 11:42:30 +02:00
Matthias Grob
f47bb95b26
FailureDetector: remove obsolete bit switch checks
2020-09-08 11:42:30 +02:00
Matthias Grob
c9b81eaf08
FailureDetector: simplify updated/changed check
2020-09-08 11:42:30 +02:00
Matthias Grob
2bb5917188
FailureDetector: refactor naming, member order
2020-09-08 11:42:30 +02:00
Matthias Grob
25cdb383c6
Commander: simplify main failure detector condition
2020-09-08 11:42:30 +02:00
SalimTerryLi
c037dbef21
Rename and move src/drivers/adc to src/drivers/adc/board_adc
2020-09-07 23:09:20 -04:00
avionicsanonymous
df38e3798c
UAVCAN Rangefinder Support ( #15097 )
2020-09-07 19:22:08 -04:00
Dusan Zivkovic
fa1a0b848b
FlightTaskAuto: update waypoints on every iteration when in offtrack state
2020-09-07 19:25:10 +02:00
bresch
db25f20120
ekf2: move "using" keywords to cpp
2020-09-07 09:42:56 -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
PX4 BuildBot
d4ecf24bf2
Update submodule ecl to latest Sun Sep 6 12:39:41 UTC 2020
...
- ecl in PX4/Firmware (2a6181e31fd47fc99f42c6fea4d2186cda1196f0): https://github.com/PX4/ecl/commit/264c8c4e8681704e4719d0a03b848df8617c0863
- ecl current upstream: https://github.com/PX4/ecl/commit/a204c599903e6a462cab17bee061d4418a8b6b53
- Changes: https://github.com/PX4/ecl/compare/264c8c4e8681704e4719d0a03b848df8617c0863...a204c599903e6a462cab17bee061d4418a8b6b53
a204c59 2020-09-05 rjgritter - WindEstimator: Fix incorrect _state accessing, clarify enums (#906 )
2020-09-06 20:08:41 -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
SalimTerryLi
af84f449c7
isentek/ist8310: support starting with custom i2c address
2020-09-06 09:06:05 -04: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
Nicolas MARTIN
a9798454cd
temperature compensation: change sensor id not found message
2020-09-05 13:27:42 -04:00
Nicolas MARTIN
4addf8ec3e
thermal calibrtation: do not calibrate sensor without temperature sensor
2020-09-05 13:27:42 -04:00
Jonathan Hahn
7e5e8259f3
fw_pos_control_l1: fix swapped TECS time parameters ( #15685 )
...
Co-authored-by: Jonathan Hahn <hahn@wingcopter.com >
2020-09-04 15:11:31 -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
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
David Sidrane
7f91e41f67
hardfault_log:Add Fault Status registers
2020-09-03 14:55:09 +02: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
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
Matthias Grob
1d562aaf4a
battery: switch to PublicationMulti for battery_status
2020-09-01 10:25:03 +02:00
Matthias Grob
d06425d131
analog_battery: fix missing stdio include
...
This was not a problem before because battery.h
included the adc driver and implicitly snprintf
was defined through there.
2020-09-01 10:25:03 +02:00
Matthias Grob
5bc1df60a2
commander_params: remove some double spaces
2020-09-01 10:25:03 +02:00
Matthias Grob
d82f325f8d
ina226/voxlpm: make sure parameter sub is reset
...
The subscription to parameter updates has to get
copied otherwise the change detection will not get
reset for next time.
2020-09-01 10:25:03 +02:00
Matthias Grob
9c4e26c00c
battery: fix parameter migration and clarify
2020-09-01 10:25:03 +02:00
Matthias Grob
0db4881413
BatterySimulator: remove SimulatorBattery
...
It loads the battery parameters but then overwrites them
with hardcoded values and it breaks the ModuleParams
parent/child hierarchy. Both is undesired.
2020-09-01 10:25:03 +02:00
Daniel Agar
978e35478f
logger: add_topic_multi optional specify max multi-instance ( #15647 )
2020-09-01 09:36:32 +02:00
Daniel Agar
fe391c0af8
perf: combine duplicate Knuth/Welford recursive mean
2020-08-31 10:03:56 +02:00
Oleg
172a4e3557
batterry_status: fix checking default v_div
2020-08-30 11:09:59 -04:00