Comments (13)
Note this is for cpp.
from ev3dev-lang.
Is this using the source for the bindings from this repo's develop
branch, or did you obtain the library from elsewhere (master branch)? Bindings that are compatible with recent motor drivers haven't been released yet (we hope to do it this week) so you'll need to be using them from the develop
branch until then.
from ev3dev-lang.
I was using the master branch. I'll give the develop branch a try. Thanks!
from ev3dev-lang.
Sorry for the confusion on that!
from ev3dev-lang.
I take that back, I was using the develop branch - didn't realize it was the default. Should I wait a bit till you guys are done? Or is there something I can do now to keep working?
from ev3dev-lang.
If you were using the develop branch and it still wasn't working, we'll need to see what @ddemidov has to say on the matter -- I'm not familiar enough with the C++ binding to know what the issue is. But as far as I know, the C++ binding from this branch is functional.
from ev3dev-lang.
I am getting a compilation error in ev3dev-lang-demo.cpp
(fixed in #72), but other than that, both ev3dev-lang-test.cpp
and drive-test.cpp
work fine for me.
When you say you upgraded to v0.6, what do you mean? I could not find an ev3dev repo tagged with this version. What kernel version do you use (the result of uname -rv
)? The current one is
3.16.7-ckt10-4-ev3dev-ev3 #1 PREEMPT Fri May 1 18:55:50 CDT 2015
and the C++ bindings should work with it. If this is the version you have, can you provide the exact steps to reproduce the problem?
from ev3dev-lang.
I just did an update today. I guess v0.6 was the brickman version - never mind. uname -rv gives me
3.16.7-ckt4-ev3dev1 #2 PREEMPT Mon Jan 19 21:08:06 CST 2015
I have 2 EV3 Large motors plugged into ports B and C. and the ultrasonic sensor in Port 1.
I am ssh'd into my EV3 over bluetooth.
When I run ev3dev-lang-test I get this
root@ev3dev0:/home# ./ev3dev-lang-test
No touch sensor found
No color sensor found
No ultrasonic sensor found
No gyro sensor found
No infrared sensor found
No i2c sensor found
No medium motor found
No large motor found
No dc motor found
No servo motor found
Brightness of left green led is 255
Trigger of right red led is [none]
Beeping...
Battery voltage is 7.38333 V
Battery current is 0.298666 A
and when I run drive-test I get this
root@ev3dev0:/home# ./drive-test
you need to connect an infrared sensor and large motors to ports B and C!
As mentioned I tried debugging it a bit and I seem to get into this code
In bool device::connect(const std::string &dir,...
catch (...) { }
//REACHES here
_path.clear();
So my path is always cleared. I assume this is an exception that is being caught. Any idea what might cause it?
from ev3dev-lang.
This is not the current kernel. You can not get the current one by upgrading, you need to reflash your SD card. See the announcement here: http://www.ev3dev.org/news/2015/05/01/Major-Release.
from ev3dev-lang.
@sharived That version that you mentioned is not the newest -- but you can't upgrade any further as you would do it normally. With the most recent release, the motor drivers were completely overhauled, and these new drivers are the ones that we support. But due to some Linux disk magic that I admit I don't fully understand, existing installations of ev3dev can't be upgraded through apt-get
as usual. Instead, you must reflash your SD card (see here for more details). After you reflash with the newest kernel version, you should be able to use our bindings.
P.S. This should be a one-time thing, so after this one upgrade you shouldn't be forced to start from scratch again.
from ev3dev-lang.
@ddemidov Oh, looks like we commented at the same time ;)
from ev3dev-lang.
Thanks! I'll try tomorrow.
from ev3dev-lang.
Finally got my SD card built and my C app works! Thanks. Now to get Python working again....
from ev3dev-lang.
Related Issues (20)
- Updating human-readable spec HOT 25
- How to create spec.json HOT 2
- How strictly to follow the language binding specification? HOT 6
- How to implement Button Class HOT 1
- How to use with the autogen system? HOT 26
- Unified language for Java - Library Submission HOT 5
- Having issue to connect Pycharm to the Brick HOT 3
- Standardize "systemDeviceNameConvention"
- Add binding for IR-SEEK to spec HOT 1
- Javascript motor and sensor example HOT 3
- A question about sensor inherits HOT 5
- 0.9.3? HOT 1
- Merge NXT Motor and Large Motor classes
- Some typo on the driver docs HOT 3
- stop lcd going back to menu HOT 2
- Dual motors HOT 2
- UNMET PEER DEPENDENCY bluebird@~3.5.0 HOT 7
- Buttons Error (platform-gpio-keys.0-event not found) HOT 3
- HiTechnic Compass Sensor "Device is not connected" HOT 3
- Status of the project - current ev3dev bindings HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ev3dev-lang.