I challenged my students to use a potentiometer to limit a lift on their robot and the hardware is in place. In RobotC, the potentiometer changes from values 2137 (low point) to 2833 (high point) per the debugger. In Simulink should I show it at the same values or degrees? Also, the youth want to be able to press a button and it lifts or lowers the entire range automatically. I can see how to do this with logic in RobotC, but not Simulink. Any suggestions?
They did successfully get a limit switch integrated on a 2nd lift using a Simulink model posted on the BEST Forum. I have also posted this Q on the BEST Robotics Forum. Thank you.