Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] introduce new vehicle_imu message #9756

Closed
wants to merge 7 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Tools/sitl_run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ then
mkdir -p $rootfs
publisher_rules_file="$rootfs/orb_publisher.rules"
cat <<EOF > "$publisher_rules_file"
restrict_topics: sensor_combined, vehicle_gps_position, vehicle_land_detected
restrict_topics: vehicle_imu, vehicle_gps_position, vehicle_land_detected
module: replay
ignore_others: false
EOF
Expand Down
1 change: 1 addition & 0 deletions msg/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ set(msg_files
vehicle_control_mode.msg
vehicle_global_position.msg
vehicle_gps_position.msg
vehicle_imu.msg
vehicle_land_detected.msg
vehicle_local_position.msg
vehicle_local_position_setpoint.msg
Expand Down
4 changes: 2 additions & 2 deletions msg/ekf2_timestamps.msg
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
# ekf2. It can be used for reproducible replay.

# the timestamp field (auto-generated) is the ekf2 reference time and matches
# the timestamp of the sensor_combined topic.
# the timestamp of the vehicle_imu topic.


int16 RELATIVE_TIMESTAMP_INVALID = 32767 # (0x7fff) If one of the relative timestamps
# is set to this value, it means the associated sensor values did not update

# timestamps are relative to the main timestamp and are in 0.1 ms (timestamp +
# *_timestamp_rel = absolute timestamp). For int16, this allows a maximum
# difference of +-3.2s to the sensor_combined topic.
# difference of +-3.2s to the vehicle_imu topic.

int16 airspeed_timestamp_rel
int16 distance_sensor_timestamp_rel
Expand Down
2 changes: 1 addition & 1 deletion msg/sensor_selection.msg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Sensor ID's for the voted sensors output on the sensor_combined topic.
# Sensor ID's for the voted sensors output on the vehicle_imu topic.
# Will be updated on startup of the sensor module and when sensor selection changes
#

Expand Down
1 change: 1 addition & 0 deletions msg/tools/uorb_rtps_message_ids.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@
'vehicle_land_detected': 86,
'vehicle_local_position': 87,
'vehicle_local_position_setpoint': 88,
'vehicle_imu': 95,
'vehicle_rates_setpoint': 89,
'vehicle_roi': 90,
'vehicle_status_flags': 91,
Expand Down
9 changes: 9 additions & 0 deletions msg/vehicle_imu.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#
# IMU integrated measurements in SI-unit form.
#

uint16 delta_angle_dt # gyroscope measurement sampling period in us
float32[3] delta_angle # integration of the gyroscope measurements in the XYZ body frame in radians

uint16 delta_velocity_dt # accelerometer measurement sampling period in us
float32[3] delta_velocity # integration of the accelerometer measurements in the XYZ body frame in m/s
8 changes: 4 additions & 4 deletions posix-configs/SITL/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,10 @@ Example "startup" file
uorb start
mavlink start -x -u 14556
simulator start -s
param set CAL_GYRO0_ID 2293760
param set CAL_ACC0_ID 1310720
param set CAL_ACC1_ID 1376256
param set CAL_MAG0_ID 196608
param set CAL_ACC0_ID 1376264
param set CAL_ACC1_ID 1310728
param set CAL_GYRO0_ID 2293768
param set CAL_MAG0_ID 196616
rgbled start
tone_alarm start
gyrosim start
Expand Down
2 changes: 1 addition & 1 deletion posix-configs/SITL/init/ekf2/hippocampus
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
uorb start
param load
param set CAL_GYRO0_ID 2293768
param set CAL_ACC0_ID 1376264
param set CAL_ACC1_ID 1310728
param set CAL_GYRO0_ID 2293768
param set CAL_MAG0_ID 196616
param set COM_DISARM_LAND 0
param set MAV_TYPE 3
Expand Down
9 changes: 0 additions & 9 deletions posix-configs/SITL/init/ekf2/iris
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,9 @@ param load
dataman start
param set BAT_N_CELLS 3
param set CAL_ACC0_ID 1376264
param set CAL_ACC0_XOFF 0.01
param set CAL_ACC0_XSCALE 1.01
param set CAL_ACC0_YOFF -0.01
param set CAL_ACC0_YSCALE 1.01
param set CAL_ACC0_ZOFF 0.01
param set CAL_ACC0_ZSCALE 1.01
param set CAL_ACC1_ID 1310728
param set CAL_ACC1_XOFF 0.01
param set CAL_GYRO0_ID 2293768
param set CAL_GYRO0_XOFF 0.01
param set CAL_MAG0_ID 196616
param set CAL_MAG0_XOFF 0.01
param set COM_DISARM_LAND 3
param set COM_OBL_ACT 2
param set COM_OBL_RC_ACT 0
Expand Down
9 changes: 0 additions & 9 deletions posix-configs/SITL/init/ekf2/iris_1
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,9 @@ dataman start
param set MAV_SYS_ID 1
param set BAT_N_CELLS 3
param set CAL_ACC0_ID 1376264
param set CAL_ACC0_XOFF 0.01
param set CAL_ACC0_XSCALE 1.01
param set CAL_ACC0_YOFF -0.01
param set CAL_ACC0_YSCALE 1.01
param set CAL_ACC0_ZOFF 0.01
param set CAL_ACC0_ZSCALE 1.01
param set CAL_ACC1_ID 1310728
param set CAL_ACC1_XOFF 0.01
param set CAL_GYRO0_ID 2293768
param set CAL_GYRO0_XOFF 0.01
param set CAL_MAG0_ID 196616
param set CAL_MAG0_XOFF 0.01
param set COM_DISARM_LAND 3
param set COM_OBL_ACT 2
param set COM_OBL_RC_ACT 0
Expand Down
9 changes: 0 additions & 9 deletions posix-configs/SITL/init/ekf2/iris_2
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,9 @@ dataman start
param set MAV_SYS_ID 2
param set BAT_N_CELLS 3
param set CAL_ACC0_ID 1376264
param set CAL_ACC0_XOFF 0.01
param set CAL_ACC0_XSCALE 1.01
param set CAL_ACC0_YOFF -0.01
param set CAL_ACC0_YSCALE 1.01
param set CAL_ACC0_ZOFF 0.01
param set CAL_ACC0_ZSCALE 1.01
param set CAL_ACC1_ID 1310728
param set CAL_ACC1_XOFF 0.01
param set CAL_GYRO0_ID 2293768
param set CAL_GYRO0_XOFF 0.01
param set CAL_MAG0_ID 196616
param set CAL_MAG0_XOFF 0.01
param set COM_DISARM_LAND 3
param set COM_OBL_ACT 2
param set COM_OBL_RC_ACT 0
Expand Down
9 changes: 0 additions & 9 deletions posix-configs/SITL/init/ekf2/iris_irlock
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,9 @@ param load
dataman start
param set BAT_N_CELLS 3
param set CAL_ACC0_ID 1376264
param set CAL_ACC0_XOFF 0.01
param set CAL_ACC0_XSCALE 1.01
param set CAL_ACC0_YOFF -0.01
param set CAL_ACC0_YSCALE 1.01
param set CAL_ACC0_ZOFF 0.01
param set CAL_ACC0_ZSCALE 1.01
param set CAL_ACC1_ID 1310728
param set CAL_ACC1_XOFF 0.01
param set CAL_GYRO0_ID 2293768
param set CAL_GYRO0_XOFF 0.01
param set CAL_MAG0_ID 196616
param set CAL_MAG0_XOFF 0.01
param set COM_DISARM_LAND 3
param set COM_OBL_ACT 2
param set COM_OBL_RC_ACT 0
Expand Down
11 changes: 1 addition & 10 deletions posix-configs/SITL/init/ekf2/iris_opt_flow
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,10 @@ param set SYS_RESTART_TYPE 2
param set SYS_MC_EST_GROUP 2
dataman start
param set BAT_N_CELLS 3
param set CAL_GYRO0_ID 2293768
param set CAL_ACC0_ID 1376264
param set CAL_ACC1_ID 1310728
param set CAL_GYRO0_ID 2293768
param set CAL_MAG0_ID 196616
param set CAL_GYRO0_XOFF 0.01
param set CAL_ACC0_XOFF 0.01
param set CAL_ACC0_YOFF -0.01
param set CAL_ACC0_ZOFF 0.01
param set CAL_ACC0_XSCALE 1.01
param set CAL_ACC0_YSCALE 1.01
param set CAL_ACC0_ZSCALE 1.01
param set CAL_ACC1_XOFF 0.01
param set CAL_MAG0_XOFF 0.01
param set SENS_BOARD_ROT 0
param set SENS_BOARD_X_OFF 0.000001
param set COM_RC_IN_MODE 1
Expand Down
9 changes: 0 additions & 9 deletions posix-configs/SITL/init/ekf2/iris_rplidar
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,9 @@ param load
dataman start
param set BAT_N_CELLS 3
param set CAL_ACC0_ID 1376264
param set CAL_ACC0_XOFF 0.01
param set CAL_ACC0_XSCALE 1.01
param set CAL_ACC0_YOFF -0.01
param set CAL_ACC0_YSCALE 1.01
param set CAL_ACC0_ZOFF 0.01
param set CAL_ACC0_ZSCALE 1.01
param set CAL_ACC1_ID 1310728
param set CAL_ACC1_XOFF 0.01
param set CAL_GYRO0_ID 2293768
param set CAL_GYRO0_XOFF 0.01
param set CAL_MAG0_ID 196616
param set CAL_MAG0_XOFF 0.01
param set COM_DISARM_LAND 3
param set COM_OBL_ACT 2
param set COM_OBL_RC_ACT 0
Expand Down
11 changes: 1 addition & 10 deletions posix-configs/SITL/init/ekf2/iris_vision
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,10 @@ param set SYS_RESTART_TYPE 2
param set SYS_MC_EST_GROUP 2
dataman start
param set BAT_N_CELLS 3
param set CAL_GYRO0_ID 2293768
param set CAL_ACC0_ID 1376264
param set CAL_ACC1_ID 1310728
param set CAL_GYRO0_ID 2293768
param set CAL_MAG0_ID 196616
param set CAL_GYRO0_XOFF 0.01
param set CAL_ACC0_XOFF 0.01
param set CAL_ACC0_YOFF -0.01
param set CAL_ACC0_ZOFF 0.01
param set CAL_ACC0_XSCALE 1.01
param set CAL_ACC0_YSCALE 1.01
param set CAL_ACC0_ZSCALE 1.01
param set CAL_ACC1_XOFF 0.01
param set CAL_MAG0_XOFF 0.01
param set SENS_BOARD_ROT 0
param set SENS_BOARD_X_OFF 0.000001
param set COM_RC_IN_MODE 1
Expand Down
9 changes: 0 additions & 9 deletions posix-configs/SITL/init/ekf2/multiple_iris
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,9 @@ param load
dataman start
param set BAT_N_CELLS 3
param set CAL_ACC0_ID 1376264
param set CAL_ACC0_XOFF 0.01
param set CAL_ACC0_XSCALE 1.01
param set CAL_ACC0_YOFF -0.01
param set CAL_ACC0_YSCALE 1.01
param set CAL_ACC0_ZOFF 0.01
param set CAL_ACC0_ZSCALE 1.01
param set CAL_ACC1_ID 1310728
param set CAL_ACC1_XOFF 0.01
param set CAL_GYRO0_ID 2293768
param set CAL_GYRO0_XOFF 0.01
param set CAL_MAG0_ID 196616
param set CAL_MAG0_XOFF 0.01
param set COM_DISARM_LAND 3
param set COM_OBL_ACT 2
param set COM_OBL_RC_ACT 0
Expand Down
9 changes: 0 additions & 9 deletions posix-configs/SITL/init/ekf2/plane
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,9 @@ dataman start
param set BAT_N_CELLS 3

param set CAL_ACC0_ID 1376264
param set CAL_ACC0_XOFF 0.01
param set CAL_ACC0_XSCALE 1.01
param set CAL_ACC0_YOFF -0.01
param set CAL_ACC0_YSCALE 1.01
param set CAL_ACC0_ZOFF 0.01
param set CAL_ACC0_ZSCALE 1.01
param set CAL_ACC1_ID 1310728
param set CAL_ACC1_XOFF 0.01
param set CAL_GYRO0_ID 2293768
param set CAL_GYRO0_XOFF 0.01
param set CAL_MAG0_ID 196616
param set CAL_MAG0_XOFF 0.01

param set COM_POS_FS_DELAY 5
param set COM_POS_FS_EPH 25
Expand Down
9 changes: 0 additions & 9 deletions posix-configs/SITL/init/ekf2/rover
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,9 @@ param load
dataman start
param set BAT_N_CELLS 3
param set CAL_ACC0_ID 1376264
param set CAL_ACC0_XOFF 0.01
param set CAL_ACC0_XSCALE 1.01
param set CAL_ACC0_YOFF -0.01
param set CAL_ACC0_YSCALE 1.01
param set CAL_ACC0_ZOFF 0.01
param set CAL_ACC0_ZSCALE 1.01
param set CAL_ACC1_ID 1310728
param set CAL_ACC1_XOFF 0.01
param set CAL_GYRO0_ID 2293768
param set CAL_GYRO0_XOFF 0.01
param set CAL_MAG0_ID 196616
param set CAL_MAG0_XOFF 0.01
param set COM_RC_IN_MODE 1
param set EKF2_ANGERR_INIT 0.01
param set EKF2_GBIAS_INIT 0.01
Expand Down
9 changes: 0 additions & 9 deletions posix-configs/SITL/init/ekf2/solo
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,9 @@ param load
dataman start
param set BAT_N_CELLS 3
param set CAL_ACC0_ID 1376264
param set CAL_ACC0_XOFF 0.01
param set CAL_ACC0_XSCALE 1.01
param set CAL_ACC0_YOFF -0.01
param set CAL_ACC0_YSCALE 1.01
param set CAL_ACC0_ZOFF 0.01
param set CAL_ACC0_ZSCALE 1.01
param set CAL_ACC1_ID 1310728
param set CAL_ACC1_XOFF 0.01
param set CAL_GYRO0_ID 2293768
param set CAL_GYRO0_XOFF 0.01
param set CAL_MAG0_ID 196616
param set CAL_MAG0_XOFF 0.01
param set COM_DISARM_LAND 3
param set COM_RC_IN_MODE 1
param set EKF2_AID_MASK 1
Expand Down
9 changes: 0 additions & 9 deletions posix-configs/SITL/init/ekf2/standard_vtol
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,9 @@ param load
dataman start
param set BAT_N_CELLS 3
param set CAL_ACC0_ID 1376264
param set CAL_ACC0_XOFF 0.01
param set CAL_ACC0_XSCALE 1.01
param set CAL_ACC0_YOFF -0.01
param set CAL_ACC0_YSCALE 1.01
param set CAL_ACC0_ZOFF 0.01
param set CAL_ACC0_ZSCALE 1.01
param set CAL_ACC1_ID 1310728
param set CAL_ACC1_XOFF 0.01
param set CAL_GYRO0_ID 2293768
param set CAL_GYRO0_XOFF 0.01
param set CAL_MAG0_ID 196616
param set CAL_MAG0_XOFF 0.01
param set COM_DISARM_LAND 5
param set COM_RC_IN_MODE 1
param set EKF2_AID_MASK 1
Expand Down
9 changes: 0 additions & 9 deletions posix-configs/SITL/init/ekf2/tailsitter
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,9 @@ param load
dataman start
param set BAT_N_CELLS 3
param set CAL_ACC0_ID 1376264
param set CAL_ACC0_XOFF 0.01
param set CAL_ACC0_XSCALE 1.01
param set CAL_ACC0_YOFF -0.01
param set CAL_ACC0_YSCALE 1.01
param set CAL_ACC0_ZOFF 0.01
param set CAL_ACC0_ZSCALE 1.01
param set CAL_ACC1_ID 1310728
param set CAL_ACC1_XOFF 0.01
param set CAL_GYRO0_ID 2293768
param set CAL_GYRO0_XOFF 0.01
param set CAL_MAG0_ID 196616
param set CAL_MAG0_XOFF 0.01
param set COM_RC_IN_MODE 1
param set EKF2_AID_MASK 1
param set EKF2_ANGERR_INIT 0.01
Expand Down
9 changes: 0 additions & 9 deletions posix-configs/SITL/init/ekf2/tiltrotor
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,9 @@ dataman start
param set BAT_N_CELLS 3

param set CAL_ACC0_ID 1376264
param set CAL_ACC0_XOFF 0.01
param set CAL_ACC0_XSCALE 1.01
param set CAL_ACC0_YOFF -0.01
param set CAL_ACC0_YSCALE 1.01
param set CAL_ACC0_ZOFF 0.01
param set CAL_ACC0_ZSCALE 1.01
param set CAL_ACC1_ID 1310728
param set CAL_ACC1_XOFF 0.01
param set CAL_GYRO0_ID 2293768
param set CAL_GYRO0_XOFF 0.01
param set CAL_MAG0_ID 196616
param set CAL_MAG0_XOFF 0.01

param set COM_DISARM_LAND 5
param set COM_RC_IN_MODE 1
Expand Down
9 changes: 0 additions & 9 deletions posix-configs/SITL/init/ekf2/typhoon_h480
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,9 @@ param load
dataman start
param set BAT_N_CELLS 3
param set CAL_ACC0_ID 1376264
param set CAL_ACC0_XOFF 0.001
param set CAL_ACC0_XSCALE 1.0001
param set CAL_ACC0_YOFF -0.001
param set CAL_ACC0_YSCALE 1.0001
param set CAL_ACC0_ZOFF 0.001
param set CAL_ACC0_ZSCALE 1.0001
param set CAL_ACC1_ID 1310728
param set CAL_ACC1_XOFF 0.001
param set CAL_GYRO0_ID 2293768
param set CAL_GYRO0_XOFF 0.001
param set CAL_MAG0_ID 196616
param set CAL_MAG0_XOFF 0.001
param set COM_DISARM_LAND 3
param set COM_RC_IN_MODE 1
param set EKF2_AID_MASK 1
Expand Down
11 changes: 1 addition & 10 deletions posix-configs/SITL/init/inav/iris
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,10 @@ param set SYS_AUTOSTART 4010
param set SYS_RESTART_TYPE 2
param set SYS_MC_EST_GROUP 0
dataman start
param set CAL_GYRO0_ID 2293768
param set CAL_ACC0_ID 1376264
param set CAL_ACC1_ID 1310728
param set CAL_GYRO0_ID 2293768
param set CAL_MAG0_ID 196616
param set CAL_GYRO0_XOFF 0.01
param set CAL_ACC0_XOFF 0.01
param set CAL_ACC0_YOFF -0.01
param set CAL_ACC0_ZOFF 0.01
param set CAL_ACC0_XSCALE 1.01
param set CAL_ACC0_YSCALE 1.01
param set CAL_ACC0_ZSCALE 1.01
param set CAL_ACC1_XOFF 0.01
param set CAL_MAG0_XOFF 0.01
param set MPC_XY_P 0.4
param set MPC_XY_VEL_P 0.2
param set MPC_XY_VEL_D 0.005
Expand Down
Loading