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:
Matthias Grob
2024-10-17 14:57:08 +02:00
committed by Julian Oes
parent d5f3e858e8
commit 2bccb20ee6
7 changed files with 30 additions and 16 deletions
+1
View File
@@ -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;