mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-22 07:44:03 -04:00
SITL: log airspeed in SIM2
This commit is contained in:
parent
13f7e12d2a
commit
7643c5d3f3
@ -475,13 +475,15 @@ void Aircraft::fill_fdm(struct sitl_fdm &fdm)
|
||||
// @Field: VN: Velocity north
|
||||
// @Field: VE: Velocity east
|
||||
// @Field: VD: Velocity down
|
||||
// @Field: As: Airspeed
|
||||
Vector3d pos = get_position_relhome();
|
||||
Vector3f vel = get_velocity_ef();
|
||||
AP::logger().WriteStreaming("SIM2", "TimeUS,PN,PE,PD,VN,VE,VD",
|
||||
"Qdddfff",
|
||||
AP::logger().WriteStreaming("SIM2", "TimeUS,PN,PE,PD,VN,VE,VD,As",
|
||||
"Qdddffff",
|
||||
AP_HAL::micros64(),
|
||||
pos.x, pos.y, pos.z,
|
||||
vel.x, vel.y, vel.z);
|
||||
vel.x, vel.y, vel.z,
|
||||
airspeed_pitot);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user