Search found 7 matches
- 27 Jan 2014, 16:39
- Forum: Mindstorms Software
- Topic: Bounty for complete EV3 C/C++ API
- Replies: 60
- Views: 264785
Re: Bounty for complete EV3 C/C++ API
but how would the ev3 FW know what I actually wanted to do e.g., with a NXT US sensor? maybe it detects this sensor automatically, but how would it change continuous mode to single shot mode? If single shot mode is a mode that can be set like other sensor modes, then setSensorMode(port, mode) shoul...
- 27 Jan 2014, 11:55
- Forum: Mindstorms Software
- Topic: Bounty for complete EV3 C/C++ API
- Replies: 60
- Views: 264785
Re: Bounty for complete EV3 C/C++ API
thank you for your explanations! the NXT color sensor is currently not so urgently needed because I may use the ev3 color sensor intermediately as a substitute. What I still don't understand concerning i2c sensors: How does the program know which address registers or data registers have to be read ...
- 26 Jan 2014, 23:02
- Forum: Mindstorms Software
- Topic: Bounty for complete EV3 C/C++ API
- Replies: 60
- Views: 264785
Re: Bounty for complete EV3 C/C++ API
You only have to compile ev3sensor.c (add it in project manager in Bricxcc), and then include ev3sensor.h in your source code. ev3sensor.h contains the API functions, like readSensor(port) and setSensorMode(port, mode). I've written some simple code for testing in example/sensorTest.c. The API is ve...
- 26 Jan 2014, 00:02
- Forum: Mindstorms Software
- Topic: Bounty for complete EV3 C/C++ API
- Replies: 60
- Views: 264785
Re: Bounty for complete EV3 C/C++ API
I've added support for other sensor types (IIC etc.), and for setting sensor modes. Available here: https://github.com/carstenz/ev3sensor
Hope it's useful to someone!
Hope it's useful to someone!
- 23 Jan 2014, 22:49
- Forum: Mindstorms Software
- Topic: Bounty for complete EV3 C/C++ API
- Replies: 60
- Views: 264785
Re: Bounty for complete EV3 C/C++ API
Right, I saw you were working on that in an earlier post. That will probably be more feature complete than whatever I'm doing.
I thought I'd throw my code out there now, as early as possible, in case there would be anyone else that wanted to have something to work with.
I thought I'd throw my code out there now, as early as possible, in case there would be anyone else that wanted to have something to work with.
- 23 Jan 2014, 22:32
- Forum: Mindstorms Software
- Topic: Bounty for complete EV3 C/C++ API
- Replies: 60
- Views: 264785
Re: Bounty for complete EV3 C/C++ API
I bought the EV3 kit a week ago, and having used Bricxcc/NQC many years ago I figured I'd use the C api. Since there's no API for sensors yet I decided to try to hack together something that works. Somehow I missed the fact that there's already some support for it available at robotnav.com, with sou...
- 23 Jan 2014, 21:12
- Forum: Mindstorms Software
- Topic: EV3 C-code for third party devices (I2C)
- Replies: 50
- Views: 77730
Re: EV3 C-code for third party devices (I2C)
strange - after a while I tried to compile this code from above again and now get lots of errors - what's possibly wrong? I'm guessing you're still including both "lms2012.h" and "ev3_*.h" as seen in the code snippet above. The compiler doesn't like that some #defines are define...