BBC-Buggy Commands - 2020-09-19 ------------------ COMMANDS ======== [Esc],[Q] - stop, quit operations, go to command mode [.] - stop, end current operation - recording, playing, input ["] - start/end of a comment, processed in GetCcmnd() [(] - start of a Do, will show its location in EEPROM when played, eg (=263 If a jump to another Act is made from within a Do then the Do location will be shown eg (@267) and when returning the return location will be shown, eg (267) A jump to an Act from a Do will on . continue in the Do If a jump is made to an Act which contains another Do then that Do will become the current Do and the old Do will not be returned to [)] - end of a Do, will show its location in EEPROM when played, eg )=285 [0] - use page0 for the next cmnd or Act, Acts [0][1] - [0][8] [!] - use ReActs page [1-8] Play act, or the Act to record, copy, load etc [F]{digits}[,] - Forwards - if no digits then 1 - units mm [B]{digits}[,] - Backwards - if no digits then 1 - units mm [R]{digits}[,] - turn Right - if no digits then 1 - units degrees [L]{digits}[,] - turn Left - if no digits then 1 - units degrees [T]{digits}[,] - turn to heading - if no digits then ignore [H] - goto 'home' [D] - Pen down [U] - Pen up [V] - beep (interface beeper) [w][0-9,0] - wait seconds, 0=10 [n][0-9,0] - nap tenths second, 0=10 SPEED [s][1-9] - steptime/3 [+] - speed-up, steptime -=1 >=1 [-] - speed-down, steptime +=1 [u] - speed-up, steptime -=1 >=stepmin [d] - speed-down, steptime *=2 [m] - set speed-max for speed-up to current speed [s] - save speed TURN [t][m] - Turn Memory - turn same way as last time [o] - Turn Other - turn other way from last time [l] - Turn to Light [d] - Turn to Dark [u] - Turn unwind SENSORS [$][b] - test bumper status and ReAct [e] - test eyes staus and ReAct [l] - return LDR value [c] - return barcode value SKILL [t][l] - Turn to Light [d] - Turn to Dark [L] - Turn at Light [D] - Turn at Dark [u] - Turn unwind [H] - Turn to 'home' [h] - set current location as new 'home' [H] - goto 'home' [g][H] - goto 'home' MIND [?][m] - print Mind BEHAVIOUR [b][0] - do default behaviour [S] - save current behaviour as default [a][1-8] - Act to autorun on power on [0] - no autorun [d] - if Playing ends, run autorun Act [m][digits][,] - default move mm or degrees [r][digits][,] - rotatescale, actual steps for 360 degrees [s][digits][,] - stepescale, actual steps for 100mm [e][digits][,] - eye thredhold [l][digits][,] - LDR thredhold [c][digits][,] - BarCode thredhold [$][0,1] - sensor react 0=off [!][0,1] - 0=turn off reacting flag to jump from a ReAct, automatically turns on again SYSTEM [*][r][(0) 1-8] - record act, optional 0 use page0 [l][(0) 1-8] - load act, optional 0 use page0 [c][(0) 1-8][(0) 1-8] - copy Act to Act, optional 0 use page0 PRINT [?][?] - print Acts [0] - prints Acts 0, and changes '??' to just print current page - (for QL zero2 program) [a] - change back to ?? prints all Acts [1-8] - print Act [!} - print ReActs [b] - print Behaviour - thisprog,autoAct,f_autoPower,steptime,stepmin,stepScale360 [m] - print Mind [d] - dump all acts to PC without descriptions, suitable for loading [$] - show all sensor values [h] - print help [f] - print free RAM Notes [(] - will show its location in EEPRO< when played eg (=263 [)] - will show its location in EEPRO< when played eg )=285 If a call to another Act is made from within Mind then the location to return to will be shown, eg (267) Acts by default are stored in page 1, 0 changes to page 0 for the next command only. Page 0 ia EEPROM bytes 0-255, Page 1 is EEPROM bytes 256-511 etc.