diff --git a/docs/_build/doctrees/EV3.doctree b/docs/_build/doctrees/EV3.doctree index 81b85669f84f7c552d0c9d5036666af357bfad90..69672639e54c704cb352a341c01f93d071c57ab3 100644 Binary files a/docs/_build/doctrees/EV3.doctree and b/docs/_build/doctrees/EV3.doctree differ diff --git a/docs/_build/doctrees/Sensor.doctree b/docs/_build/doctrees/Sensor.doctree index 0ce62acba0af1478fbe7f507ef62fd2752a3ad6b..8a6258e693fd2bad507f0b2ef1b8fdb510e9a97b 100644 Binary files a/docs/_build/doctrees/Sensor.doctree and b/docs/_build/doctrees/Sensor.doctree differ diff --git a/docs/_build/doctrees/environment.pickle b/docs/_build/doctrees/environment.pickle index babc07e1c05bb1c7ec352c896b201c5816ca6184..3f618fbea3f0133ae475d354ebf6f336ea4c78e2 100644 Binary files a/docs/_build/doctrees/environment.pickle and b/docs/_build/doctrees/environment.pickle differ diff --git a/docs/_build/doctrees/readme.doctree b/docs/_build/doctrees/readme.doctree index 10fd5a846a2c6469d73d1e9444d353551adab5fa..064a22e02b19f19c629d5631abcd64dc98202c24 100644 Binary files a/docs/_build/doctrees/readme.doctree and b/docs/_build/doctrees/readme.doctree differ diff --git a/docs/_build/doctrees/source.doctree b/docs/_build/doctrees/source.doctree index 17d8e0196cbf8f7d8a2b0657997cbe30915fabc0..aa44ad855404e46fa33a50b124492c8361231c39 100644 Binary files a/docs/_build/doctrees/source.doctree and b/docs/_build/doctrees/source.doctree differ diff --git a/docs/_build/html/EV3.html b/docs/_build/html/EV3.html index 8dffa0e5745305e731aac6cf092421d7a9359f0e..4e94f69ee86b8fa46f2317fc91d1d601b9dce1d6 100644 --- a/docs/_build/html/EV3.html +++ b/docs/_build/html/EV3.html @@ -317,6 +317,10 @@ b.connect('usb', 'beep', 'on', ); % <br /></p> b.connect('bt', 'serPort', '/dev/rfcomm0'); % <br /> % do stuff <br /> b.disconnect(); % <br /></p> +<p>Resetting needs a working connection in order to send reset-commands +to the Brick. If the connection has been aborted (e.g. by pulling the +USB-cord), the reset-methods would fail -> catch this error and for +now do nothing.</p> </dd></dl> <dl class="method"> diff --git a/docs/_build/html/Sensor.html b/docs/_build/html/Sensor.html index 8dc47aee99d8b881f41a6de704e3bb3b05cbfb6d..0b371c9ee333d4683cfd1a4ec1a50e3bddebc58b 100644 --- a/docs/_build/html/Sensor.html +++ b/docs/_build/html/Sensor.html @@ -360,8 +360,16 @@ command has been called. <em>[WRITABLE]</em></p> <code class="descname">reset</code><span class="sig-paren">(</span><em>sensor</em><span class="sig-paren">)</span><a class="headerlink" href="#source.Sensor.reset" title="Permalink to this definition">ΒΆ</a></dt> <dd><p>Resets sensor value.</p> <p class="rubric">Notes</p> -<ul class="simple"> -<li>This clears ALL the sensors right now, no other Op-Code available... :(</li> +<ul> +<li><p class="first">This clears ALL the sensors right now, no other Op-Code available... :(</p> +<blockquote> +<div><dl class="docutils"> +<dt>warning(['Current version of reset resets ALL devices, that is, ',...</dt> +<dd><p class="first last">'all motor tacho counts and all other sensor counters!']);</p> +</dd> +</dl> +</div></blockquote> +</li> </ul> </dd></dl> diff --git a/docs/_build/html/searchindex.js b/docs/_build/html/searchindex.js index 0b433017ac10e5201b230ecc7a9af6c53b5aa447..f9b18dd24b3d2b92511df50bcddd9f098e0e0aad 100644 --- a/docs/_build/html/searchindex.js +++ b/docs/_build/html/searchindex.js @@ -1 +1 @@ -Search.setIndex({envversion:49,filenames:["CommandLayer","CommunicationLayer","EV3","Motor","Sensor","btBrickIO","examples","hid","index","readme","source","usbBrickIO"],objects:{"":{source:[11,0,1,""]},"source.EV3":{batteryMode:[10,2,1,""],batteryValue:[10,2,1,""],beep:[10,3,1,""],connect:[10,3,1,""],debug:[10,2,1,""],disconnect:[10,3,1,""],isConnected:[10,2,1,""],motorA:[10,2,1,""],motorB:[10,2,1,""],motorC:[10,2,1,""],motorD:[10,2,1,""],playTone:[10,3,1,""],sensor1:[10,2,1,""],sensor2:[10,2,1,""],sensor3:[10,2,1,""],sensor4:[10,2,1,""],setProperties:[10,3,1,""],stopAllMotors:[10,3,1,""],stopTone:[10,3,1,""],tonePlayed:[10,3,1,""]},"source.Motor":{brakeMode:[3,2,1,""],currentSpeed:[3,2,1,""],debug:[3,2,1,""],internalReset:[3,3,1,""],isRunning:[3,2,1,""],limitMode:[3,2,1,""],limitValue:[3,2,1,""],power:[3,2,1,""],resetTachoCount:[3,3,1,""],setBrake:[3,3,1,""],setProperties:[3,3,1,""],smoothStart:[3,2,1,""],smoothStop:[3,2,1,""],speedRegulation:[3,2,1,""],start:[3,3,1,""],stop:[3,3,1,""],syncedStart:[3,3,1,""],syncedStop:[3,3,1,""],tachoCount:[3,2,1,""],type:[3,2,1,""],waitFor:[3,3,1,""]},"source.Sensor":{debug:[4,2,1,""],mode:[4,2,1,""],reset:[4,3,1,""],setProperties:[4,3,1,""],type:[4,2,1,""],value:[4,2,1,""]},"source.btBrickIO":{backend:[5,2,1,""],channel:[5,2,1,""],close:[5,3,1,""],debug:[5,2,1,""],deviceName:[5,2,1,""],open:[5,3,1,""],read:[5,3,1,""],serialPort:[5,2,1,""],setProperties:[5,3,1,""],timeOut:[5,2,1,""],write:[5,3,1,""]},"source.hidapi":{close:[7,3,1,""],enumerate:[7,3,1,""],error:[7,3,1,""],exit:[7,3,1,""],getHIDInfoString:[7,3,1,""],getManufacturersString:[7,3,1,""],getProductString:[7,3,1,""],getSerialNumberString:[7,3,1,""],handle:[7,2,1,""],init:[7,3,1,""],nReadBuffer:[7,2,1,""],nWriteBuffer:[7,2,1,""],open:[7,3,1,""],productID:[7,2,1,""],read:[7,3,1,""],read_timeout:[7,3,1,""],setNonBlocking:[7,3,1,""],sheader:[7,2,1,""],slib:[7,2,1,""],vendorID:[7,2,1,""],write:[7,3,1,""]},"source.usbBrickIO":{close:[11,3,1,""],debug:[11,2,1,""],nReadBuffer:[11,2,1,""],nWriteBuffer:[11,2,1,""],open:[11,3,1,""],productID:[11,2,1,""],read:[11,3,1,""],setProperties:[11,3,1,""],timeOut:[11,2,1,""],vendorID:[11,2,1,""],write:[11,3,1,""]},source:{EV3:[10,1,1,""],Motor:[3,1,1,""],Sensor:[4,1,1,""],btBrickIO:[5,1,1,""],hidapi:[7,1,1,""],usbBrickIO:[11,1,1,""]}},objnames:{"0":["mat","module","MATLAB module"],"1":["mat","class","MATLAB class"],"2":["mat","attribute","MATLAB attribute"],"3":["mat","method","MATLAB method"]},objtypes:{"0":"mat:module","1":"mat:class","2":"mat:attribute","3":"mat:method"},terms:{"0x0005":11,"0x694":11,"2nd":[2,3,4,10],"5000hz":[2,10],"abstract":8,"byte":[7,11],"case":[3,11],"catch":3,"char":7,"class":[2,3,4,5,7,8,10,11],"default":[4,5,7,11],"final":7,"function":[3,7],"long":3,"null":7,"return":[2,3,5,7,10,11],"throw":7,"true":[2,3,5,10,11],"try":[3,5,11],"while":8,aachen:8,abl:8,about:[2,3,4,7,10],acceler:[3,4],accelerationallax:4,access:8,accident:[2,10],act:3,action:3,actual:[3,7,11],addit:7,advanc:8,affect:3,after:[3,5,7,11],afterward:3,again:3,all:[2,3,4,7,10,11],allow:4,alreadi:7,also:[2,3,4,5,7,10,11],alternatingli:[],alwai:[7,11],ambient:4,angular:4,ani:[3,11],announc:[2,3,4,10],anoth:3,append:7,apply:3,aren:3,argument:[2,3,4,10],around:3,arrai:[5,11],automat:[2,3,4,5,7,10],avail:[4,7],backend:5,base:5,batteri:[2,10],batterymod:[2,3,10],batterymode:[2,10],batteryvalu:[2,10],been:[2,3,4,5,10],beep:[2,6,10],befor:5,behav:3,behaviour:8,besid:11,better:3,between:[3,5,7,11],bigger:[7,11],bit:3,block:7,blue:4,bool:[2,3,4,5,10,11],both:3,brake:3,brakemod:3,brakemode:3,brick:[2,3,4,5,8,10,11],brickio:[5,11],brickobject:[2,3,4,10],buffer:[7,11],buggi:[],building:[],bump:4,c_output:3,call:[2,3,4,5,7,10,11],can:[3,4,5,8],car:3,cast:7,central:[2,10],chang:3,channel:5,charg:[2,10],check:[3,7],chosen:5,clear:4,close:[5,7,11],coast:3,code:4,col:4,color:4,com:[2,10],comm:[],comment:3,commerror:7,commhandl:[5,11],commun:[3,4,7,8],compil:7,connect:[2,3,4,5,6,7,10,11],connectiontyp:[2,10],consist:[3,4],consol:[2,3,4,5,10,11],constantli:3,constructor:11,contain:[2,3,4,10],continu:3,contribut:[],control:[],conveni:[2,10],correctli:3,correspond:7,could:[5,7,11],count:3,counter:3,cours:3,creat:[2,3,4,7,10],current:[2,3,4,10],currentspe:3,data:[5,7,11],dba:4,debug:[2,3,4,5,10,11],decim:7,defin:3,degre:[3,4],delet:[2,6,7,10],deliv:[2,10],depend:[2,3,4,5,7,10],design:8,destroi:[2,10],dev:[2,3,4,5,10],develop:[7,8],devic:[3,5,7,11],devicemod:4,devicenam:5,devicename:5,devicetyp:[3,4],differ:[2,7,10],direct:3,directli:[7,8],disabl:7,disconnect:[2,10],disp:[2,6,10],distcm:4,distin:4,dll:7,document:8,documentation:[],doe:[2,3,7,10,11],doesn:[],don:[3,4],done:3,down:3,durat:[2,10],dure:7,dylib:7,each:[2,3,4,5,10,11],eas:3,easili:8,either:[2,3,10],enabl:[2,7,10,11],enumer:7,equal:[2,3,10],error:[3,4,5,7,11],establish:[2,10],even:3,eventu:11,everytim:[3,4],exampl:[],execut:3,exit:7,expect:[2,6,10],explicitli:7,extens:7,facilit:4,fals:[3,5,11],far:3,fclose:5,feedback:[2,3,4,10],file:7,finish:3,firmwar:[2,3,10],first:[2,3,10],flag:7,follow:[2,3,4,5,8,10,11],fopen:5,format:[5,11],forward:3,four:3,fread:5,frequenc:[2,10],from:[2,3,4,5,7,10,11],front:7,fun:[2,6,10],fwrite:5,gener:[],germani:8,get:[2,3,7,8,10],gethidinfostr:7,getmanufacturersstr:7,getmanufacturersstring:7,getproductstr:7,getproductstring:7,getserialnumberstr:7,getserialnumberstring:7,given:[2,3,4,7,10],glanc:[2,10],goe:3,greater:3,green:4,gyro:4,handl:7,happen:3,have:[2,3,7,10],header:7,heavi:3,henc:5,here:3,hertz:[2,10],hid:[7,11],hid_device_infoptr:7,hid_open:7,hidapi:[],hidhandl:7,high:[2,3,4,8,10],highest:3,hold:3,host:[5,7],how:3,htacceleromet:4,htcolor:4,htcompass:4,http:7,hysic:4,imag:[],immedi:[2,3,10],implement:[5,11],indic:3,individu:[3,4],infinit:3,info:7,inform:[5,7],infrare:4,init:7,input:[2,3,4,10],inputpars:[2,3,4,5,10,11],instal:[7,8],installat:[],instanc:[3,4,7],instantan:[2,10],instead:[2,3,4,10],instruct:8,instrument:5,instrumentcontrol:5,int32:7,interfac:[2,5,7,10,11],intern:3,internalreset:3,interpret:3,intuit:8,invalid:7,invalidhandl:7,isconnect:[2,10],isconnected:[2,10],isrun:3,iter:[],itself:7,keep:3,kind:3,know:7,lab:8,largemotor:4,last:3,later:[],layer:[3,4,8],lead:[],left:3,length:7,less:3,level:[2,3,4,8,10],librari:[7,11],licens:[],like:3,limit:3,limitmod:3,limitvalu:[2,3,6,10],linux:[5,7],list:[2,3,4,5,7,10,11],listen:4,load:3,look:8,loop:3,low:[2,8,10],lower:3,mac:[5,7],made:5,mai:[2,3,4,10],mainli:4,make:3,manufactur:7,mark:[2,3,4,10],master:3,matlab:[],maximum:11,mean:3,mediummotor:4,meet:8,messag:3,meth:[],method:[2,3,4,5,7,10,11],millisecond:[2,3,7,10,11],mind:3,mismatch:7,mode:[2,3,4,10],modul:5,mostli:[3,8],motor:[],motora:[2,3,4,6,10],motorb:[2,3,10],motorc:[2,10],motord:[2,10],move:3,multipl:[2,3,4,5,10,11],must:7,myev3:5,name:[2,3,4,5,7,10],nearli:11,necessari:[2,10],need:[2,3,4,5,7,10,11],neg:3,next:3,non:7,nonblock:7,none:4,note:[2,3,4,5,7,10,11],now:4,nreadbuff:[7,11],nreadbuffer:11,number:7,numer:[2,3,4,5,7,10,11],nwritebuff:[7,11],nwritebuffer:11,nxt:8,nxtcolor:4,nxtlight:4,nxtsound:4,nxttemperatur:4,nxttouch:4,nxtultrason:4,object:[2,3,4,5,7,10],occur:[5,7,11],off:[2,3,4,10],old:[],onc:[2,3,4,5,10,11],once:4,onli:[],only:[2,3,4,5,10],opcod:3,open:[5,7,11],opposit:3,option:[2,3,4,5,10,11],optional:[2,3,4,10],oss:7,other:[3,4],otherwis:3,output:[2,10,11],outputreadi:3,outputtest:[],packet:[2,3,5,7,10,11],pair:5,paramet:[2,3,4,5,7,10,11],part:8,pass:[3,4],path:[2,5,10],paus:[2,10],percent:[2,3,10],percentag:[2,3,10],physic:[2,3,4,10],plai:[2,10],playton:[2,10],point:3,pointer:7,poll:3,port:[2,3,4,5,6,10],posit:3,possibl:[3,4,7],potenti:5,power:[2,3,4,6,10],preced:[2,3,4,10],pretti:3,previous:3,print:[2,7,10],probabl:3,produc:7,product:[7,11],productid:[7,11],program:3,properti:[2,3,4,5,10,11],propertyname1:[5,11],propertyname2:[5,11],propertyvalue1:[5,11],propertyvalue2:[5,11],prox:4,pull:3,push:4,rais:3,random:[2,6,10],rate:4,ratio:3,raw:4,reach:3,read:[2,3,4,5,7,8,10,11],read_timeout:7,reason:3,receiv:[2,3,10],red:4,reflect:4,regul:3,regular:3,releas:3,remot:4,repli:3,report:7,reportid:7,repres:[3,4],request:3,reset:[3,4],resetposit:3,resettachocount:3,resiz:7,respect:3,respons:3,result:3,rfcomm0:[2,3,4,5,10],rfcomm1:[2,10],rfcomm2:[2,10],right:[3,4],robot:[3,8],run:3,rwth:8,same:3,second:[2,5,10],secur:3,see:[2,3,4,5,7,10,11],seek:4,seem:[2,10],send:[2,3,8,10],sensor1:[2,4,6,10],sensor2:[2,10],sensor3:[2,10],sensor4:[2,10],sensor:[],sent:[2,10],serial:[2,5,7,10],serialport:5,serport:[2,3,4,5,10],set:[2,3,4,5,7,8,10,11],setbrak:3,setnonblock:7,setproperti:[2,3,4,5,6,10,11],setup:[2,10],sever:8,share:7,sheader:7,should:[3,7,11],shown:5,signal11:7,simplifi:8,size:[7,11],slave:3,slib:7,slow:3,slower:3,slowli:3,small:[2,10],smoothli:3,smoothstart:3,smoothstop:3,some:[3,7],sometim:[],somewhat:3,sooner:[],sourc:[2,3,4,5,7,10,11],specifi:[3,4],speed:3,speedregul:3,spin:3,start:[2,3,6,8,10],state:3,statu:[2,3,10],still:3,stop:[2,3,10],stopallmotor:[2,10],stopton:[2,10],straight:3,string:[2,3,4,5,7,10],struct:7,student:8,stuff:[2,3,10],sublay:[3,4],success:7,suppos:3,sure:5,sync:3,syncedstart:3,syncedstop:3,synchron:3,syncmotor:3,syntax:[2,3,4,5,10,11],system:[5,7],tacho:3,tachocount:3,tacholimit:3,take:[3,8],temp:[],test:[2,3,5,10],than:[3,7,11],them:[2,3,4,10],thi:[2,3,4,5,6,7,8,10],think:7,thoroughli:[2,10],through:[5,11],time:3,timeout:[3,5,7,11],tone:[2,10],toneplai:[2,10],too:3,toolbox:[],touch:4,tricki:3,turn:[2,3,4,10],turnratio:3,two:3,type:[2,3,4,7,10],uint16:7,uint8:[5,7,11],ultrason:4,und:3,undefin:4,unexpect:[],unexpectedli:7,unknown:4,until:3,usage:5,usbbrickio:[],use:[3,11],user:[2,10],using:7,valid:[5,7,11],valu:[2,3,4,6,7,8,10],varargin:[2,3,4,5,10,11],variou:8,vendor:[7,11],vendorid:[7,11],via:[2,3,4,5,8,10,11],view:[2,10],virtual:[2,10],voltag:[2,3,10],volum:[2,10],wai:8,waitfor:[2,3,6,10],want:8,wast:3,weird:3,what:[2,3,4,10],whatev:3,when:[2,3,4,5,7,10,11],which:[2,3,4,5,7,10,11],white:4,window:[5,7],without:[3,7],wmsg:[5,7,11],work:[2,3,4,10,11],workaround:3,would:[2,3,4,10],wrap:[],writable:[2,3,4,10],write:[5,7,11],written:[5,7,11],wrong:[2,10],www:7,xcode:7,yet:[2,10],you:[3,4,7,8,11],your:8},titles:["CommandLayer","CommunicationLayer","EV3","Motor","Sensor","btBrickIO","Examples","hidapi","MATLAB Toolbox for controlling Lego Mindstorms EV3","General","EV3","usbBrickIO"],titleterms:{bluetooth:1,btbrickio:5,command:0,commandlay:0,communicationinterfac:0,communicationlay:1,content:8,contribut:9,control:8,ev3:[2,8,10],exampl:6,gener:9,hidapi:7,installat:9,lego:8,licens:9,matlab:8,mindstorm:8,motor:3,sensor:4,toolbox:8,usb:1,usbbrickio:11}}) \ No newline at end of file +Search.setIndex({envversion:49,filenames:["CommandLayer","CommunicationLayer","EV3","Motor","Sensor","btBrickIO","examples","hid","index","readme","source","usbBrickIO"],objects:{"":{source:[11,0,1,""]},"source.EV3":{batteryMode:[10,2,1,""],batteryValue:[10,2,1,""],beep:[10,3,1,""],connect:[10,3,1,""],debug:[10,2,1,""],disconnect:[10,3,1,""],isConnected:[10,2,1,""],motorA:[10,2,1,""],motorB:[10,2,1,""],motorC:[10,2,1,""],motorD:[10,2,1,""],playTone:[10,3,1,""],sensor1:[10,2,1,""],sensor2:[10,2,1,""],sensor3:[10,2,1,""],sensor4:[10,2,1,""],setProperties:[10,3,1,""],stopAllMotors:[10,3,1,""],stopTone:[10,3,1,""],tonePlayed:[10,3,1,""]},"source.Motor":{brakeMode:[3,2,1,""],currentSpeed:[3,2,1,""],debug:[3,2,1,""],internalReset:[3,3,1,""],isRunning:[3,2,1,""],limitMode:[3,2,1,""],limitValue:[3,2,1,""],power:[3,2,1,""],resetTachoCount:[3,3,1,""],setBrake:[3,3,1,""],setProperties:[3,3,1,""],smoothStart:[3,2,1,""],smoothStop:[3,2,1,""],speedRegulation:[3,2,1,""],start:[3,3,1,""],stop:[3,3,1,""],syncedStart:[3,3,1,""],syncedStop:[3,3,1,""],tachoCount:[3,2,1,""],type:[3,2,1,""],waitFor:[3,3,1,""]},"source.Sensor":{debug:[4,2,1,""],mode:[4,2,1,""],reset:[4,3,1,""],setProperties:[4,3,1,""],type:[4,2,1,""],value:[4,2,1,""]},"source.btBrickIO":{backend:[5,2,1,""],channel:[5,2,1,""],close:[5,3,1,""],debug:[5,2,1,""],deviceName:[5,2,1,""],open:[5,3,1,""],read:[5,3,1,""],serialPort:[5,2,1,""],setProperties:[5,3,1,""],timeOut:[5,2,1,""],write:[5,3,1,""]},"source.hidapi":{close:[7,3,1,""],enumerate:[7,3,1,""],error:[7,3,1,""],exit:[7,3,1,""],getHIDInfoString:[7,3,1,""],getManufacturersString:[7,3,1,""],getProductString:[7,3,1,""],getSerialNumberString:[7,3,1,""],handle:[7,2,1,""],init:[7,3,1,""],nReadBuffer:[7,2,1,""],nWriteBuffer:[7,2,1,""],open:[7,3,1,""],productID:[7,2,1,""],read:[7,3,1,""],read_timeout:[7,3,1,""],setNonBlocking:[7,3,1,""],sheader:[7,2,1,""],slib:[7,2,1,""],vendorID:[7,2,1,""],write:[7,3,1,""]},"source.usbBrickIO":{close:[11,3,1,""],debug:[11,2,1,""],nReadBuffer:[11,2,1,""],nWriteBuffer:[11,2,1,""],open:[11,3,1,""],productID:[11,2,1,""],read:[11,3,1,""],setProperties:[11,3,1,""],timeOut:[11,2,1,""],vendorID:[11,2,1,""],write:[11,3,1,""]},source:{EV3:[10,1,1,""],Motor:[3,1,1,""],Sensor:[4,1,1,""],btBrickIO:[5,1,1,""],hidapi:[7,1,1,""],usbBrickIO:[11,1,1,""]}},objnames:{"0":["mat","module","MATLAB module"],"1":["mat","class","MATLAB class"],"2":["mat","attribute","MATLAB attribute"],"3":["mat","method","MATLAB method"]},objtypes:{"0":"mat:module","1":"mat:class","2":"mat:attribute","3":"mat:method"},terms:{"0x0005":11,"0x694":11,"2nd":[2,3,4,10],"5000hz":[2,10],"abstract":8,"byte":[7,11],"case":[3,11],"catch":[2,3,10],"char":7,"class":[2,3,4,5,7,8,10,11],"default":[4,5,7,11],"final":7,"function":[3,7],"long":3,"null":7,"return":[2,3,5,7,10,11],"throw":7,"true":[2,3,5,10,11],"try":[3,5,11],"while":8,aachen:8,abl:8,abort:[2,10],about:[2,3,4,7,10],acceler:[3,4],accelerationallax:4,access:8,accident:[2,10],act:3,action:3,actual:[3,7,11],addit:7,advanc:8,affect:3,after:[3,5,7,11],afterward:3,again:3,all:[2,3,4,7,10,11],allow:4,alreadi:7,also:[2,3,4,5,7,10,11],alternatingli:[],alwai:[7,11],ambient:4,angular:4,ani:[3,11],announc:[2,3,4,10],anoth:3,append:7,apply:3,aren:3,argument:[2,3,4,10],around:3,arrai:[5,11],automat:[2,3,4,5,7,10],avail:[4,7],backend:5,base:5,batteri:[2,10],batterymod:[2,3,10],batterymode:[2,10],batteryvalu:[2,10],been:[2,3,4,5,10],beep:[2,6,10],befor:5,behav:3,behaviour:8,besid:11,better:3,between:[3,5,7,11],bigger:[7,11],bit:3,block:7,blue:4,bool:[2,3,4,5,10,11],both:3,brake:3,brakemod:3,brakemode:3,brick:[2,3,4,5,8,10,11],brickio:[5,11],brickobject:[2,3,4,10],buffer:[7,11],buggi:[],building:[],bump:4,c_output:3,call:[2,3,4,5,7,10,11],can:[3,4,5,8],car:3,cast:7,central:[2,10],chang:3,channel:5,charg:[2,10],check:[3,7],chosen:5,clear:4,close:[5,7,11],coast:3,code:4,col:4,color:4,com:[2,10],comm:[],comment:3,commerror:7,commhandl:[5,11],commun:[3,4,7,8],compil:7,connect:[2,3,4,5,6,7,10,11],connectiontyp:[2,10],consist:[3,4],consol:[2,3,4,5,10,11],constantli:3,constructor:11,contain:[2,3,4,10],continu:3,contribut:[],control:[],conveni:[2,10],cord:[2,10],correctli:3,correspond:7,could:[5,7,11],count:[3,4],counter:[3,4],cours:3,creat:[2,3,4,7,10],current:[2,3,4,10],currentspe:3,data:[5,7,11],dba:4,debug:[2,3,4,5,10,11],decim:7,defin:3,degre:[3,4],delet:[2,6,7,10],deliv:[2,10],depend:[2,3,4,5,7,10],design:8,destroi:[2,10],dev:[2,3,4,5,10],develop:[7,8],devic:[3,4,5,7,11],devicemod:4,devicenam:5,devicename:5,devicetyp:[3,4],differ:[2,7,10],direct:3,directli:[7,8],disabl:7,disconnect:[2,10],disp:[2,6,10],distcm:4,distin:4,dll:7,document:8,documentation:[],doe:[2,3,7,10,11],doesn:[],don:[3,4],done:3,down:3,durat:[2,10],dure:7,dylib:7,each:[2,3,4,5,10,11],eas:3,easili:8,either:[2,3,10],enabl:[2,7,10,11],enumer:7,equal:[2,3,10],error:[2,3,4,5,7,10,11],establish:[2,10],even:3,eventu:11,everytim:[3,4],exampl:[],execut:3,exit:7,expect:[2,6,10],explicitli:7,extens:7,facilit:4,fail:[2,10],fals:[3,5,11],far:3,fclose:5,feedback:[2,3,4,10],file:7,finish:3,firmwar:[2,3,10],first:[2,3,10],flag:7,follow:[2,3,4,5,8,10,11],fopen:5,format:[5,11],forward:3,four:3,fread:5,frequenc:[2,10],from:[2,3,4,5,7,10,11],front:7,fun:[2,6,10],fwrite:5,gener:[],germani:8,get:[2,3,7,8,10],gethidinfostr:7,getmanufacturersstr:7,getmanufacturersstring:7,getproductstr:7,getproductstring:7,getserialnumberstr:7,getserialnumberstring:7,given:[2,3,4,7,10],glanc:[2,10],goe:3,greater:3,green:4,gyro:4,handl:7,happen:3,have:[2,3,7,10],header:7,heavi:3,henc:5,here:3,hertz:[2,10],hid:[7,11],hid_device_infoptr:7,hid_open:7,hidapi:[],hidhandl:7,high:[2,3,4,8,10],highest:3,hold:3,host:[5,7],how:3,htacceleromet:4,htcolor:4,htcompass:4,http:7,hysic:4,imag:[],immedi:[2,3,10],implement:[5,11],indic:3,individu:[3,4],infinit:3,info:7,inform:[5,7],infrare:4,init:7,input:[2,3,4,10],inputpars:[2,3,4,5,10,11],instal:[7,8],installat:[],instanc:[3,4,7],instantan:[2,10],instead:[2,3,4,10],instruct:8,instrument:5,instrumentcontrol:5,int32:7,interfac:[2,5,7,10,11],intern:3,internalreset:3,interpret:3,intuit:8,invalid:7,invalidhandl:7,isconnect:[2,10],isconnected:[2,10],isrun:3,iter:[],itself:7,keep:3,kind:3,know:7,lab:8,largemotor:4,last:3,later:[],layer:[3,4,8],lead:[],left:3,length:7,less:3,level:[2,3,4,8,10],librari:[7,11],licens:[],like:3,limit:3,limitmod:3,limitvalu:[2,3,6,10],linux:[5,7],list:[2,3,4,5,7,10,11],listen:4,load:3,look:8,loop:3,low:[2,8,10],lower:3,mac:[5,7],made:5,mai:[2,3,4,10],mainli:4,make:3,manufactur:7,mark:[2,3,4,10],master:3,matlab:[],maximum:11,mean:3,mediummotor:4,meet:8,messag:3,meth:[],method:[2,3,4,5,7,10,11],millisecond:[2,3,7,10,11],mind:3,mismatch:7,mode:[2,3,4,10],modul:5,mostli:[3,8],motor:[],motora:[2,3,4,6,10],motorb:[2,3,10],motorc:[2,10],motord:[2,10],move:3,multipl:[2,3,4,5,10,11],must:7,myev3:5,name:[2,3,4,5,7,10],nearli:11,necessari:[2,10],need:[2,3,4,5,7,10,11],neg:3,next:3,non:7,nonblock:7,none:4,note:[2,3,4,5,7,10,11],noth:[2,10],now:[2,4,10],nreadbuff:[7,11],nreadbuffer:11,number:7,numer:[2,3,4,5,7,10,11],nwritebuff:[7,11],nwritebuffer:11,nxt:8,nxtcolor:4,nxtlight:4,nxtsound:4,nxttemperatur:4,nxttouch:4,nxtultrason:4,object:[2,3,4,5,7,10],occur:[5,7,11],off:[2,3,4,10],old:[],onc:[2,3,4,5,10,11],once:4,onli:[],only:[2,3,4,5,10],opcod:3,open:[5,7,11],opposit:3,option:[2,3,4,5,10,11],optional:[2,3,4,10],order:[2,10],oss:7,other:[3,4],otherwis:3,output:[2,10,11],outputreadi:3,outputtest:[],packet:[2,3,5,7,10,11],pair:5,paramet:[2,3,4,5,7,10,11],part:8,pass:[3,4],path:[2,5,10],paus:[2,10],percent:[2,3,10],percentag:[2,3,10],physic:[2,3,4,10],plai:[2,10],playton:[2,10],point:3,pointer:7,poll:3,port:[2,3,4,5,6,10],posit:3,possibl:[3,4,7],potenti:5,power:[2,3,4,6,10],preced:[2,3,4,10],pretti:3,previous:3,print:[2,7,10],probabl:3,produc:7,product:[7,11],productid:[7,11],program:3,properti:[2,3,4,5,10,11],propertyname1:[5,11],propertyname2:[5,11],propertyvalue1:[5,11],propertyvalue2:[5,11],prox:4,pull:[2,3,10],push:4,rais:3,random:[2,6,10],rate:4,ratio:3,raw:4,reach:3,read:[2,3,4,5,7,8,10,11],read_timeout:7,reason:3,receiv:[2,3,10],red:4,reflect:4,regul:3,regular:3,releas:3,remot:4,repli:3,report:7,reportid:7,repres:[3,4],request:3,reset:[2,3,4,10],resetposit:3,resettachocount:3,resiz:7,respect:3,respons:3,result:3,rfcomm0:[2,3,4,5,10],rfcomm1:[2,10],rfcomm2:[2,10],right:[3,4],robot:[3,8],run:3,rwth:8,same:3,second:[2,5,10],secur:3,see:[2,3,4,5,7,10,11],seek:4,seem:[2,10],send:[2,3,8,10],sensor1:[2,4,6,10],sensor2:[2,10],sensor3:[2,10],sensor4:[2,10],sensor:[],sent:[2,10],serial:[2,5,7,10],serialport:5,serport:[2,3,4,5,10],set:[2,3,4,5,7,8,10,11],setbrak:3,setnonblock:7,setproperti:[2,3,4,5,6,10,11],setup:[2,10],sever:8,share:7,sheader:7,should:[3,7,11],shown:5,signal11:7,simplifi:8,size:[7,11],slave:3,slib:7,slow:3,slower:3,slowli:3,small:[2,10],smoothli:3,smoothstart:3,smoothstop:3,some:[3,7],sometim:[],somewhat:3,sooner:[],sourc:[2,3,4,5,7,10,11],specifi:[3,4],speed:3,speedregul:3,spin:3,start:[2,3,6,8,10],state:3,statu:[2,3,10],still:3,stop:[2,3,10],stopallmotor:[2,10],stopton:[2,10],straight:3,string:[2,3,4,5,7,10],struct:7,student:8,stuff:[2,3,10],sublay:[3,4],success:7,suppos:3,sure:5,sync:3,syncedstart:3,syncedstop:3,synchron:3,syncmotor:3,syntax:[2,3,4,5,10,11],system:[5,7],tacho:[3,4],tachocount:3,tacholimit:3,take:[3,8],temp:[],test:[2,3,5,10],than:[3,7,11],them:[2,3,4,10],thi:[2,3,4,5,6,7,8,10],think:7,thoroughli:[2,10],through:[5,11],time:3,timeout:[3,5,7,11],tone:[2,10],toneplai:[2,10],too:3,toolbox:[],touch:4,tricki:3,turn:[2,3,4,10],turnratio:3,two:3,type:[2,3,4,7,10],uint16:7,uint8:[5,7,11],ultrason:4,und:3,undefin:4,unexpect:[],unexpectedli:7,unknown:4,until:3,usage:5,usbbrickio:[],use:[3,11],user:[2,10],using:7,valid:[5,7,11],valu:[2,3,4,6,7,8,10],varargin:[2,3,4,5,10,11],variou:8,vendor:[7,11],vendorid:[7,11],version:4,via:[2,3,4,5,8,10,11],view:[2,10],virtual:[2,10],voltag:[2,3,10],volum:[2,10],wai:8,waitfor:[2,3,6,10],want:8,warn:4,wast:3,weird:3,what:[2,3,4,10],whatev:3,when:[2,3,4,5,7,10,11],which:[2,3,4,5,7,10,11],white:4,window:[5,7],without:[3,7],wmsg:[5,7,11],work:[2,3,4,10,11],workaround:3,would:[2,3,4,10],wrap:[],writable:[2,3,4,10],write:[5,7,11],written:[5,7,11],wrong:[2,10],www:7,xcode:7,yet:[2,10],you:[3,4,7,8,11],your:8},titles:["CommandLayer","CommunicationLayer","EV3","Motor","Sensor","btBrickIO","Examples","hidapi","MATLAB Toolbox for controlling Lego Mindstorms EV3","General","EV3","usbBrickIO"],titleterms:{bluetooth:1,btbrickio:5,command:0,commandlay:0,communicationinterfac:0,communicationlay:1,content:8,contribut:9,control:8,ev3:[2,8,10],exampl:6,gener:9,hidapi:7,installat:9,lego:8,licens:9,matlab:8,mindstorm:8,motor:3,sensor:4,toolbox:8,usb:1,usbbrickio:11}}) \ No newline at end of file diff --git a/docs/_build/html/source.html b/docs/_build/html/source.html index 375b9f9e271c42b12600e7cdd9d5c1e7b9cd9558..903ea3ea5d72a8e806be6fb86eee18ed839f027f 100644 --- a/docs/_build/html/source.html +++ b/docs/_build/html/source.html @@ -307,6 +307,10 @@ b.connect(‘usb’, ‘beep’, ‘on’, ); % <br /></ b.connect(‘bt’, ‘serPort’, ‘/dev/rfcomm0’); % <br /> % do stuff <br /> b.disconnect(); % <br /></p> +<p>Resetting needs a working connection in order to send reset-commands +to the Brick. If the connection has been aborted (e.g. by pulling the +USB-cord), the reset-methods would fail -> catch this error and for +now do nothing.</p> </dd></dl> <dl class="method"> diff --git a/docs/_build/latex/MindstormsEV3Toolbox.aux b/docs/_build/latex/MindstormsEV3Toolbox.aux index 96a5449598b3ead9dcee504e9bc78d519ffaf9bd..124d167f89a0aad8d11c6379b2416be7fb48f41b 100644 --- a/docs/_build/latex/MindstormsEV3Toolbox.aux +++ b/docs/_build/latex/MindstormsEV3Toolbox.aux @@ -75,7 +75,7 @@ \newlabel{EV3:source.EV3.stopTone}{{1.3}{6}{Example}{section*.32}{}} \@writefile{toc}{\contentsline {paragraph}{Example}{6}{paragraph*.33}} \newlabel{EV3:source.EV3.tonePlayed}{{1.3}{6}{Example}{section*.34}{}} -\newlabel{Motor:module-source}{{1.3}{6}{EV3}{section*.35}{}} +\newlabel{Motor:module-source}{{1.3}{7}{EV3}{section*.35}{}} \@writefile{toc}{\contentsline {section}{\numberline {1.4}Motor}{7}{section.1.4}} \newlabel{Motor::doc}{{1.4}{7}{Motor}{section.1.4}{}} \newlabel{Motor:motor}{{1.4}{7}{Motor}{section.1.4}{}} @@ -84,7 +84,7 @@ \newlabel{Motor:source.Motor.power}{{1.4}{7}{Notes}{section*.38}{}} \newlabel{Motor:source.Motor.speedRegulation}{{1.4}{7}{Notes}{section*.39}{}} \newlabel{Motor:source.Motor.smoothStart}{{1.4}{7}{Notes}{section*.40}{}} -\newlabel{Motor:source.Motor.smoothStop}{{1.4}{7}{Notes}{section*.41}{}} +\newlabel{Motor:source.Motor.smoothStop}{{1.4}{8}{Notes}{section*.41}{}} \newlabel{Motor:source.Motor.limitValue}{{1.4}{8}{Notes}{section*.42}{}} \newlabel{Motor:source.Motor.limitMode}{{1.4}{8}{Notes}{section*.43}{}} \newlabel{Motor:source.Motor.brakeMode}{{1.4}{8}{Notes}{section*.44}{}} @@ -96,7 +96,7 @@ \newlabel{Motor:source.Motor.internalReset}{{1.4}{8}{Notes}{section*.50}{}} \@writefile{toc}{\contentsline {paragraph}{Notes}{8}{paragraph*.51}} \newlabel{Motor:source.Motor.resetTachoCount}{{1.4}{8}{Notes}{section*.52}{}} -\newlabel{Motor:source.Motor.setBrake}{{1.4}{8}{Notes}{section*.53}{}} +\newlabel{Motor:source.Motor.setBrake}{{1.4}{9}{Notes}{section*.53}{}} \@writefile{toc}{\contentsline {paragraph}{Notes}{9}{paragraph*.54}} \newlabel{Motor:source.Motor.setProperties}{{1.4}{9}{Notes}{section*.55}{}} \@writefile{toc}{\contentsline {paragraph}{Example}{9}{paragraph*.56}} @@ -110,30 +110,30 @@ \@writefile{toc}{\contentsline {paragraph}{Notes}{10}{paragraph*.64}} \newlabel{Motor:source.Motor.waitFor}{{1.4}{10}{Notes}{section*.65}{}} \@writefile{toc}{\contentsline {paragraph}{Notes}{10}{paragraph*.66}} -\newlabel{Sensor:module-source}{{1.4}{10}{Motor}{section*.67}{}} -\@writefile{toc}{\contentsline {section}{\numberline {1.5}Sensor}{10}{section.1.5}} -\newlabel{Sensor:sensor}{{1.5}{10}{Sensor}{section.1.5}{}} -\newlabel{Sensor::doc}{{1.5}{10}{Sensor}{section.1.5}{}} -\newlabel{Sensor:source.Sensor}{{1.5}{10}{Sensor}{section*.68}{}} +\newlabel{Sensor:module-source}{{1.4}{11}{Motor}{section*.67}{}} +\@writefile{toc}{\contentsline {section}{\numberline {1.5}Sensor}{11}{section.1.5}} +\newlabel{Sensor:sensor}{{1.5}{11}{Sensor}{section.1.5}{}} +\newlabel{Sensor::doc}{{1.5}{11}{Sensor}{section.1.5}{}} +\newlabel{Sensor:source.Sensor}{{1.5}{11}{Sensor}{section*.68}{}} \@writefile{toc}{\contentsline {paragraph}{Notes}{11}{paragraph*.69}} \newlabel{Sensor:source.Sensor.mode}{{1.5}{11}{Notes}{section*.70}{}} -\newlabel{Sensor:source.Sensor.debug}{{1.5}{12}{Notes}{section*.71}{}} +\newlabel{Sensor:source.Sensor.debug}{{1.5}{13}{Notes}{section*.71}{}} \newlabel{Sensor:source.Sensor.value}{{1.5}{13}{Notes}{section*.72}{}} \newlabel{Sensor:source.Sensor.type}{{1.5}{13}{Notes}{section*.73}{}} \newlabel{Sensor:source.Sensor.reset}{{1.5}{13}{Notes}{section*.74}{}} -\@writefile{toc}{\contentsline {paragraph}{Notes}{13}{paragraph*.75}} -\newlabel{Sensor:source.Sensor.setProperties}{{1.5}{13}{Notes}{section*.76}{}} +\@writefile{toc}{\contentsline {paragraph}{Notes}{14}{paragraph*.75}} +\newlabel{Sensor:source.Sensor.setProperties}{{1.5}{14}{Notes}{section*.76}{}} \@writefile{toc}{\contentsline {paragraph}{Example}{14}{paragraph*.77}} \newlabel{hid:module-source}{{1.5}{14}{Sensor}{section*.78}{}} \@writefile{toc}{\contentsline {section}{\numberline {1.6}hidapi}{14}{section.1.6}} \newlabel{hid:hidapi}{{1.6}{14}{hidapi}{section.1.6}{}} \newlabel{hid::doc}{{1.6}{14}{hidapi}{section.1.6}{}} \newlabel{hid:source.hidapi}{{1.6}{14}{hidapi}{section*.79}{}} -\@writefile{toc}{\contentsline {paragraph}{Notes}{14}{paragraph*.80}} -\newlabel{hid:source.hidapi.handle}{{1.6}{14}{Notes}{section*.81}{}} -\newlabel{hid:source.hidapi.vendorID}{{1.6}{14}{Notes}{section*.82}{}} -\newlabel{hid:source.hidapi.productID}{{1.6}{14}{Notes}{section*.83}{}} -\newlabel{hid:source.hidapi.nReadBuffer}{{1.6}{14}{Notes}{section*.84}{}} +\@writefile{toc}{\contentsline {paragraph}{Notes}{15}{paragraph*.80}} +\newlabel{hid:source.hidapi.handle}{{1.6}{15}{Notes}{section*.81}{}} +\newlabel{hid:source.hidapi.vendorID}{{1.6}{15}{Notes}{section*.82}{}} +\newlabel{hid:source.hidapi.productID}{{1.6}{15}{Notes}{section*.83}{}} +\newlabel{hid:source.hidapi.nReadBuffer}{{1.6}{15}{Notes}{section*.84}{}} \newlabel{hid:source.hidapi.nWriteBuffer}{{1.6}{15}{Notes}{section*.85}{}} \newlabel{hid:source.hidapi.slib}{{1.6}{15}{Notes}{section*.86}{}} \newlabel{hid:source.hidapi.sheader}{{1.6}{15}{Notes}{section*.87}{}} @@ -141,9 +141,9 @@ \newlabel{hid:source.hidapi.close}{{1.6}{15}{Example}{section*.89}{}} \@writefile{toc}{\contentsline {paragraph}{Notes}{15}{paragraph*.90}} \newlabel{hid:source.hidapi.enumerate}{{1.6}{15}{Example}{section*.91}{}} -\@writefile{toc}{\contentsline {paragraph}{Notes}{15}{paragraph*.92}} -\newlabel{hid:source.hidapi.error}{{1.6}{15}{Example}{section*.93}{}} -\@writefile{toc}{\contentsline {paragraph}{Notes}{15}{paragraph*.94}} +\@writefile{toc}{\contentsline {paragraph}{Notes}{16}{paragraph*.92}} +\newlabel{hid:source.hidapi.error}{{1.6}{16}{Example}{section*.93}{}} +\@writefile{toc}{\contentsline {paragraph}{Notes}{16}{paragraph*.94}} \newlabel{hid:source.hidapi.exit}{{1.6}{16}{Example}{section*.95}{}} \newlabel{hid:source.hidapi.getHIDInfoString}{{1.6}{16}{Example}{section*.96}{}} \@writefile{toc}{\contentsline {paragraph}{Notes}{16}{paragraph*.97}} @@ -151,16 +151,16 @@ \newlabel{hid:source.hidapi.getProductString}{{1.6}{16}{Example}{section*.99}{}} \newlabel{hid:source.hidapi.getSerialNumberString}{{1.6}{16}{Example}{section*.100}{}} \newlabel{hid:source.hidapi.init}{{1.6}{16}{Example}{section*.101}{}} -\@writefile{toc}{\contentsline {paragraph}{Notes}{16}{paragraph*.102}} -\newlabel{hid:source.hidapi.open}{{1.6}{16}{Example}{section*.103}{}} -\@writefile{toc}{\contentsline {paragraph}{Notes}{16}{paragraph*.104}} +\@writefile{toc}{\contentsline {paragraph}{Notes}{17}{paragraph*.102}} +\newlabel{hid:source.hidapi.open}{{1.6}{17}{Example}{section*.103}{}} +\@writefile{toc}{\contentsline {paragraph}{Notes}{17}{paragraph*.104}} \newlabel{hid:source.hidapi.read}{{1.6}{17}{Example}{section*.105}{}} \@writefile{toc}{\contentsline {paragraph}{Notes}{17}{paragraph*.106}} \newlabel{hid:source.hidapi.read_timeout}{{1.6}{17}{Example}{section*.107}{}} \newlabel{hid:source.hidapi.setNonBlocking}{{1.6}{17}{Example}{section*.108}{}} \newlabel{hid:source.hidapi.write}{{1.6}{17}{Example}{section*.109}{}} -\@writefile{toc}{\contentsline {paragraph}{Notes}{17}{paragraph*.110}} -\newlabel{usbBrickIO:module-source}{{1.6}{17}{hidapi}{section*.111}{}} +\@writefile{toc}{\contentsline {paragraph}{Notes}{18}{paragraph*.110}} +\newlabel{usbBrickIO:module-source}{{1.6}{18}{hidapi}{section*.111}{}} \@writefile{toc}{\contentsline {section}{\numberline {1.7}usbBrickIO}{18}{section.1.7}} \newlabel{usbBrickIO:usbbrickio}{{1.7}{18}{usbBrickIO}{section.1.7}{}} \newlabel{usbBrickIO::doc}{{1.7}{18}{usbBrickIO}{section.1.7}{}} @@ -172,11 +172,11 @@ \newlabel{usbBrickIO:source.usbBrickIO.nReadBuffer}{{1.7}{18}{Notes}{section*.117}{}} \newlabel{usbBrickIO:source.usbBrickIO.nWriteBuffer}{{1.7}{18}{Notes}{section*.118}{}} \newlabel{usbBrickIO:source.usbBrickIO.timeOut}{{1.7}{18}{Notes}{section*.119}{}} -\@writefile{toc}{\contentsline {paragraph}{Examples}{18}{paragraph*.120}} -\newlabel{usbBrickIO:source.usbBrickIO.close}{{1.7}{18}{Examples}{section*.121}{}} -\newlabel{usbBrickIO:source.usbBrickIO.open}{{1.7}{18}{Examples}{section*.122}{}} -\newlabel{usbBrickIO:source.usbBrickIO.read}{{1.7}{18}{Examples}{section*.123}{}} -\newlabel{usbBrickIO:source.usbBrickIO.setProperties}{{1.7}{18}{Examples}{section*.124}{}} +\@writefile{toc}{\contentsline {paragraph}{Examples}{19}{paragraph*.120}} +\newlabel{usbBrickIO:source.usbBrickIO.close}{{1.7}{19}{Examples}{section*.121}{}} +\newlabel{usbBrickIO:source.usbBrickIO.open}{{1.7}{19}{Examples}{section*.122}{}} +\newlabel{usbBrickIO:source.usbBrickIO.read}{{1.7}{19}{Examples}{section*.123}{}} +\newlabel{usbBrickIO:source.usbBrickIO.setProperties}{{1.7}{19}{Examples}{section*.124}{}} \newlabel{usbBrickIO:source.usbBrickIO.write}{{1.7}{19}{Examples}{section*.125}{}} \newlabel{btBrickIO:module-source}{{1.7}{19}{usbBrickIO}{section*.126}{}} \@writefile{toc}{\contentsline {section}{\numberline {1.8}btBrickIO}{19}{section.1.8}} @@ -184,10 +184,10 @@ \newlabel{btBrickIO::doc}{{1.8}{19}{btBrickIO}{section.1.8}{}} \newlabel{btBrickIO:source.btBrickIO}{{1.8}{19}{btBrickIO}{section*.127}{}} \@writefile{toc}{\contentsline {paragraph}{Notes}{19}{paragraph*.128}} -\newlabel{btBrickIO:source.btBrickIO.debug}{{1.8}{19}{Notes}{section*.129}{}} -\newlabel{btBrickIO:source.btBrickIO.serialPort}{{1.8}{19}{Notes}{section*.130}{}} -\newlabel{btBrickIO:source.btBrickIO.deviceName}{{1.8}{19}{Notes}{section*.131}{}} -\newlabel{btBrickIO:source.btBrickIO.channel}{{1.8}{19}{Notes}{section*.132}{}} +\newlabel{btBrickIO:source.btBrickIO.debug}{{1.8}{20}{Notes}{section*.129}{}} +\newlabel{btBrickIO:source.btBrickIO.serialPort}{{1.8}{20}{Notes}{section*.130}{}} +\newlabel{btBrickIO:source.btBrickIO.deviceName}{{1.8}{20}{Notes}{section*.131}{}} +\newlabel{btBrickIO:source.btBrickIO.channel}{{1.8}{20}{Notes}{section*.132}{}} \newlabel{btBrickIO:source.btBrickIO.timeOut}{{1.8}{20}{Notes}{section*.133}{}} \newlabel{btBrickIO:source.btBrickIO.backend}{{1.8}{20}{Notes}{section*.134}{}} \@writefile{toc}{\contentsline {paragraph}{Examples}{20}{paragraph*.135}} diff --git a/docs/_build/latex/MindstormsEV3Toolbox.idx b/docs/_build/latex/MindstormsEV3Toolbox.idx index c4ec5427ad4be5283bfff9b17c9ff33a15b4d91c..46189e27a3291d81ce7fc08aa66c40c484a21d3c 100644 --- a/docs/_build/latex/MindstormsEV3Toolbox.idx +++ b/docs/_build/latex/MindstormsEV3Toolbox.idx @@ -20,12 +20,12 @@ \indexentry{stopAllMotors() (source.EV3 method)|hyperpage}{6} \indexentry{stopTone() (source.EV3 method)|hyperpage}{6} \indexentry{tonePlayed() (source.EV3 method)|hyperpage}{6} -\indexentry{source (module)|hyperpage}{6} +\indexentry{source (module)|hyperpage}{7} \indexentry{Motor (class in source)|hyperpage}{7} \indexentry{power (source.Motor attribute)|hyperpage}{7} \indexentry{speedRegulation (source.Motor attribute)|hyperpage}{7} \indexentry{smoothStart (source.Motor attribute)|hyperpage}{7} -\indexentry{smoothStop (source.Motor attribute)|hyperpage}{7} +\indexentry{smoothStop (source.Motor attribute)|hyperpage}{8} \indexentry{limitValue (source.Motor attribute)|hyperpage}{8} \indexentry{limitMode (source.Motor attribute)|hyperpage}{8} \indexentry{brakeMode (source.Motor attribute)|hyperpage}{8} @@ -36,45 +36,45 @@ \indexentry{type (source.Motor attribute)|hyperpage}{8} \indexentry{internalReset() (source.Motor method)|hyperpage}{8} \indexentry{resetTachoCount() (source.Motor method)|hyperpage}{8} -\indexentry{setBrake() (source.Motor method)|hyperpage}{8} +\indexentry{setBrake() (source.Motor method)|hyperpage}{9} \indexentry{setProperties() (source.Motor method)|hyperpage}{9} \indexentry{start() (source.Motor method)|hyperpage}{9} \indexentry{stop() (source.Motor method)|hyperpage}{9} \indexentry{syncedStart() (source.Motor method)|hyperpage}{9} \indexentry{syncedStop() (source.Motor method)|hyperpage}{10} \indexentry{waitFor() (source.Motor method)|hyperpage}{10} -\indexentry{source (module)|hyperpage}{10} -\indexentry{Sensor (class in source)|hyperpage}{10} +\indexentry{source (module)|hyperpage}{11} +\indexentry{Sensor (class in source)|hyperpage}{11} \indexentry{mode (source.Sensor attribute)|hyperpage}{11} -\indexentry{debug (source.Sensor attribute)|hyperpage}{12} +\indexentry{debug (source.Sensor attribute)|hyperpage}{13} \indexentry{value (source.Sensor attribute)|hyperpage}{13} \indexentry{type (source.Sensor attribute)|hyperpage}{13} \indexentry{reset() (source.Sensor method)|hyperpage}{13} -\indexentry{setProperties() (source.Sensor method)|hyperpage}{13} +\indexentry{setProperties() (source.Sensor method)|hyperpage}{14} \indexentry{source (module)|hyperpage}{14} \indexentry{hidapi (class in source)|hyperpage}{14} -\indexentry{handle (source.hidapi attribute)|hyperpage}{14} -\indexentry{vendorID (source.hidapi attribute)|hyperpage}{14} -\indexentry{productID (source.hidapi attribute)|hyperpage}{14} -\indexentry{nReadBuffer (source.hidapi attribute)|hyperpage}{14} +\indexentry{handle (source.hidapi attribute)|hyperpage}{15} +\indexentry{vendorID (source.hidapi attribute)|hyperpage}{15} +\indexentry{productID (source.hidapi attribute)|hyperpage}{15} +\indexentry{nReadBuffer (source.hidapi attribute)|hyperpage}{15} \indexentry{nWriteBuffer (source.hidapi attribute)|hyperpage}{15} \indexentry{slib (source.hidapi attribute)|hyperpage}{15} \indexentry{sheader (source.hidapi attribute)|hyperpage}{15} \indexentry{close() (source.hidapi method)|hyperpage}{15} \indexentry{enumerate() (source.hidapi method)|hyperpage}{15} -\indexentry{error() (source.hidapi method)|hyperpage}{15} +\indexentry{error() (source.hidapi method)|hyperpage}{16} \indexentry{exit() (source.hidapi method)|hyperpage}{16} \indexentry{getHIDInfoString() (source.hidapi method)|hyperpage}{16} \indexentry{getManufacturersString() (source.hidapi method)|hyperpage}{16} \indexentry{getProductString() (source.hidapi method)|hyperpage}{16} \indexentry{getSerialNumberString() (source.hidapi method)|hyperpage}{16} \indexentry{init() (source.hidapi method)|hyperpage}{16} -\indexentry{open() (source.hidapi method)|hyperpage}{16} +\indexentry{open() (source.hidapi method)|hyperpage}{17} \indexentry{read() (source.hidapi method)|hyperpage}{17} \indexentry{read\_timeout() (source.hidapi method)|hyperpage}{17} \indexentry{setNonBlocking() (source.hidapi method)|hyperpage}{17} \indexentry{write() (source.hidapi method)|hyperpage}{17} -\indexentry{source (module)|hyperpage}{17} +\indexentry{source (module)|hyperpage}{18} \indexentry{usbBrickIO (class in source)|hyperpage}{18} \indexentry{debug (source.usbBrickIO attribute)|hyperpage}{18} \indexentry{vendorID (source.usbBrickIO attribute)|hyperpage}{18} @@ -82,17 +82,17 @@ \indexentry{nReadBuffer (source.usbBrickIO attribute)|hyperpage}{18} \indexentry{nWriteBuffer (source.usbBrickIO attribute)|hyperpage}{18} \indexentry{timeOut (source.usbBrickIO attribute)|hyperpage}{18} -\indexentry{close() (source.usbBrickIO method)|hyperpage}{18} -\indexentry{open() (source.usbBrickIO method)|hyperpage}{18} -\indexentry{read() (source.usbBrickIO method)|hyperpage}{18} -\indexentry{setProperties() (source.usbBrickIO method)|hyperpage}{18} +\indexentry{close() (source.usbBrickIO method)|hyperpage}{19} +\indexentry{open() (source.usbBrickIO method)|hyperpage}{19} +\indexentry{read() (source.usbBrickIO method)|hyperpage}{19} +\indexentry{setProperties() (source.usbBrickIO method)|hyperpage}{19} \indexentry{write() (source.usbBrickIO method)|hyperpage}{19} \indexentry{source (module)|hyperpage}{19} \indexentry{btBrickIO (class in source)|hyperpage}{19} -\indexentry{debug (source.btBrickIO attribute)|hyperpage}{19} -\indexentry{serialPort (source.btBrickIO attribute)|hyperpage}{19} -\indexentry{deviceName (source.btBrickIO attribute)|hyperpage}{19} -\indexentry{channel (source.btBrickIO attribute)|hyperpage}{19} +\indexentry{debug (source.btBrickIO attribute)|hyperpage}{20} +\indexentry{serialPort (source.btBrickIO attribute)|hyperpage}{20} +\indexentry{deviceName (source.btBrickIO attribute)|hyperpage}{20} +\indexentry{channel (source.btBrickIO attribute)|hyperpage}{20} \indexentry{timeOut (source.btBrickIO attribute)|hyperpage}{20} \indexentry{backend (source.btBrickIO attribute)|hyperpage}{20} \indexentry{close() (source.btBrickIO method)|hyperpage}{20} diff --git a/docs/_build/latex/MindstormsEV3Toolbox.ind b/docs/_build/latex/MindstormsEV3Toolbox.ind index aa7d79c74657690881f91eb3d205ac2d2a882b73..732da01635bc5c7524973c8bf3cf45b84c247b03 100644 --- a/docs/_build/latex/MindstormsEV3Toolbox.ind +++ b/docs/_build/latex/MindstormsEV3Toolbox.ind @@ -11,27 +11,27 @@ \indexspace \bigletter C - \item channel (source.btBrickIO attribute), \hyperpage{19} + \item channel (source.btBrickIO attribute), \hyperpage{20} \item close() (source.btBrickIO method), \hyperpage{20} \item close() (source.hidapi method), \hyperpage{15} - \item close() (source.usbBrickIO method), \hyperpage{18} + \item close() (source.usbBrickIO method), \hyperpage{19} \item connect() (source.EV3 method), \hyperpage{5} \item currentSpeed (source.Motor attribute), \hyperpage{8} \indexspace \bigletter D - \item debug (source.btBrickIO attribute), \hyperpage{19} + \item debug (source.btBrickIO attribute), \hyperpage{20} \item debug (source.EV3 attribute), \hyperpage{4} \item debug (source.Motor attribute), \hyperpage{8} - \item debug (source.Sensor attribute), \hyperpage{12} + \item debug (source.Sensor attribute), \hyperpage{13} \item debug (source.usbBrickIO attribute), \hyperpage{18} - \item deviceName (source.btBrickIO attribute), \hyperpage{19} + \item deviceName (source.btBrickIO attribute), \hyperpage{20} \item disconnect() (source.EV3 method), \hyperpage{5} \indexspace \bigletter E \item enumerate() (source.hidapi method), \hyperpage{15} - \item error() (source.hidapi method), \hyperpage{15} + \item error() (source.hidapi method), \hyperpage{16} \item EV3 (class in source), \hyperpage{3} \item exit() (source.hidapi method), \hyperpage{16} @@ -44,7 +44,7 @@ \indexspace \bigletter H - \item handle (source.hidapi attribute), \hyperpage{14} + \item handle (source.hidapi attribute), \hyperpage{15} \item hidapi (class in source), \hyperpage{14} \indexspace @@ -70,7 +70,7 @@ \indexspace \bigletter N - \item nReadBuffer (source.hidapi attribute), \hyperpage{14} + \item nReadBuffer (source.hidapi attribute), \hyperpage{15} \item nReadBuffer (source.usbBrickIO attribute), \hyperpage{18} \item nWriteBuffer (source.hidapi attribute), \hyperpage{15} \item nWriteBuffer (source.usbBrickIO attribute), \hyperpage{18} @@ -78,46 +78,46 @@ \indexspace \bigletter O \item open() (source.btBrickIO method), \hyperpage{20} - \item open() (source.hidapi method), \hyperpage{16} - \item open() (source.usbBrickIO method), \hyperpage{18} + \item open() (source.hidapi method), \hyperpage{17} + \item open() (source.usbBrickIO method), \hyperpage{19} \indexspace \bigletter P \item playTone() (source.EV3 method), \hyperpage{6} \item power (source.Motor attribute), \hyperpage{7} - \item productID (source.hidapi attribute), \hyperpage{14} + \item productID (source.hidapi attribute), \hyperpage{15} \item productID (source.usbBrickIO attribute), \hyperpage{18} \indexspace \bigletter R \item read() (source.btBrickIO method), \hyperpage{20} \item read() (source.hidapi method), \hyperpage{17} - \item read() (source.usbBrickIO method), \hyperpage{18} + \item read() (source.usbBrickIO method), \hyperpage{19} \item read\_timeout() (source.hidapi method), \hyperpage{17} \item reset() (source.Sensor method), \hyperpage{13} \item resetTachoCount() (source.Motor method), \hyperpage{8} \indexspace \bigletter S - \item Sensor (class in source), \hyperpage{10} + \item Sensor (class in source), \hyperpage{11} \item sensor1 (source.EV3 attribute), \hyperpage{4} \item sensor2 (source.EV3 attribute), \hyperpage{4} \item sensor3 (source.EV3 attribute), \hyperpage{4} \item sensor4 (source.EV3 attribute), \hyperpage{4} - \item serialPort (source.btBrickIO attribute), \hyperpage{19} - \item setBrake() (source.Motor method), \hyperpage{8} + \item serialPort (source.btBrickIO attribute), \hyperpage{20} + \item setBrake() (source.Motor method), \hyperpage{9} \item setNonBlocking() (source.hidapi method), \hyperpage{17} \item setProperties() (source.btBrickIO method), \hyperpage{20} \item setProperties() (source.EV3 method), \hyperpage{6} \item setProperties() (source.Motor method), \hyperpage{9} - \item setProperties() (source.Sensor method), \hyperpage{13} - \item setProperties() (source.usbBrickIO method), \hyperpage{18} + \item setProperties() (source.Sensor method), \hyperpage{14} + \item setProperties() (source.usbBrickIO method), \hyperpage{19} \item sheader (source.hidapi attribute), \hyperpage{15} \item slib (source.hidapi attribute), \hyperpage{15} \item smoothStart (source.Motor attribute), \hyperpage{7} - \item smoothStop (source.Motor attribute), \hyperpage{7} - \item source (module), \hyperpage{3}, \hyperpage{6}, \hyperpage{10}, \hyperpage{14}, - \hyperpage{17}, \hyperpage{19} + \item smoothStop (source.Motor attribute), \hyperpage{8} + \item source (module), \hyperpage{3}, \hyperpage{7}, \hyperpage{11}, \hyperpage{14}, + \hyperpage{18, 19} \item speedRegulation (source.Motor attribute), \hyperpage{7} \item start() (source.Motor method), \hyperpage{9} \item stop() (source.Motor method), \hyperpage{9} @@ -142,7 +142,7 @@ \indexspace \bigletter V \item value (source.Sensor attribute), \hyperpage{13} - \item vendorID (source.hidapi attribute), \hyperpage{14} + \item vendorID (source.hidapi attribute), \hyperpage{15} \item vendorID (source.usbBrickIO attribute), \hyperpage{18} \indexspace diff --git a/docs/_build/latex/MindstormsEV3Toolbox.log b/docs/_build/latex/MindstormsEV3Toolbox.log index 97fe6f3b67f180530f03d2c24a4357b35bdd5c5b..4bdbd61de2f9679e5aa817ab19c0894fbc92907d 100644 --- a/docs/_build/latex/MindstormsEV3Toolbox.log +++ b/docs/_build/latex/MindstormsEV3Toolbox.log @@ -1,4 +1,4 @@ -This is pdfTeX, Version 3.1415926-2.5-1.40.14 (TeX Live 2013/Debian) (format=pdflatex 2016.11.23) 9 MAY 2017 15:23 +This is pdfTeX, Version 3.1415926-2.5-1.40.14 (TeX Live 2013/Debian) (format=pdflatex 2016.11.23) 30 JUN 2017 16:17 entering extended mode restricted \write18 enabled. %&-line parsing enabled. @@ -1036,19 +1036,24 @@ m1', '/dev/rfcomm2', ...}\T1/ptm/m/n/10 ) -- [] [5] -Underfull \hbox (badness 10000) in paragraph at lines 479--480 +Underfull \hbox (badness 10000) in paragraph at lines 484--485 []\T1/pcr/b/n/10 batteryMode \T1/ptm/m/n/10 (\T1/pcr/m/sl/10 string in {'Voltag e'/'Percentage'}\T1/ptm/m/n/10 ) -- see [] -[6] [7] [8] [9] [10] [11] [12] [13] [14] [15] -Underfull \hbox (badness 10000) in paragraph at lines 1591--1593 +[6] [7] [8] [9] [10] [11] [12] [13] +Underfull \hbox (badness 10000) in paragraph at lines 1313--1315 +[]\T1/ptm/m/n/10 `all mo-tor tacho + [] + +[14] [15] +Underfull \hbox (badness 10000) in paragraph at lines 1603--1605 []\T1/ptm/m/n/10 See also HI-DAPI.GETMANUFACTURERSSTRING, HI-DAPI.GETPRODUCTSTR ING, HI- [] [16] [17] [18] [19] -Underfull \hbox (badness 5504) in paragraph at lines 2066--2068 +Underfull \hbox (badness 5504) in paragraph at lines 2078--2080 []\T1/ptm/m/n/10 See also BT-BRICKIO.DEBUG, BT-BRICKIO.SERIALPORT, BT-BRICKIO.D EVICENAME, BT- [] @@ -1065,16 +1070,16 @@ EVICENAME, BT- ] [24 ]) -Package atveryend Info: Empty hook `BeforeClearDocument' on input line 2098. -Package atveryend Info: Empty hook `AfterLastShipout' on input line 2098. +Package atveryend Info: Empty hook `BeforeClearDocument' on input line 2110. +Package atveryend Info: Empty hook `AfterLastShipout' on input line 2110. (./MindstormsEV3Toolbox.aux) -Package atveryend Info: Executing hook `AtVeryEndDocument' on input line 2098. -Package atveryend Info: Executing hook `AtEndAfterFileList' on input line 2098. +Package atveryend Info: Executing hook `AtVeryEndDocument' on input line 2110. +Package atveryend Info: Executing hook `AtEndAfterFileList' on input line 2110. Package rerunfilecheck Info: File `MindstormsEV3Toolbox.out' has not changed. (rerunfilecheck) Checksum: CA85C18231C8BE65A74CF3036572891B;1005. -Package atveryend Info: Empty hook `AtVeryVeryEnd' on input line 2098. +Package atveryend Info: Empty hook `AtVeryVeryEnd' on input line 2110. ) Here is how much of TeX's memory you used: 13596 strings out of 493304 @@ -1083,7 +1088,7 @@ Here is how much of TeX's memory you used: 16554 multiletter control sequences out of 15000+600000 62190 words of font info for 80 fonts, out of 8000000 for 9000 958 hyphenation exceptions out of 8191 - 36i,12n,45p,527b,673s stack positions out of 5000i,500n,10000p,200000b,80000s + 36i,12n,45p,527b,671s stack positions out of 5000i,500n,10000p,200000b,80000s {/usr/share/texlive/texmf-dist/fonts/enc/dvips/base/8r.enc}</usr/share/texliv e/texmf-dist/fonts/type1/urw/courier/ucrb8a.pfb></usr/share/texlive/texmf-dist/ fonts/type1/urw/courier/ucrr8a.pfb></usr/share/texlive/texmf-dist/fonts/type1/u @@ -1094,7 +1099,7 @@ texlive/texmf-dist/fonts/type1/urw/times/utmb8a.pfb></usr/share/texlive/texmf-d ist/fonts/type1/urw/times/utmbi8a.pfb></usr/share/texlive/texmf-dist/fonts/type 1/urw/times/utmr8a.pfb></usr/share/texlive/texmf-dist/fonts/type1/urw/times/utm ri8a.pfb> -Output written on MindstormsEV3Toolbox.pdf (28 pages, 177469 bytes). +Output written on MindstormsEV3Toolbox.pdf (28 pages, 178554 bytes). PDF statistics: 584 PDF objects out of 1000 (max. 8388607) 533 compressed objects within 6 object streams diff --git a/docs/_build/latex/MindstormsEV3Toolbox.pdf b/docs/_build/latex/MindstormsEV3Toolbox.pdf index c3f9b1702839739ec2c5a6c5cbc72bf7007fbbac..956a691f8dc5ddbb8dad5c445cb9030a7dc5bb93 100644 Binary files a/docs/_build/latex/MindstormsEV3Toolbox.pdf and b/docs/_build/latex/MindstormsEV3Toolbox.pdf differ diff --git a/docs/_build/latex/MindstormsEV3Toolbox.tex b/docs/_build/latex/MindstormsEV3Toolbox.tex index 495062e2525d46b111c71732b37b91f419faad6d..1292b6735f88a3c6320aa0d6cae7dbdf71ab34ce 100644 --- a/docs/_build/latex/MindstormsEV3Toolbox.tex +++ b/docs/_build/latex/MindstormsEV3Toolbox.tex @@ -32,7 +32,7 @@ \title{Mindstorms EV3 Toolbox Documentation} -\date{May 09, 2017} +\date{Jun 30, 2017} \release{v0.4-rc.10} \author{LfB - RWTH Aachen} \newcommand{\sphinxlogo}{} @@ -435,6 +435,11 @@ b.connect(`bt', `serPort', `/dev/rfcomm0'); \% \% do stuff b.disconnect(); \% +Resetting needs a working connection in order to send reset-commands +to the Brick. If the connection has been aborted (e.g. by pulling the +USB-cord), the reset-methods would fail -\textgreater{} catch this error and for +now do nothing. + \end{fulllineitems} \index{playTone() (source.EV3 method)} @@ -1303,6 +1308,13 @@ Resets sensor value. \begin{itemize} \item {} This clears ALL the sensors right now, no other Op-Code available... :( +\begin{quote} +\begin{description} +\item[{warning({[}'Current version of reset resets ALL devices, that is, `,...}] \leavevmode +`all motor tacho counts and all other sensor counters!'{]}); + +\end{description} +\end{quote} \end{itemize} diff --git a/docs/_build/latex/MindstormsEV3Toolbox.toc b/docs/_build/latex/MindstormsEV3Toolbox.toc index c486de7aa37289cd49fa48fcf6a23657e0798bcf..0023c130001e9813a4304a5d94fe8819e24cbe7c 100644 --- a/docs/_build/latex/MindstormsEV3Toolbox.toc +++ b/docs/_build/latex/MindstormsEV3Toolbox.toc @@ -26,24 +26,24 @@ \contentsline {paragraph}{Example}{10}{paragraph*.62} \contentsline {paragraph}{Notes}{10}{paragraph*.64} \contentsline {paragraph}{Notes}{10}{paragraph*.66} -\contentsline {section}{\numberline {1.5}Sensor}{10}{section.1.5} +\contentsline {section}{\numberline {1.5}Sensor}{11}{section.1.5} \contentsline {paragraph}{Notes}{11}{paragraph*.69} -\contentsline {paragraph}{Notes}{13}{paragraph*.75} +\contentsline {paragraph}{Notes}{14}{paragraph*.75} \contentsline {paragraph}{Example}{14}{paragraph*.77} \contentsline {section}{\numberline {1.6}hidapi}{14}{section.1.6} -\contentsline {paragraph}{Notes}{14}{paragraph*.80} +\contentsline {paragraph}{Notes}{15}{paragraph*.80} \contentsline {paragraph}{Example}{15}{paragraph*.88} \contentsline {paragraph}{Notes}{15}{paragraph*.90} -\contentsline {paragraph}{Notes}{15}{paragraph*.92} -\contentsline {paragraph}{Notes}{15}{paragraph*.94} +\contentsline {paragraph}{Notes}{16}{paragraph*.92} +\contentsline {paragraph}{Notes}{16}{paragraph*.94} \contentsline {paragraph}{Notes}{16}{paragraph*.97} -\contentsline {paragraph}{Notes}{16}{paragraph*.102} -\contentsline {paragraph}{Notes}{16}{paragraph*.104} +\contentsline {paragraph}{Notes}{17}{paragraph*.102} +\contentsline {paragraph}{Notes}{17}{paragraph*.104} \contentsline {paragraph}{Notes}{17}{paragraph*.106} -\contentsline {paragraph}{Notes}{17}{paragraph*.110} +\contentsline {paragraph}{Notes}{18}{paragraph*.110} \contentsline {section}{\numberline {1.7}usbBrickIO}{18}{section.1.7} \contentsline {paragraph}{Notes}{18}{paragraph*.113} -\contentsline {paragraph}{Examples}{18}{paragraph*.120} +\contentsline {paragraph}{Examples}{19}{paragraph*.120} \contentsline {section}{\numberline {1.8}btBrickIO}{19}{section.1.8} \contentsline {paragraph}{Notes}{19}{paragraph*.128} \contentsline {paragraph}{Examples}{20}{paragraph*.135} diff --git a/docs/process.py b/docs/process.py index a350ddc9a07120c70e26a0c9f0ab7db7191957e9..7740639b69a3087d4493374b2d5c954f6637c518 100644 --- a/docs/process.py +++ b/docs/process.py @@ -80,10 +80,29 @@ def preprocess(): raise StopIteration except StopIteration: # This exception is like a 'continue' for the outer loop when inside an inner loop - continue + pass except IOError: pass + if file_name == 'EV3.m': + fh, abs_path = mkstemp() + with open(code_dir + "/" + file_name, 'r') as f: + with open(abs_path, 'w') as ftemp: + content = f.readlines() + for i, line in enumerate(content): + if 'methods (Access = {?' in line: + line = line.replace('methods (Access = {?', 'methods %(Access = {?') + + _write_lines(content[:i], ftemp) + _write_lines([line], ftemp) + _write_lines(content[i+1:], ftemp) + + close(fh) + remove(code_dir + "/" + file_name) + move(abs_path, code_dir + "/" + file_name) + + break + def postprocess(): """Postprocesses data after building documentation @@ -135,10 +154,29 @@ def postprocess(): raise StopIteration # At this point, entire file has been processed: continue outer loop except StopIteration: - continue + pass except IOError: pass + if file_name == 'EV3.m': + fh, abs_path = mkstemp() + with open(code_dir + "/" + file_name, 'r') as f: + with open(abs_path, 'w') as ftemp: + content = f.readlines() + for i, line in enumerate(content): + if 'methods %(Access = {?' in line: + line = line.replace('methods %(Access = {?', 'methods (Access = {?') + + _write_lines(content[:i], ftemp) + _write_lines([line], ftemp) + _write_lines(content[i+1:], ftemp) + + close(fh) + remove(code_dir + "/" + file_name) + move(abs_path, code_dir + "/" + file_name) + + break + postprocess_html_files() def postprocess_html_files():