@@ -56,7 +56,7 @@ equal to its class name.
5656
5757 echo 1 > /sys/devices/virtual/input/input1/enable_device
5858
59- <!-- It is very important to initialize MSP430 USB devices with this parameters -->
59+ <!-- It is very important to initialize MSP430 USB devices with these parameters -->
6060 stty 921600 -F /dev/ttyACM0 -echo -onlcr
6161 stty 921600 -F /dev/ttyACM1 -echo -onlcr
6262
@@ -73,18 +73,18 @@ equal to its class name.
7373 <rangeSensor commonModule =" hcsr04" minValue =" 0" maxValue =" 100" />
7474 <digitalSensor />
7575 <fifo />
76- <accelerometer deviceFile =" /dev/input/event1 " optional =" true" />
76+ <accelerometer deviceFile =" /dev/input/by-path/platform-i2c_davinci.2-event " optional =" true" />
7777 <gyroscope deviceFile =" /dev/input/by-path/platform-spi_davinci.1-event" optional =" true" />
78- <lineSensor script =" /etc/init.d/line-sensor-ov7670.sh " inputFile =" /run/line-sensor.in.fifo" outputFile =" /run/line-sensor.out.fifo" toleranceFactor =" 1.0" />
79- <objectSensor script =" /etc/init.d/object-sensor-ov7670.sh " inputFile =" /run/object-sensor.in.fifo" outputFile =" /run/object-sensor.out.fifo" toleranceFactor =" 1.0" />
80- <colorSensor script =" /etc/init.d/mxn-sensor-ov7670.sh " inputFile =" /run/mxn-sensor.in.fifo" outputFile =" /run/mxn-sensor.out.fifo" m =" 3" n =" 3" />
78+ <lineSensor script =" /etc/init.d/line-sensor-ov7670" inputFile =" /run/line-sensor.in.fifo" outputFile =" /run/line-sensor.out.fifo" toleranceFactor =" 1.0" />
79+ <objectSensor script =" /etc/init.d/object-sensor-ov7670" inputFile =" /run/object-sensor.in.fifo" outputFile =" /run/object-sensor.out.fifo" toleranceFactor =" 1.0" />
80+ <colorSensor script =" /etc/init.d/mxn-sensor-ov7670" inputFile =" /run/mxn-sensor.in.fifo" outputFile =" /run/mxn-sensor.out.fifo" m =" 3" n =" 3" />
8181 <soundSensor script =" /etc/init.d/sound-sensor-1.sh" inputFile =" /run/sound-sensor.in.fifo" outputFile =" /run/sound-sensor.out.fifo" />
8282
8383 <!-- Device files for LED on a brick. -->
8484 <led green =" /sys/class/leds/led_green/brightness" red =" /sys/class/leds/led_red/brightness" />
8585
8686 <!-- Device file for keys on a brick -->
87- <keys deviceFile =" /dev/input/by-path/platform-gpio-keys-event" />
87+ <keys deviceFile =" /dev/input/by-path/platform-gpio-keys-event" />
8888
8989 <!-- Settings for gamepad TCP server to communicate with Android "TRIK Gamepad" application -->
9090 <gamepad port =" 4444" optional =" true" />
@@ -141,10 +141,10 @@ equal to its class name.
141141 frequencyFile=" /sys/class/pwm/ecap_cap.0/freq"
142142 dutyFile=" /sys/class/pwm/ecap_cap.0/duty_percentage"
143143 />
144- <powerMotor port =" M1" i2cCommandNumber =" 0x0014" />
144+ <powerMotor port =" M1" i2cCommandNumber =" 0x0014" invert = " true " />
145145 <powerMotor port =" M2" i2cCommandNumber =" 0x0015" />
146- <powerMotor port =" M3" i2cCommandNumber =" 0x0017 " />
147- <powerMotor port =" M4" i2cCommandNumber =" 0x0016 " />
146+ <powerMotor port =" M3" i2cCommandNumber =" 0x0016 " />
147+ <powerMotor port =" M4" i2cCommandNumber =" 0x0017 " />
148148 <powerMotor port =" SS1" i2cCommandNumber =" 0x003F" />
149149 <powerMotor port =" SS2" i2cCommandNumber =" 0x0040" />
150150 <powerMotor port =" SS3" i2cCommandNumber =" 0x0041" />
@@ -345,8 +345,8 @@ equal to its class name.
345345 <encoder port =" B3" i2cCommandNumber =" 0x0032" />
346346 <encoder port =" B4" i2cCommandNumber =" 0x0033" />
347347 <encoder port =" E1" i2cCommandNumber =" 0x0030" />
348- <encoder port =" E2" i2cCommandNumber =" 0x0031" />
349- <encoder port =" E3" i2cCommandNumber =" 0x0032" />
348+ <encoder port =" E2" i2cCommandNumber =" 0x0031" invert = " true " />
349+ <encoder port =" E3" i2cCommandNumber =" 0x0032" invert = " true " />
350350 <encoder port =" E4" i2cCommandNumber =" 0x0033" />
351351 <rangeSensor port =" D1" eventFile =" /dev/input/by-path/platform-trik_jd1-event" module =" jd1_hcsr04" />
352352 <rangeSensor port =" D2" eventFile =" /dev/input/by-path/platform-trik_jd2-event" module =" jd2_hcsr04" />
@@ -356,20 +356,37 @@ equal to its class name.
356356 <objectSensor port =" video1" />
357357 <objectSensor port =" video2" />
358358 <colorSensor port =" video1" />
359+ <colorSensor port =" video2" />
360+ <fifo port =" soundSensor" file =" /home/root/trik/soundSensor.fifo" />
359361 <soundSensor port =" default" />
360362 </devicePorts >
361363
362364 <deviceTypes >
363- <angularServomotor class =" servoMotor" min =" 600000" max =" 2200000" zero =" 1400000" stop =" 0" type =" angular" />
364- <!-- <irSensor class="analogSensor" rawValue1="0" rawValue2="1023" normalizedValue1="0" normalizedValue2="100" /> -->
365- <continuousRotationServomotor class =" servoMotor" min =" 700000" max =" 2300000" zero =" 1500000" stop =" 0" type =" continuousRotation" controlMin =" -100" controlMax =" 100" />
366- <sharpGP2Sensor class =" analogSensor" rawValue1 =" 0" rawValue2 =" 1023" normalizedValue1 =" 0" normalizedValue2 =" 100" type =" SharpGP2" values =" (25;322)(35;235)(15;511)" />
367- <sonarSensor class =" rangeSensor" rawValue1 =" 750" rawValue2 =" 400" normalizedValue1 =" 10" normalizedValue2 =" 20" minValue =" 0" maxValue =" 400" />
368- <lightSensor class =" digitalSensor" min =" 30000" max =" 350000" />
365+ <angularServomotor class =" servoMotor" min =" 700000" max =" 2150000" zero =" 1425000" stop =" 0"
366+ controlMin=" -90" controlMax =" 90" />
367+
368+ <continuousRotationServomotor class =" servoMotor" min =" 700000" max =" 2300000" zero =" 1500000" stop =" 0"
369+ controlMin=" -100" controlMax =" 100" />
370+
371+ <manipulatorServomotor class =" servoMotor" min =" 530000" max =" 2300000" zero =" 1415000" stop =" 0"
372+ controlMin=" 0" controlMax =" 100" />
373+
374+ <sharpGP2Sensor class =" analogSensor" type =" SharpGP2" values =" (25;322)(35;235)(15;511)" />
375+
376+ <touchSensor class =" analogSensor" rawValue1 =" 100" rawValue2 =" 1023" normalizedValue1 =" 1" normalizedValue2 =" 0"
377+ minValue=" 0" maxValue =" 1" />
378+
379+ <sonarSensor class =" rangeSensor" minValue =" 0" maxValue =" 400" />
380+
381+ <lightSensor class =" analogSensor" rawValue1 =" 30" rawValue2 =" 1023" normalizedValue1 =" 0" normalizedValue2 =" 100"
382+ minValue=" 0" maxValue =" 100" />
383+
369384 <volumeSensor class =" digitalSensor" min =" 0" max =" 100" />
370- <!-- <encoder95 class="encoder" ticksInDegree="43.389445" /> -->
385+
371386 <encoder95 class =" encoder" ticksInDegree =" 1.569444" />
387+
372388 <encoder126 class =" encoder" ticksInDegree =" 32.964168" />
389+
373390 <colorSensor3x3 class =" colorSensor" m =" 3" n =" 3" />
374391 </deviceTypes >
375392
0 commit comments