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
4dee5d6a1c
commander: level calibration print changes
2020-08-21 10:12:13 -04:00
Daniel Agar
c76cdaf8a8
commander: mag calibration add simple offset only quick cal using GPS & attitude
2020-08-21 10:12:13 -04:00
Daniel Agar
f6ad9bdb64
commander: don't set RC lost during calibration
2020-08-21 10:12:13 -04:00
Daniel Agar
5242160a26
commander: accel calibration reduce status length
...
- this keeps the string within a single Mavlink STATUSTEXT
- fixes #14829
2020-08-21 10:12:13 -04:00
Daniel Agar
d824706571
commander: mag calibration keep manually configured special rotations
...
- ROTATION_PITCH_9_YAW_180 and ROTATION_ROLL_90_PITCH_68_YAW_293 are
kept if manually configured
2020-08-21 10:12:13 -04:00
Daniel Agar
0bb6ad01bd
commander: mag calibration rotation also compare other internal mags
2020-08-21 10:12:13 -04:00
Daniel Agar
07d727a4a8
commander: mag calibration auto rotation simplify applying calibration and rotation
2020-08-21 10:12:13 -04:00
Daniel Agar
1a6eb7859c
commander: mag calibration auto rotation improvements
...
- skip rotations that are identical or very close
- compute mean squared error (MSE) to skip a sqrt
2020-08-21 10:12:13 -04:00
Daniel Agar
bc6e4c8a92
commander: accel calibration use all queued data
...
- print each calibration when finished
2020-08-21 10:12:13 -04:00
Daniel Agar
f9aca05ede
commander: gyro calibration use all queued data
...
- print calibration status when finished
2020-08-21 10:12:13 -04:00
Daniel Agar
f2c9865c9b
sensor mag add minimal queue and calibration check all
...
- mag calibration acceptance check sphere/ellipsoid fit status
2020-08-21 10:12:13 -04:00
Daniel Agar
b2e8f6839f
commander: mag calibration improve console and debug output
2020-08-21 10:12:13 -04:00
Daniel Agar
2bb04f2261
commander: increase COM_ARM_MAG_ANG 35 -> 45 degrees
...
- in practice this is mostly useful for identifying incorrect rotations
which we mostly have in 45 degree increments
- handling a vehicle on the ground can easily disturb one mag by more than 30 degrees, so this is often distracting noise
2020-08-21 10:12:13 -04:00
Daniel Agar
44c877c603
sensors: size sensor error_count consistently (uint32_t)
2020-08-21 10:12:13 -04:00
Daniel Agar
e6fd5a43bc
commander: magnetometer calibration automatically set the rotation of external magnetometers relative to the first internal
...
- see #15120 for more detail
2020-08-21 10:12:13 -04:00
Daniel Agar
27f23ac290
move initial sensor priority to parameters and purge ORB_PRIORITY
...
- CAL_ACCx_EN -> CAL_ACCx_PRIO
- CAL_GYROx_EN -> CAL_GYROx_PRIO
- CAL_MAGx_EN -> CAL_MAGx_PRIO
2020-08-21 10:12:13 -04:00
Daniel Agar
971b1e4b4d
sensors: move mag aggregation to new VehicleMagnetometer WorkItem
...
- purge all reminaing magnetometer IOCTL usage
- mag calibration add off diagonal (soft iron) scale factors
2020-08-21 10:12:13 -04:00
Daniel Agar
ad148af2fd
commander: mag_calibration move to Magnetometer calibration helper
2020-08-21 10:12:13 -04:00
Daniel Agar
d92ddffa5d
commander: add simple accelerometer quick calibration
2020-08-21 10:12:13 -04:00
Daniel Agar
e3e8c55e82
accel & gyro calibration helpers
2020-08-21 10:12:13 -04:00
Julian Kent
7958586f35
Only use roll/pitch not centered for RC override, and increase override threshold
2020-08-20 11:50:16 -04:00
Julian Kent
e2e72fd81e
Fix map distortion due to high latitudes ( #15449 )
2020-08-19 09:55:15 +02:00
bazooka joe
190b96a46c
SMbus battery driver - a lot of updates and optimizations
...
- added support for BQ40Z80 based battery
- added performance counter for interface errors
- added SMART_BATTERY_INFO mavlink message
- general code cleanups and optimization
- fixed: void flooding the log in case of interface error
- fixed: using _batt_startup_capacity instead of _batt_capacity for discharged_mah
- update: read manufacture_date
- update: get _cell_count from parameter and not const 4
- update: avoid re-reading data that has already been read and stored on class already
- currently the battery type defined by BAT_SMBUS_MODEL parameter and not by auto detection
2020-08-18 21:41:19 -04:00
Daniel Agar
372866a22b
uORB::DeviceNode replace SubscriptionData with uORB::SubscriptionInterval
2020-08-18 20:48:30 -04:00
TSC21
ac9c8bcc09
microRTPS: cmake: fix relative path for IDL files
2020-08-18 17:16:04 +02:00
TSC21
a091a70470
microRTPS: split the microRTPS client and agent dest directories for better visbility and handling
2020-08-18 17:16:04 +02:00
TSC21
56a105e322
logger: by default, log the onboard_computer_status topic
2020-08-17 13:24:12 +02:00
Beat Küng
ba5d7773f8
mavlink_timesync: print sender comp id for 'RTT too high for timesync' msg ( #15539 )
...
helps with debugging
2020-08-13 10:58:25 +02:00
Thies Lennart Alff
d7d8aa9b64
uuv_att_control: removed redundant code, switched to new uORB API
2020-08-12 13:16:28 -04:00
Daniel Agar
942eb83184
sensors: keep legacy params active (BAT_V_DIV/BAT_A_PER_V) for QGC SITL
...
- fixes https://github.com/PX4/Firmware/issues/15505
2020-08-12 11:57:34 -04:00
Daniel Agar
f19a20dc43
commander: preflight power check ignore module count if USB connected
...
- this check isn't relevent during bench testing
2020-08-12 11:48:38 -04:00
RomanBapst
355e3ea986
vtol_type: use correct pwm device path in init function
...
Signed-off-by: RomanBapst <bapstroman@gmail.com >
2020-08-12 08:55:23 +02:00
RomanBapst
01535a726a
vtol_type: reset quadchute filter states if TECS is not running
...
Signed-off-by: RomanBapst <bapstroman@gmail.com >
2020-08-12 08:55:23 +02:00
SalimTerryLi
49e83b6ae4
load_mon: add linux support
2020-08-11 18:33:44 -04:00
kritz
9d962cdfbc
Pr update matrix ( #15520 )
...
* Update submodule Matrix
* replace deprecated matrix functions
* update submodule ECL
* Update Matrix submodule
* Use absolute value of loiter radius
* Update ECL submodule
2020-08-11 10:08:41 +02:00
Daniel Agar
b7f9ff6747
mc_att_control: don't use auto for primitive types
...
Co-authored-by: Mathieu Bresciani <brescianimathieu@gmail.com >
2020-08-10 14:07:42 -04:00
Daniel Agar
0781fdd813
mc_att_control: don't store vehicle_status copy
2020-08-10 14:07:42 -04:00
Daniel Agar
8c42c38650
mc_att_control: don't store full vehicle_land_detected copy
2020-08-10 14:07:42 -04:00
Daniel Agar
41a1675c53
AttitudeControl: only normalize attitude setpoint once on update
2020-08-10 14:07:42 -04:00
Daniel Agar
1c42d12491
mc_att_control: don't keep att copy and avoid unnecessary Quatf construction and copies
2020-08-10 14:07:42 -04:00
Daniel Agar
5e739f66d6
mc_att_control: inline control attitude call and rate publication
...
- this makes it clear that we didn't need to keep local copies of the rate setpoint
2020-08-10 14:07:42 -04:00
Daniel Agar
14f734ac15
mc_pos_control: use local position timestamp for dt
2020-08-10 10:51:52 -04:00
Daniel Agar
c5eb084236
mc_rate_control: use angular velocity timestamp for dt
2020-08-10 10:51:52 -04:00
Daniel Agar
45ee16d236
mc_att_control: use attitude timestamp for dt
2020-08-10 10:51:52 -04:00
Daniel Agar
9992bd05db
fw_att_control: pass time through from run
2020-08-10 10:51:52 -04:00
Daniel Agar
560c22e612
fw_pos_control_l1: pass time through from run
2020-08-10 10:51:52 -04:00
Daniel Agar
97fc1db768
vehicle_local_position: rename yaw -> heading and add reset logic
...
- vehicle_global_position yaw removed (redundant)
2020-08-10 11:42:03 +02:00