Page 3 of 7
Re: Bounty for complete EV3 C/C++ API
Posted: 18 Jan 2014, 18:14
by pepijndevos
It's obviously not happening anytime soon. My EV3 is sort of sitting on the shelf.
I'm retracting my bounty at the end of February.
Re: Bounty for complete EV3 C/C++ API
Posted: 18 Jan 2014, 19:05
by totokan
What's left to be done? Doesn't the Oct. 07 test release of bricxCC include a mostly complete C API, lacking only sensor functionality?
Re: Bounty for complete EV3 C/C++ API
Posted: 19 Jan 2014, 07:12
by HaWe
Daisy-chaining via USB (like provided by the Lego VM) is still missing, too.
Re: Bounty for complete EV3 C/C++ API
Posted: 19 Jan 2014, 15:33
by totokan
Can you provide an example, Doc? I'm not clear on what that is. A screenshot of analogous functionality in the LEGO software would suffice.
Re: Bounty for complete EV3 C/C++ API
Posted: 19 Jan 2014, 16:09
by HaWe
Re: Bounty for complete EV3 C/C++ API
Posted: 19 Jan 2014, 16:31
by totokan
Looking at the Ev3 sources, it seems like that feature has to be enabled on the firmware level (and is by default). I don't have several bricks around to test it, let alone work out how the motors are addressed from the master.
So far as input sensors work, the automatic detection of sensors is pretty straightforward (the built-in port viewer tool source shows how this is done) and I am working on that when I have spare time (which is admittedly not often).
If you want to know more about how the sensors work, see the following pages of the Ev3 Sources documentation:
http://python-ev3.org/DcmDriver.html
http://python-ev3.org/UartProtocol.html
http://python-ev3.org/testsensorsappcode.html
http://python-ev3.org/types.html
Re: Bounty for complete EV3 C/C++ API
Posted: 19 Jan 2014, 16:36
by HaWe
I don't understand this low-level stuff.
I have currently 2 EV3s - how can I use it with BCC/C and CSLite? (I actually doubt that this is already possible.)
Re: Bounty for complete EV3 C/C++ API
Posted: 19 Jan 2014, 16:57
by totokan
Like I said, we're all working on it in our spare time and don't expect anything terribly soon. At this time, if you don't want to deal with low-level code, you're SoL.
Re: Bounty for complete EV3 C/C++ API
Posted: 19 Jan 2014, 17:21
by HaWe
I didn't understand and didn't know that you meant that you personally are already working on that for EV3/C - glad to hear that you haven't abandoned this,too!
I actually also thought that this daisy-chaining thing is just implemented for the Lego VM, I didn't expect it to become ever accessable by C compilers as well.
Are you also working on a sensor API, too?
Re: Bounty for complete EV3 C/C++ API
Posted: 19 Jan 2014, 17:29
by totokan
To the best of my knowledge there are at least 3-4 different groups/individuals working independently on different implementations of Ev3 code. I am not writing an entire API, merely appending sensor input to John Hansen's (BrixCC/NXC) currently released API, initially by wrapping Lauro Ojeda's (robotnav.org) example code. Currently I'm working on re-implementing sensor access in the way that it is done in the 'official' source- that is, a single sensor call that automatically detects the sensor type and gets the proper data.
As I do not have access to any Ev3 robots at this time, work is at a standstill. The ones we were using were on loan from another organization, and they were returned at the end of last semester (Mid December). Until we secure funding to purchase our own, there probably will be no progress on my end.