Native C-code: Handling EV3 motors and sensors

Discussion specific to NXT-G, NXC, NBC, RobotC, Lejos, and more.
Post Reply
lvoc
Posts: 38
Joined: 10 Sep 2013, 13:34

Native C-code: Handling EV3 motors and sensors

Post by lvoc »

I wrote a couple of programs that show how to handle motors and sensors in C.
http://www.robotnav.com/programing-requirements/
Last edited by lvoc on 20 Nov 2013, 15:12, edited 4 times in total.
mightor
Site Admin
Posts: 1079
Joined: 25 Sep 2010, 15:02
Location: Rotterdam, Netherlands
Contact:

Re: Native C-code: Handling EV3 motors and sensors

Post by mightor »

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
| 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)
HaWe
Posts: 2500
Joined: 04 Nov 2014, 19:00

Re: Native C-code: Handling EV3 motors and sensors

Post by HaWe »

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.
Post Reply

Who is online

Users browsing this forum: Semrush [Bot] and 0 guests