To help understand my question, my assignment is to create a car that goes around cones. In sumulink, I'm creating my simulation with three proximity sensors that are connected to my Matlab function. My matlab function is connected to a DC motor and a servo motor.
I know that when using a servo, you can turn so many degrees in one direction and then turn so many degrees in the opposite direction. How can I simulate this. Right now, I'm connecting my function to the Tr terminal on my servo motor. I'm sending values of 90/-90 degrees. However, this is not working.