use pointer method get

This commit is contained in:
Sem van der Hoeven
2023-05-01 12:43:41 +02:00
parent 3f2ffd6dc7
commit 7b0520c920

View File

@@ -60,7 +60,7 @@ private:
{
auto msg = px4_msgs::msg::TrajectorySetpoint();
if (start_time_ - this->get_clock().now().seconds() < 20)
if (start_time_ - this->get_clock()->now().seconds() < 20)
{
msg.velocity[0] = 0;
msg.velocity[1] = 0;