Blimp: Use PosControl fixes

This commit is contained in:
Leonard Hall 2021-04-30 23:38:10 +09:30 committed by Andrew Tridgell
parent 4bae8f03a4
commit c91fdcea72
2 changed files with 4 additions and 4 deletions

View File

@ -134,11 +134,11 @@ void GCS_MAVLINK_Blimp::send_position_target_global_int()
// target_pos = blimp.wp_nav->get_wp_destination() * 0.01f; // convert to metres
// } else if (guided_mode == Guided_Velocity) {
// type_mask = 0x0FC7; // ignore everything except velocity
// target_vel = blimp.flightmode->get_desired_velocity() * 0.01f; // convert to m/s
// target_vel = blimp.flightmode->get_vel_desired_cms() * 0.01f; // convert to m/s
// } else {
// type_mask = 0x0FC0; // ignore everything except position & velocity
// target_pos = blimp.wp_nav->get_wp_destination() * 0.01f;
// target_vel = blimp.flightmode->get_desired_velocity() * 0.01f;
// target_vel = blimp.flightmode->get_vel_desired_cms() * 0.01f;
// }
// mavlink_msg_position_target_local_ned_send(

View File

@ -124,10 +124,10 @@ public:
// altitude fence
float get_avoidance_adjusted_climbrate(float target_rate);
// const Vector3f& get_desired_velocity() {
// const Vector3f& get_vel_desired_cms() {
// // note that position control isn't used in every mode, so
// // this may return bogus data:
// return pos_control->get_desired_velocity();
// return pos_control->get_vel_desired_cms();
// }
protected: