Posted 05 January 2014 - 11:21 AM
Hey there ;-)
i watched some tutorial and
i wrote some code,
added a lot of own functions, some are working well already …
but i have a big problem with the
i want to get a user Input with variables like
i want it in one line, with different amount of vars for different commands, thats actually the problem :wacko:/>
and thats what needs to change actually
but hey, its working :P/>
dont complain too much :D/>
http://pastebin.com/hae3quw8
its saving its location and direction in an external file,
can set a base, with fuelchest and dropchest on specific side if needed,
it can quarry, unload and resume
can get fuel and return to task,
it can temporarily host gps if needed ( for whatever you might need it)
If i solve this, it will be able to move to xyz coordinate,
dig its way there if neccesary,
I want to add some network functions as well, make it RC
Soon there will be some Brainbug - PC guiding its drones to do what it wants muahahahahaaa B)/> :lol:/> :lol:/>
i watched some tutorial and
i wrote some code,
added a lot of own functions, some are working well already …
but i have a big problem with the
read()
i use so far …i want to get a user Input with variables like
go 10
orlocation 230 67 230
i want it in one line, with different amount of vars for different commands, thats actually the problem :wacko:/>
and thats what needs to change actually
<line 613>
function uInput()
term.setCursorPos(1,8)
write("what do you want me to do, Master ?")
term.setCursorPos(1,9)
write(" ")
term.setCursorPos(1,9)
order = read()
end
and
if
order == "down" then
moveDown()
reFuel()
--other commands
elseif
order == "refill" then
reFuel()
elseif
order == "base" then
toBase()
you can see my code here, but be warned, its quite ugly so far :rolleyes:/>but hey, its working :P/>
dont complain too much :D/>
http://pastebin.com/hae3quw8
its saving its location and direction in an external file,
can set a base, with fuelchest and dropchest on specific side if needed,
it can quarry, unload and resume
can get fuel and return to task,
it can temporarily host gps if needed ( for whatever you might need it)
If i solve this, it will be able to move to xyz coordinate,
dig its way there if neccesary,
I want to add some network functions as well, make it RC
Soon there will be some Brainbug - PC guiding its drones to do what it wants muahahahahaaa B)/> :lol:/> :lol:/>
Edited on 05 January 2014 - 12:27 PM