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
9ccc1db649
estimator_status split out estimator_states
2020-09-04 10:48:26 -04:00
Hamish Willee
979243f38f
params: make parameter units more consistent ( #15502 )
2020-08-24 11:33:08 +02: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
Daniel Agar
fa44cd5cd5
px4_work_queue: rename navigation_and_controllers -> nav_and_controllers
...
- keep the thread within the current NuttX max length
2020-07-14 09:48:47 -04:00
Beat Küng
71dcf8d619
sitl: use lockstep components API
...
- avoids the need for ekf2_timestamp publications by q and lpe
- adds logger to the lockstep cycle and makes it poll on ekf2_timestamps
or vehicle_attitude. This avoids dropped samples (required for replay).
2020-06-23 11:53:55 -04:00
kritz
3897030c6f
Support odometry velocity in body and local frame ( #14703 )
...
* Update submodule ECL
* increase lower bound on EVV param
2020-05-13 12:43:02 +02:00
Daniel Agar
05886e053f
mavlink_log_info: always print to console and merge with mavlink_and_console_log_info
2020-05-12 08:53:51 +02:00
Mohammed Kabir
5ffe88672e
vehicle_odometry: add timestamp_sample field for latency monitoring
2020-04-28 13:58:43 -04:00
Daniel Agar
326d8efc16
move attitude controllers to new wq:attitude_ctrl
2020-04-27 21:34:35 -04:00
Daniel Agar
a89b69b0ea
vehicle_global_position: remove velocity fields (duplicates of local vx, vy, vz)
...
* attitude_estimator_q: get velocity from local position (if available)
2020-03-11 23:57:43 -04:00
Julian Oes
b53bd2b77f
LPE: make compatible with lockstep simulation
...
This fixes SITL with lockstep when using LPE and q estimator.
The required changes are:
- Publish ekf2_timestamps because simulator_mavlink expects them.
- Run LPE at 250 Hz instead of 80 Hz in order to keep everything in
lockstep running at 250 Hz.
2020-02-26 15:46:58 +01:00
Daniel Agar
c270e75156
vehicle_local_position: delete unused and redundant dist_bottom_rate
2020-01-18 12:50:57 -05:00
kamilritz
61b569245b
Reorder innovations in LPE
2019-12-05 11:29:29 +01:00
kamilritz
b73c80428e
ECL: Clean velPos logging, deprecate ekf2_innovations msg
2019-12-05 11:29:29 +01:00
Daniel Agar
f271efaf62
local_position_estimator: move to WQ and delete unused SubscriptionPollable
2019-11-22 16:02:54 -05:00
Beat Küng
3198610f85
src/platforms: move all headers to platforms/common/include/px4_platform_common
...
and remove the px4_ prefix, except for px4_config.h.
command to update includes:
for k in app.h atomic.h cli.h console_buffer.h defines.h getopt.h i2c.h init.h log.h micro_hal.h module.h module_params.h param.h param_macros.h posix.h sem.h sem.hpp shmem.h shutdown.h tasks.h time.h workqueue.h; do for i in $(grep -rl 'include <px4_'$k src platforms boards); do sed -i 's/#include <px4_'$k'/#include <px4_platform_common\/'$k/ $i; done; done
for in $(grep -rl 'include <px4_config.h' src platforms boards); do sed -i 's/#include <px4_config.h/#include <px4_platform_common\/px4_config.h'/ $i; done
Transitional headers for submodules are added (px4_{defines,log,time}.h)
2019-10-30 11:48:47 +01:00
Daniel Agar
c284198bec
clang-tidy: partially fix hicpp-use-override
2019-10-28 10:50:31 -04:00
Daniel Agar
279df3b1b8
clang-tidy: partially fix hicpp-use-equals-delete
2019-10-27 19:19:07 -04:00
Ilya Petrov
c58cfce6be
do not check VP fusion during GPS startup
...
This is solution for https://github.com/PX4/Firmware/issues/11864
2019-10-15 17:01:20 +01:00
Daniel Agar
2ad12d7977
sensors: create vehicle_angular_velocity module ( #12596 )
...
* split out filtered sensor_gyro aggregation from mc_att_control and move to wq:rate_ctrl
2019-08-06 12:55:25 -04:00
Daniel Agar
79d4c09d59
uORB::Publication simplify and cleanup
...
- base class is now template
- drop linked list
- virtualization no longer required
2019-06-12 08:48:19 -04:00
Daniel Agar
2c63e335e9
uORB::Subscription subscribe directly to uORB device node object
2019-06-03 17:06:21 -04:00
Oleg Kalachev
7ec6f0dca6
lpe: use minimum flow altitude from uORB instead of hardcoding
2019-05-05 02:57:58 -05:00
bresch
f08c00f324
Parameter update - Rename variables in modules/fw_pos_control
...
using parameter_update.py script
2019-04-03 15:38:50 +02:00
Oleg Kalachev
fbc8d01a7e
Rename distance_sensor.covariance to variance
2019-02-22 18:31:27 +00:00
Nuno Marques
cfd1be584e
Feature: VIO: add ODOMETRY stream ( #11084 )
...
* mavlink_messages: remove LOCAL_POSITION_NED_COV stream
* mavlink_messages.cpp: add ODOMETRY stream
* add MAV_ODOM_LP parameter to activate odometry loopback
* EKF2: add vehicle_odometry publisher
* Replace VISION_POSITION_ESTIMATE loopback with ODOMETRY
* LPE: add vehicle_odometry publisher
* set vehicle_odometry local_frame field
* mavlink_messages.cpp: ODOMETRY frame_id depends on MAV_ODOM_LP
2018-12-21 12:54:04 -05:00
Mara Bos
10c20b38ad
Fix many format strings.
...
Fixes these invalid format strings:
- A `%d` for a pointer (replaced it by `%p`)
- A 0x%08x (and a 0x%0x8!) for a pointer (replaced by %p)
- 2 cases of `%d` for a `ssize_t` (replaced it by `%zi`)
- 1 case of a %u for an `int` (replaced by %i)
- 3 cases of %d for a `long` (replaced by %ld)
- 19 cases of `%d`, `%i`, `%u` or `%lu` for a `size_t` (replaced it by `%zu`)
- An unused formatting argument (removed it)
- A missing `%d` (added it)
- A missing `%s` (added it)
- 2 cases of `%llu` for a `uint64_t` (replaced it by `"%" PRIu64`)
- 6 cases of giving a string directly as format string (replaced it by `("%s", string)`)
- 2 cases of %*-s, which should probably have been %-*s.
(Looks like NuttX accepts (the invalid) %*-s, but other platforms don't.)
- A %04x for a `uint32_t` (replaced by "%04" PRIx32)
2018-10-27 12:44:51 +02:00
TSC21
cc73f214d1
add covariance matrices index aliases
2018-09-18 09:52:33 +02:00
TSC21
8325724079
general fixes on VIO data access
2018-09-18 09:52:33 +02:00
TSC21
88ffd047e0
lpe: mocap and vision: set common ref timestamp
2018-09-18 09:52:33 +02:00
TSC21
7629075cae
lpe: sensors: mocap: fix global ref init logic
2018-09-18 09:52:33 +02:00
TSC21
efe312d4a6
style and format clean
2018-09-18 09:52:33 +02:00
TSC21
2cc193c173
lpe: mocap: fix enum constant in boolean context
2018-09-18 09:52:33 +02:00
TSC21
048ff56890
lpe: add vehicle_odometry and data validation handlers; improve inout interface
2018-09-18 09:52:33 +02:00
Daniel Agar
72792cef43
posix-configs shell scripts use /bin/sh to maximize compatibility ( #10292 )
...
- fix ocpoc line endings
2018-08-25 11:02:37 -04:00
Daniel Agar
da68ea0d11
estimator_status delete unused nan_flags
2018-08-03 17:42:48 -04:00
Daniel Agar
9ce83f2208
fix all sign-compare warnings
2018-07-01 09:36:55 +00:00
Daniel Agar
cf74166801
double promotion warning fix or ignore per module
2018-07-01 09:36:55 +00:00
Mohammed Kabir
9483885ed9
lpe : update for compatibility with new navigation limits architechture
2018-06-09 13:38:04 +02:00
Daniel Agar
2e92484325
ecl update to latest master with separate libraries ( #9406 )
2018-05-03 23:48:09 -04:00
Daniel Agar
ea3acb7121
cmake remove circular linking and reorganize
...
- px4_add_module now requires MAIN
- px4_add_library doesn't automatically link
2018-04-29 21:48:54 -04:00
Daniel Agar
d75fd72c02
stop manually defining physical constants
2018-04-19 07:24:58 +02:00
Daniel Agar
3b5b12e1d1
move baro and magnetometer data out of sensor_combined
2018-04-11 23:26:58 -04:00
stmoon
3ec37aa186
clarify the codes of LPE
2018-04-08 11:13:47 -04:00
Daniel Agar
29b3950747
move geo and geo_lookup to PX4/ecl
2018-03-26 23:16:55 -04:00
Beat Küng
7ee464c264
LPE: refactor to use ModuleParams
2018-03-13 17:35:15 +01:00
Beat Küng
83d55773af
LPE: refactor to use ModuleBase
2018-03-13 17:35:15 +01:00
Beat Küng
9fb9b2916a
LPE: use default & delete keywords for constructors & destructors
2018-03-13 17:35:15 +01:00
Daniel Agar
458db2e508
vehicle_global_position remove redundant evh and evv
...
- vehicle_status_flags condition_global_velocity_valid is also unnecessary
2018-03-05 13:20:28 -05:00