fix bug
This commit is contained in:
@@ -60,7 +60,7 @@ private:
|
|||||||
{
|
{
|
||||||
|
|
||||||
auto msg = px4_msgs::msg::TrajectorySetpoint();
|
auto msg = px4_msgs::msg::TrajectorySetpoint();
|
||||||
if (start_time_ - this->get_clock()->now().seconds() < 20)
|
if (this->get_clock()->now().seconds() - start_time_ < 20)
|
||||||
{
|
{
|
||||||
msg.velocity[0] = 0;
|
msg.velocity[0] = 0;
|
||||||
msg.velocity[1] = 0;
|
msg.velocity[1] = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user