Skip to content

Commit

Permalink
AP_ExternalControl: add count
Browse files Browse the repository at this point in the history
  • Loading branch information
magicrub committed Oct 26, 2024
1 parent 822383d commit af0e8b5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ArduPlane/AP_ExternalControl_Plane.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class AP_ExternalControl_Plane : public AP_ExternalControl {
/*
Sets the trajectory target.
*/
bool set_trajectory(const Location trajectory[5]) override WARN_IF_UNUSED;
bool set_trajectory(const Location trajectory[5], const uint8_t count) override WARN_IF_UNUSED;
};

#endif // AP_EXTERNAL_CONTROL_ENABLED
2 changes: 1 addition & 1 deletion libraries/AP_DDS/AP_DDS_ExternalControl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ bool AP_DDS_External_Control::handle_trajectory_control(ardupilot_msgs_msg_Traje
locs[i].lat = trajectory.alts[i] * 1e7;
}

return external_control->set_trajectory(locs);
return external_control->set_trajectory(locs, 5);
}

bool AP_DDS_External_Control::convert_alt_frame(const uint8_t frame_in, Location::AltFrame& frame_out)
Expand Down
2 changes: 1 addition & 1 deletion libraries/AP_ExternalControl/AP_ExternalControl.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class AP_ExternalControl
/*
Sets the trajectory target.
*/
virtual bool set_trajectory(const Location trajectory[5]) WARN_IF_UNUSED {
virtual bool set_trajectory(const Location trajectory[5], const uint8_t count) WARN_IF_UNUSED {
return false;
}

Expand Down

0 comments on commit af0e8b5

Please sign in to comment.