Thank you for this very convenient and helpful plugin. However, there is a problem of data loss when the output.max and output.min are out of the range -π to π because the result of function std::atan2 is between -π to π. I have made some simple modifications to make it suitable for any desired angle.
This code has been tested under the PX4 Collision Prevention module where (0,2π) is needed.
Thank you for this very convenient and helpful plugin. However, there is a problem of data loss when the output.max and output.min are out of the range -π to π because the result of function std::atan2 is between -π to π. I have made some simple modifications to make it suitable for any desired angle.
This code has been tested under the PX4 Collision Prevention module where (0,2π) is needed.