I wrote a couple of programs that show how to handle motors and sensors in C.
http://www.robotnav.com/programing-requirements/
Native C-code: Handling EV3 motors and sensors
Native C-code: Handling EV3 motors and sensors
Last edited by lvoc on 20 Nov 2013, 15:12, edited 4 times in total.
Lauro
http://www.robotnav.com
http://www.robotnav.com
Re: Native C-code: Handling EV3 motors and sensors
Very nice I have some code that wraps a lot of this stuff in some slightly higher level functions that I've been working on for a little while. I am pretty close to releasing it but working out some of the details and API. I'll put it on Git when it's done.
Regards,
Xander
Regards,
Xander
| My Blog: I'd Rather Be Building Robots (http://botbench.com)
| RobotC 3rd Party Driver Suite: (http://rdpartyrobotcdr.sourceforge.net)
| Some people, when confronted with a problem, think, "I know, I'll use threads,"
| and then two they hav erpoblesms. (@nedbat)
| RobotC 3rd Party Driver Suite: (http://rdpartyrobotcdr.sourceforge.net)
| Some people, when confronted with a problem, think, "I know, I'll use threads,"
| and then two they hav erpoblesms. (@nedbat)
Re: Native C-code: Handling EV3 motors and sensors
I double that. User-API-code should be sort of wraps around low level functions to make code readable, let it appear logical and intuitively accessable like e.g.:
http://sourceforge.net/apps/phpbb/mindb ... 62&start=0
There once was a low level C code API for a embedded renessas-µC (renessas-C for a Fischertechnic robot controller) but it actually has never been accepted by the community and so it finally extincted.
http://sourceforge.net/apps/phpbb/mindb ... 62&start=0
There once was a low level C code API for a embedded renessas-µC (renessas-C for a Fischertechnic robot controller) but it actually has never been accepted by the community and so it finally extincted.
Who is online
Users browsing this forum: No registered users and 4 guests