//This set is for a GP40_RCX as shown on the RailBrick website. //Motor 1 on output A; motor 2 on output C; head light on output B. //Motor 1: real = logical directions; motor 2: inverted. //The new IR RF transceiver is present and powered from active input 2. //The rotation sensor is attached to input 3. #define MY_ID 192 //ID of train (incoming messages). #define RCX_OUT_3 SWITCH //Head light on/off. #define MOTORS 2 //2 motors present. #define OUT_1 motorA //Logical output 1 drives motor 1 on output A. #define OUT_2 motorC //Logical output 2 drives motor 2 on output C. #define OUT_3 motorB //Logical Output 3 drives on/off device (light) on output B. #define DIR_1 FWD //When output A is set to forward, motor runs forward. #define DIR_2 FWD //When output C is set to forward, motor runs backward. #define ROT_SENSOR_IN_1 S3 //Logical sensor 1 (= rotation sensor) is on input 3. #define PWR_IN_2 S1 //Logical sensor 2 is on input 1. Used as power source. #define PWR_IN_3 S2 //Logical sensor 3 is on input 2. Used as power source. #define ROT_SENSOR_PRESENT TRUE //Enable/disable automatic/manual speed control. #define PID_ROT_SENSOR_DIR FWD //Rotation sensor counts up when train moves forward. #define IRRF_TRANSCEIVER_PRESENT TRUE //Set IR TX power to low. #define CONFIGURATION_READ TRUE //