change to use d_speed

This commit is contained in:
Sem van der Hoeven
2023-05-01 12:47:31 +02:00
parent 500356f4e9
commit 568197a95a

View File

@@ -60,11 +60,11 @@ private:
{
auto msg = px4_msgs::msg::TrajectorySetpoint();
if (this->get_clock()->now().seconds() - start_time_ < 20)
if (this->get_clock()->now().seconds() - start_time_ < 10)
{
msg.velocity[0] = 0;
msg.velocity[1] = 0;
msg.velocity[2] = -15;
msg.velocity[2] = D_SPEED(10);
msg.yawspeed = 0;
} else {
if (!has_swithed)
@@ -74,7 +74,7 @@ private:
}
msg.velocity[0] = 0;
msg.velocity[1] = 0;
msg.velocity[2] = 0;
msg.velocity[2] = D_SPEED(0);
msg.yawspeed = 0;
}