mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-06-28 02:10:35 +08:00
gimbal: introduce timestamp of last setpoint update
To enable implementing a timeout when there's no new setpoint coming in.
This commit is contained in:
committed by
Julian Oes
parent
d5f3e858e8
commit
2bccb20ee6
@@ -53,6 +53,7 @@ InputTest::UpdateResult InputTest::update(unsigned int timeout_ms, ControlData &
|
||||
}
|
||||
|
||||
control_data.type = ControlData::Type::Angle;
|
||||
control_data.timestamp_last_update = hrt_absolute_time();
|
||||
|
||||
control_data.type_data.angle.frames[0] = ControlData::TypeData::TypeAngle::Frame::AngleAbsoluteFrame;
|
||||
control_data.type_data.angle.frames[1] = ControlData::TypeData::TypeAngle::Frame::AngleAbsoluteFrame;
|
||||
|
||||
Reference in New Issue
Block a user