ࡱ> Root Entry9ϛ@ MAIN  RSCOMPSTG1ODB/sW ϛ ϛCONTENTSx  !"#$x WG _extentxC WG _extentyport01bit0 p$breturnint>20 ithreshl420 ithreshf 20 ithreshr $ithreshmic @$ithreshldr.busei2c y,bwaitforbutton Ƀ$bdummybool1 ʃ$bdummybool2 i$idummyint1 j$idummyint2 xJ,sdummystring1 xJsdummystring2 RSComponentFormulaFlowcodeFormula Flowcode Buggyl0x300000,0x20 0x300001,0xe 0x300002,0x3f 0x300003,0x1e 0x300004,0x0 0x300005,0x81 0x300006,0x81 0x300007,0x0 0x300008,0xf 0x300009,0x80 0x30000a,0xf 0x30000b,0xa0 0x30000c,0xf 0x30000d,0x0 8*v RSFlowlineMainXXKl RSStartStopCmdMain RSLoopCmdMain Program Loop1MainXXMainRSMacroCallCmdRead Left Line SensorReadLineSensorFormulaFlowcode(0) RSOperand'L'L Read Right Line SensorReadLineSensorFormulaFlowcode(0) 'R'R RSDecisionCmdboth sensors on line?L && RMainXXMainright sensor on line?RMainXXMainleft sensor on lineLMainXXMain RSCommentCmdneither sensor on line turn leftSpinLeftFormulaFlowcode(0) 2000MainMainXXMain drive forwardsForwardFormulaFlowcode(0) 2000MainMainMainXXMain turn right SpinRightFormulaFlowcode(0) 2000MainMainMainXXMain turn right SpinRightFormulaFlowcode(0) 2000MainMainMainLVariableLR,R