try changing yawspeed
This commit is contained in:
@@ -66,6 +66,7 @@ private:
|
|||||||
msg.velocity[1] = 0;
|
msg.velocity[1] = 0;
|
||||||
msg.velocity[2] = D_SPEED(10);
|
msg.velocity[2] = D_SPEED(10);
|
||||||
msg.yawspeed = 0;
|
msg.yawspeed = 0;
|
||||||
|
msg.yaw = -3.14;
|
||||||
} else {
|
} else {
|
||||||
if (!has_swithed)
|
if (!has_swithed)
|
||||||
{
|
{
|
||||||
@@ -76,6 +77,7 @@ private:
|
|||||||
msg.velocity[1] = 0;
|
msg.velocity[1] = 0;
|
||||||
msg.velocity[2] = D_SPEED(0);
|
msg.velocity[2] = D_SPEED(0);
|
||||||
msg.yawspeed = 1;
|
msg.yawspeed = 1;
|
||||||
|
msg.yaw = 3.14;
|
||||||
}
|
}
|
||||||
|
|
||||||
// if (setpoint_count < 30)
|
// if (setpoint_count < 30)
|
||||||
@@ -89,7 +91,7 @@ private:
|
|||||||
// msg.yawspeed = 1;
|
// msg.yawspeed = 1;
|
||||||
|
|
||||||
// }
|
// }
|
||||||
msg.yaw = -3.14;
|
|
||||||
msg.timestamp = this->get_clock()->now().nanoseconds() / 1000;
|
msg.timestamp = this->get_clock()->now().nanoseconds() / 1000;
|
||||||
|
|
||||||
trajectory_setpoint_publisher->publish(msg);
|
trajectory_setpoint_publisher->publish(msg);
|
||||||
|
|||||||
Reference in New Issue
Block a user