Hello
I am trying to use the command SetSensorType
For some reason it does not seem to work, the sensor reading just stays at 0.
I am using the latest RobotC (2.32).
Any help would be appreciated!
Thanks!
Hello,
Is there any reason you’re not using the ROBOTC Motors and Sensors Setup to do the configuration?
Have you tried setting the sensor up using the Motors and Sensors Setup, and also have the value stuck at 0?
Is the Refresh Rate on the Program Debug window set to Continuous? (if you see the Continuous button, press it so that it displays Pause Refresh).
I would like to be able to change sensor types when inside the program and not using the Motors and Sensors Setup as in some cases it is more convenient especially in the case of my framework which can use different methods of input to change sensor types.
EDIT: Using Motors and Sensors Setup works fine but I don’t want to use it as it must be put as a config at the top of the script.