Re: programming sensorType without using motor and sensor setup
Use the "motors and sensor setup" to setup the configuration you want.
The use the "Disassembly" output to figure it out. "F9" is the shortcut key. It's on the menu "Robot -> View -> Disassembly". YOu may have to set to an advanced user level ("Robot -> Windows -> User Level -> xxxxx" to get the extra commands on the menu to see this.
Here's the output for the quad sensor.