--- /dev/null
+SSJAVA: Divided by zero at file:injerr/methods.c, func:___Float______staticblocks____, line:1605
+SSJAVA: Divided by zero at file:injerr/methods.c, func:___Float______staticblocks____, line:1627
+SSJAVA: Divided by zero at file:injerr/methods.c, func:___Float______staticblocks____, line:1649
+eyePosition=(89,72)
+eyePosition=(91,75)
+eyePosition=(91,70)
+eyePosition=(91,70)
+eyePosition=(98,79)
+eyePosition=(100,79)
+eyePosition=(98,77)
+eyePosition=(98,77)
+eyePosition=(117,84)
+deviation=LEFT
+eyePosition=(120,78)
+eyePosition=(121,79)
+eyePosition=(121,77)
+eyePosition=(119,78)
+SSJAVA: Injecting error at file:injerr/methods.c, func:___ImageReader______readImage____L___String___, line:4927
+eyePosition=(120,79)
+eyePosition=(119,77)
+eyePosition=(119,77)
+eyePosition=(121,79)
+eyePosition=(72,80)
+deviation=RIGHT
+eyePosition=(105,84)
+eyePosition=(73,82)
+eyePosition=(121,81)
+deviation=LEFT
+eyePosition=(120,79)
+eyePosition=(120,78)
+eyePosition=(120,78)
+eyePosition=(121,81)
+eyePosition=(121,81)
+eyePosition=(71,81)
+deviation=RIGHT
+eyePosition=(71,81)
+eyePosition=(121,81)
+eyePosition=(121,81)
+deviation=LEFT
+eyePosition=(119,80)
+eyePosition=(119,81)
+eyePosition=(97,81)
+deviation=RIGHT
+eyePosition=(92,80)
+eyePosition=(92,81)
+eyePosition=(92,80)
+eyePosition=(92,80)
+Done.
PROGRAM=LEA
SOURCE_FILES=LEA.java
-BSFLAGS= -32bit -ssjava -mainclass $(PROGRAM) -heapsize-mb 1000 -debug -garbagestats -ssjavadebug -printlinenum -joptimize -optimize
+
+ifndef INV_ERROR_PROB
+INV_ERROR_PROB=1000
+endif
+
+ifndef RANDOMSEED
+RANDOMSEED=12345
+endif
+
+SSJAVA= -ssjava -ssjavadebug
+BSFLAGS= -32bit -mainclass $(PROGRAM) -heapsize-mb 1000 -nooptimize -debug -garbagestats #-printlinenum #-joptimize
+NORMAL= -ssjava-inject-error 0 0
+INJECT_ERROR= -ssjava-inject-error $(INV_ERROR_PROB) $(RANDOMSEED)
+
default: $(PROGRAM)s.bin
+normal: $(PROGRAM)n.bin
+
+error: $(PROGRAM)e.bin
+
+
$(PROGRAM)s.bin: $(SOURCE_FILES) makefile
- $(BUILDSCRIPT) $(BSFLAGS) -o $(PROGRAM) -builddir sing $(SOURCE_FILES)
+ $(BUILDSCRIPT) $(SSJAVA) $(BSFLAGS) -o $(PROGRAM)s -builddir ssj $(SOURCE_FILES)
+
+$(PROGRAM)n.bin: $(SOURCE_FILES) makefile
+ $(BUILDSCRIPT) $(NORMAL) $(BSFLAGS) -o $(PROGRAM)n -builddir norm $(SOURCE_FILES)
+
+$(PROGRAM)e.bin: $(SOURCE_FILES) makefile
+ $(BUILDSCRIPT) $(INJECT_ERROR) $(BSFLAGS) -o $(PROGRAM)e -builddir injerr $(SOURCE_FILES)
+
+cleanerror:
+ rm -f $(PROGRAM)e.bin
+ rm -rf injerr
clean:
- rm -f $(PROGRAM).bin
- rm -fr sing
+ rm -f $(PROGRAM)s.bin $(PROGRAM)n.bin $(PROGRAM)e.bin
+ rm -fr ssj norm injerr
+ rm -f nve-diff.tmp nve-diff-ranges.tmp
rm -f *~
rm -f *.dot
rm -f *.png
--- /dev/null
+#!/bin/bash
+
+LEAe.bin > error.txt
+
+grep "SSJAVA: Injecting error" error.txt
+
+#mp3samples2plotData.sh error.txt
\ No newline at end of file
--- /dev/null
+PWM Selction is: rtsj
+SSJAVA: Injecting error at file:injerr/methods.c, func:___String______concat____L___String___, line:4957
+currentCommand=9
+processIOCommand: Default: opCode = 0 data = 9
+StrageyMgr: stop....
+processIOCommand: Default: opCode = 0 data = 9
+currentCommand=99
+processIOCommand: Default: opCode = 96 data = 3
+sonar: straight
+StrategyMgr: strait....
+currentCommand=99
+processIOCommand: Default: opCode = 96 data = 3
+sonar: straight
+StrategyMgr: strait....
+currentCommand=99
+processIOCommand: Default: opCode = 96 data = 3
+sonar: straight
+StrategyMgr: strait....
+currentCommand=97
+processIOCommand: Default: opCode = 96 data = 1
+sonar: bearLeft
+StrategyMgr: bearLeft....
+currentCommand=97
+processIOCommand: Default: opCode = 96 data = 1
+sonar: bearLeft
+StrategyMgr: bearLeft....
+currentCommand=97
+processIOCommand: Default: opCode = 96 data = 1
+sonar: bearLeft
+StrategyMgr: bearLeft....
+currentCommand=97
+processIOCommand: Default: opCode = 96 data = 1
+sonar: bearLeft
+StrategyMgr: bearLeft....
+currentCommand=97
+processIOCommand: Default: opCode = 96 data = 1
+sonar: bearLeft
+StrategyMgr: bearLeft....
+currentCommand=68
+processIOCommand: Default: opCode = 64 data = 4
+processIO: Line Sensors..Process...!!!
+Line Sensors - Rear
+StrategyMgr: strait....
+Line Sensors - Rear
+StrategyMgr: strait....
+sonar: bearLeft
+StrategyMgr: bearLeft....
+currentCommand=99
+processIOCommand: Default: opCode = 96 data = 3
+sonar: straight
+StrategyMgr: strait....
+currentCommand=99
+processIOCommand: Default: opCode = 96 data = 3
+sonar: straight
+StrategyMgr: strait....
+currentCommand=96
+processIOCommand: Default: opCode = 96 data = 0
+sonar: NO SONARS!!!!!!!!
+currentCommand=99
+processIOCommand: Default: opCode = 96 data = 3
+sonar: straight
+StrategyMgr: strait....
PROGRAM=RobotMain
SOURCE_FILES=RobotMain.java
-BSFLAGS= -32bit -ssjava -mainclass $(PROGRAM) -heapsize-mb 1000 -debug -garbagestats -ssjavadebug -printlinenum -joptimize -optimize
+
+ifndef INV_ERROR_PROB
+INV_ERROR_PROB=1000
+endif
+
+ifndef RANDOMSEED
+RANDOMSEED=12345
+endif
+
+SSJAVA= -ssjava -ssjavadebug
+BSFLAGS= -32bit -mainclass $(PROGRAM) -heapsize-mb 1000 -nooptimize -debug -garbagestats #-printlinenum #-joptimize
+NORMAL= -ssjava-inject-error 0 0
+INJECT_ERROR= -ssjava-inject-error $(INV_ERROR_PROB) $(RANDOMSEED)
default: $(PROGRAM)s.bin
+normal: $(PROGRAM)n.bin
+
+error: $(PROGRAM)e.bin
+
+
$(PROGRAM)s.bin: $(SOURCE_FILES) makefile
- $(BUILDSCRIPT) $(BSFLAGS) -o $(PROGRAM) -builddir sing $(SOURCE_FILES)
+ $(BUILDSCRIPT) $(SSJAVA) $(BSFLAGS) -o $(PROGRAM)s -builddir ssj $(SOURCE_FILES)
+
+$(PROGRAM)n.bin: $(SOURCE_FILES) makefile
+ $(BUILDSCRIPT) $(NORMAL) $(BSFLAGS) -o $(PROGRAM)n -builddir norm $(SOURCE_FILES)
+
+$(PROGRAM)e.bin: $(SOURCE_FILES) makefile
+ $(BUILDSCRIPT) $(INJECT_ERROR) $(BSFLAGS) -o $(PROGRAM)e -builddir injerr $(SOURCE_FILES)
+
+cleanerror:
+ rm -f $(PROGRAM)e.bin
+ rm -rf injerr
clean:
- rm -f $(PROGRAM).bin
- rm -fr sing
+ rm -f $(PROGRAM)s.bin $(PROGRAM)n.bin $(PROGRAM)e.bin
+ rm -fr ssj norm injerr
+ rm -f nve-diff.tmp nve-diff-ranges.tmp
rm -f *~
rm -f *.dot
rm -f *.png
--- /dev/null
+PWM Selction is: rtsj
+currentCommand=99
+processIOCommand: Default: opCode = 96 data = 3
+sonar: straight
+StrategyMgr: strait....
+currentCommand=99
+processIOCommand: Default: opCode = 96 data = 3
+sonar: straight
+StrategyMgr: strait....
+currentCommand=99
+processIOCommand: Default: opCode = 96 data = 3
+sonar: straight
+StrategyMgr: strait....
+currentCommand=99
+processIOCommand: Default: opCode = 96 data = 3
+sonar: straight
+StrategyMgr: strait....
+currentCommand=97
+processIOCommand: Default: opCode = 96 data = 1
+sonar: bearLeft
+StrategyMgr: bearLeft....
+currentCommand=97
+processIOCommand: Default: opCode = 96 data = 1
+sonar: bearLeft
+StrategyMgr: bearLeft....
+currentCommand=97
+processIOCommand: Default: opCode = 96 data = 1
+sonar: bearLeft
+StrategyMgr: bearLeft....
+currentCommand=97
+processIOCommand: Default: opCode = 96 data = 1
+sonar: bearLeft
+StrategyMgr: bearLeft....
+currentCommand=97
+processIOCommand: Default: opCode = 96 data = 1
+sonar: bearLeft
+StrategyMgr: bearLeft....
+currentCommand=68
+processIOCommand: Default: opCode = 64 data = 4
+processIO: Line Sensors..Process...!!!
+Line Sensors - Rear
+StrategyMgr: strait....
+Line Sensors - Rear
+StrategyMgr: strait....
+sonar: bearLeft
+StrategyMgr: bearLeft....
+currentCommand=99
+processIOCommand: Default: opCode = 96 data = 3
+sonar: straight
+StrategyMgr: strait....
+currentCommand=99
+processIOCommand: Default: opCode = 96 data = 3
+sonar: straight
+StrategyMgr: strait....
+currentCommand=96
+processIOCommand: Default: opCode = 96 data = 0
+sonar: NO SONARS!!!!!!!!
+currentCommand=99
+processIOCommand: Default: opCode = 96 data = 3
+sonar: straight
+StrategyMgr: strait....
--- /dev/null
+#!/bin/bash
+
+RobotMaine.bin > error.txt
+
+grep "SSJAVA: Injecting error" error.txt
+
+#mp3samples2plotData.sh error.txt
\ No newline at end of file