change to attitude setpoints
This commit is contained in:
@@ -41,9 +41,9 @@ private:
|
|||||||
// set message to enable attitude
|
// set message to enable attitude
|
||||||
auto msg = px4_msgs::msg::OffboardControlMode();
|
auto msg = px4_msgs::msg::OffboardControlMode();
|
||||||
msg.position = false;
|
msg.position = false;
|
||||||
msg.velocity = true;
|
msg.velocity = false;
|
||||||
msg.acceleration = false;
|
msg.acceleration = false;
|
||||||
msg.attitude = false;
|
msg.attitude = true;
|
||||||
msg.body_rate = false;
|
msg.body_rate = false;
|
||||||
msg.actuator = false;
|
msg.actuator = false;
|
||||||
|
|
||||||
|
|||||||
@@ -200,7 +200,7 @@ private:
|
|||||||
flying = true;
|
flying = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
send_trajectory_setpoint();
|
send_attitude_setpoint();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user