...
This commit is contained in:
@@ -147,6 +147,11 @@ concept mcc_fp_type_like_c =
|
||||
|
||||
/* GEOMETRICAL ANGLE REPRESENTATION CLASS CONCEPT */
|
||||
|
||||
/* REQUIREMENT: in the MCC-library it is assumed that an arithmetic representation of angles are measured in the
|
||||
radians!!! This means that possible conversion operator 'SOME_USER_ANGLE_CLASS::operator double()'
|
||||
must return an angle in radians!
|
||||
*/
|
||||
|
||||
template <typename T>
|
||||
concept mcc_angle_c = mcc_fp_type_like_c<T> && requires(T v, double vd) {
|
||||
// mandatory arithmetic operations
|
||||
@@ -783,6 +788,13 @@ struct mcc_telemetry_interface_t {
|
||||
{
|
||||
return std::forward<SelfT>(self).setTarget(pt);
|
||||
}
|
||||
|
||||
// get entered target position
|
||||
template <std::derived_from<mcc_telemetry_interface_t> SelfT>
|
||||
RetT setTarget(this SelfT&& self, mcc_skypoint_c auto* pt)
|
||||
{
|
||||
return std::forward<SelfT>(self).getTarget(pt);
|
||||
}
|
||||
};
|
||||
|
||||
template <typename T>
|
||||
|
||||
Reference in New Issue
Block a user