PopAmblerCommands: 'using TVR010_PicAxe_IR_controller [1-8] 28x2Acts [f|] record a 28x2Act [f^] subroutines in 28x2, [0-9] => 0-9, 'no subroutines written [f^][f^] =page 2, [0]-[9] =>10-19 MAX 15 [f+] BS2 Acts, [f+][+] set BS2 Act as default [f+][f^] =page 2, [0]-[9] =>10-19 MAX 15 [fX] dump 28x2Acts to PC Commands for BS2 [+] -> "U" '[-] -> do whiskers but non fitted ----------------------------------- Yellow LEDs ----------- R + L blink if waiting for input R + L flash when command sent to BS2 R record L if recording then waiting for Act number ----------------------------------- [KEY_POWER] stops a learned Act and enters Command mode. ends modify mode, ends learning it can't stop a subroutine Act Direction Keys -------------- [KEY_UP] ie [Fd] Step Forward [KEY_DOWN] ie [Bk] Step Backward [KEY_RIGHT] ie [Rt] Step Right [KEY_LEFT] ie [Lt] Step Left Function Keys ------------- [KEY_BAR] ie [f|] enters learn mode to record key presses has to be followed by a number key [1-8] = the Act to be remembered up to 8 Acts can be learned learned Acts can call subroutine Acts Acts can chain to other Acts, eg Fd,Bk,2 - chain to Act2 A learned Act which chains itself repeats forever, eg [f|][1][Fd][1][POWER] Act1 will do Fd forever [KEY_TENT] ie [f^] selects subroutine Acts = SAct, has to be followed by a number key [1-8] or [f^][1-8] for 10-15 plays SActs, SActs play until the end. [KEY_1] is RockAdo [KEY_VCROSS] ie [f+] [mode+] BS2Do has to be followed by a number key [1-8] or [f+] to set default do then [1-8] or [f^][1-8] for 10-15 selects BS2Do [KEY_XCROSS] ie [fX] Dump EEPROM Acts DATA to PC, including Config Data Act Keys -------- [1] to [8] Play an Act [f^][1] to [f^][8] Play a subroutine Act When Recording an Act, [1]-[8] record a jump to a new Act if [1],[2],[3],[4],[5],[6],[7].[8],[0] are used to jump to another Act there is no point in recording more moves because they will never be replayed since control is transfered to the new Act, just press [KEY_POWER] to end the recording; [f^] then [1]-[8] to do and include a Subroutine Act (SAct); when the memory slot is full Bambino will beep and recording will end. {Act8 Autoruns on PowerOn - won't work properly} Behaviour Key (only [9][7] implemented ------------- [9] Behaviour mode eg [9][1] set speed slow ' [1] set speed slow ' [2] set speed medium ' [3] set speed fast ' [4] set vitality to low ' [5] set vitality to normal ' [6] set vitality to high ' [7] disable Whiskers test ' [8] disable Ultrasonic test ' [9] set US behaviour to User values set by handset ' [-] disable Whiskers test ' [+] disable Ultrasonic test ' [KEY_UP] B_faster: - increase speed ' [KEY_0] B_normal: - normal speed ' [KEY_DOWN] B_slower: - decrease speed Sensor Keys ----------- [-] enable and test Whisker sensors and re-act, R_Whiskers: '[+] enable and test Ping sensor and re-act, R_Ping: Activity Key ------------ '[0] Return control to BS2 Do Quirks ------ If you are recording Act1 and press [f|][2] then you will start to record Act2 and Act1 will be left without placing an end marker. If Act1 is then played the new moves will be played then whatever moves remained there from before. If you enter record mode but press [POWER] before pressing a valid Act key [1] - [8] then until you press [POWER] a second time any commands will be recorded in Act #6. (There is no room left to correct this! - only applies to Bambinos) [KEY_POWER]=21 @32bytes per slot =>$2A0 =>$A0 =160 =slot #6 ================================================================= TVR010_PicAxe_IR_controller: --------------------------- Before use, the transmitter must be programmed with the ‘Sony’ transmit code. 1. Insert 2 AAA size batteries, preferably alkaline. 2. Press ‘S’ and ‘B’ at the same time. S is in the centre of the arrows. The top left red LED should light. 3. Press ‘0’. The LED should flash. 4. Press ‘1’. The LED should flash. 5. Press ‘3’. The LED should go out. 6. Press the red power button (top right). ------------------------------------------- ================================================================= 28x2Acts [fX] dump ================== 'Slot 0 DATA (16,16,16,0,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0) 'Slot 1 DATA (16,16,17,17,1,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0) 'Slot 2 DATA (16,17,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0) 'Slot 3 DATA (16,18,19,1,1,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0) 'Slot 4 DATA (0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0) 'Slot 5 DATA (0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0) 'Slot 6 DATA (16,17,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0) 'Slot 7 DATA (0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0) '=========================================================================== 'BS2 '================ Mind ===================================================== zz CON 16 'selected on [KEY_POWER] ' Act 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 ' A B C D E F ' DoIndex DATA A0,A1,A2,A3,A4,A5,A6,A7,A8,A9,A10,A11,A12,A13,A14,A15,Azz 'A0 init Act done after poweron or reset, defaultAct got from Cmndr A0 DATA "'A0'" DATA "m$3D"'"m$7A" 'rollby=7, stepby=10 DATA "s$66" 'rollspeed=6, pacespeed=6 DATA "Vw5Hw5V" 'wait 1 sec - easier to see initial position, then get Act DATA "f1A." 'BumpSensorsOn, get default Act '---------------- Acts -- if ended with '.' are Activities ----------------- ' if not ended with '.' continue with next Act 'end lists with "." otherwise starts doing next Act! 'Acts can have any legal variable name. 'Any repeat parameter for FBRLV etc will be ignored - code removed after 6-1-1 ** A1 DATA "FFRRH w2 LLBBBH." 'roughly F & B about same spot A2 DATA "'A2'suFUa2" A3 DATA "'A3'Ga2"'HWFFH W1 BB." A4 DATA "Vw V w5." 'w missing param so does w0 A5 DATA "H" ',"W1FW1F." A6 DATA " "'scRRRRRLLLLL." A7 DATA "LLRR." A8 DATA "FRV." A9 DATA "RRRLLL." A10 DATA " "'FFFFFFFBBBBBBB." A11 DATA "sdFsua3" A12 DATA "."'s$36,FFFm$7A FFFs$22,m$44,BBBBBB." A13 DATA "."'suFFFBBB." A14 DATA "BGf0GF 2R2 5 7junk g'test'V." 'test repeat param' 2 5 7=257=2 **ignored 'Az DATA A15 DATA "d13g." Azz DATA "f0." 'selected on [KEY_POWER] 'A15 DATA "suF." '---------------- frustration reactions ------- 'have to turn off the Toe sensors until moved away from obstacle otherwise loops rf1R DATA "f0VVVBf1RR." 'if (hurtsR+hurtsL) >= hurtedRL1 rf2L DATA "f0VVVVVBf1LLLL." 'if (hurtsR+hurtsL) >= hurtedRL2 '---------------- bump reactions -------------- 'if toeX bumped then hurtsX +=hurted rbR DATA "f0VsdBrBf1L." 'if hurtsR >= hurted rbL DATA "f0VVsdBlBf1R." 'if hurtsL >= hurted '---------------- US reactions ---------------- rUawareAt DATA "VTf." rUtooNear DATA "VVBTmTm." '---------------------------------------------- Bend DATA "." 'end marker to avoid doing the program! '===========================================================================