You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ProjectChrono
Hi all,
I am playing around with the motors in Project Chrono.
Reading the documentation on how to control motors<https://api.projectchrono.org/motors.html#rotational_motors> states there are two main approaches which are Constraint-based approach and Load-based approach. I am trying out the Constraint-based approach using chrono::ChFunction_Setpoint<https://api.projectchrono.org/classchrono_1_1_ch_function___setpoint.html>. I got this working well with a ChLinkMotorRotationSpeed motor but when I try doing something similar to a ChLinkMotorRotationAngle I get a constant rotation speed rather than setting the motor to an angle where is am using ChFunctionRotation_setpoint in place of chrono::ChFunction_Setpoint<https://api.projectchrono.org/classchrono_1_1_ch_function___setpoint.html>. Attached is my source code. Any help would be greatly appreciated. I feel like there is something simple I am doing wrong, but I am not seeing it.