SP.285: Robotics and Mechatronics Projects :: Help Pages :: Getting Started


HOW TO GET STARTED

(note: [program.c] means substitute your program name here) login to a computer l-slide (next to the door) and hammock (next to the macs) have the cable necisary for talking to the boards but you can write programs on any computers mkdir lego (if you haven't done so already) creates a directory that you can store all of your lego programs in` cd lego moves you into the directory add esg gives you access to ic and the example programs if you already have a program you're working on emacs [program.c] & otherwise cp /mit/esg/lego/examples/template.c [program.c] copy the template to the name of the program you want to work on add a '.c' to the end of all of your names so that the computer (and you) know its a c program emacs [program.c] & an emacs window should pop up plug the board in and turn it on go back to your athena prompt and type: ic if you don't have a prompt its because you forgot the & quit emacs and start it again with an & you should now have a C> prompt from here you can run any c command motor(1,100) or load [program.c] for example programs look in /mit/esg/lego/examples/


SP.285: Robotics and Mechatronics Projects :: Help Pages :: Getting Started