The short answer is you don't have a main function, which I suspect
was an earlier error, and you tried surrounding all the code in
faro_arm.c with main{ ... } which is not valid C.The long answer: You are missing a lot of code here, specifically the Serial_* functions whose headers you have. Your arm talks serial at 9600 8N1 It reports the position, button status, and error status whenever you send it the two-byte string "_P". It reports in a nice human-readable ascii string that is 74 bytes long. Doing serial I/O in C is kind of a pain. I would recommend using python (where you can use the hal python module directly) and the python-serial module to do the I/O. ------------------------------------------------------------------------------ Create and publish websites with WebMatrix Use the most popular FREE web apps or write code yourself; WebMatrix provides all the features you need to develop and publish your website. http://p.sf.net/sfu/ms-webmatrix-sf _______________________________________________ Emc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-users
