Comments (6)
It looks like the test only uses the current mode of the sensor, so you could manually set the mode before running the test (as in echo ACCEL > /sys/class/lego-sensor/sensor0/mode
).
I also notice that the accumulate mode is currently called ACCEL
, which is a mistake, so this name will be changing in the next kernel release.
from ev3dev-lang.
I received the message "No ht-nxt-angle sensor found".
Is the name "ht-nxt-angle" correct ?
So I tested again ev3dev-lang-demo with the angle sensor and the mode ACCEL.
It seems the value are completely incorrect. Below are the results of the command "monitor":
*** ht-nxt-angle (ACCEL) actions ***
(s)how modes
(c)hange mode
(v)alue
(m)onitor
(b)ack
Choice: m
1107623936 deg
1124401152 deg
1141178368 deg
1124401152 deg
1074069504 deg
1023737856 deg
956628992 deg
906297344 deg
872742912 deg
805634048 deg
788856832 deg
772079616 deg
788856832 deg
805634048 deg
906297344 deg
1225064448 deg
1476722688 deg
1829044224 deg
-2096824320 deg
-1761280000 deg
-1476067328 deg
-972750848 deg
-838533120 deg
-788201472 deg
-804978688 deg
-788201472 deg
-804978688 deg
-788201472 deg
An idea of the problem ? in the kernel also ?
from ev3dev-lang.
What is your kernel version?
What is output of cat /sys/class/lego-sensor/sensor0/driver_name
? This is the "correct" name and it should match the name on the documentation page. It appears from the output of the demo, ht-nxt-sensor
is correct.
I think the "No ht-nxt-angle sensor found" error is just because the cpp bindings have not been updated for recent kernel versions.
The other issues are kernel issues. For example if the numbers don't look correct, it could be a endianness problem. You should open a new issue in the main ev3dev issues for this.
from ev3dev-lang.
Thank you David for your help.
user@ev3dev:~$cat /sys/class/lego-sensor/sensor0/driver_name
ht-nxt-angle
I use the last image ev3dev-jessie-2015-02-24, and the kernel is the following:
user@ev3dev:~$ uname -a
Linux ev3dev 3.16.7-ckt6-ev3dev1 #2 PREEMPT Sun Feb 22 16:07:24 CST 2015 armv5tejl GNU/Linux
from ev3dev-lang.
That all looks good, so there is probably some bug in ev3dev-lang in the ev3dev-lang-test and additionally a bug in the kernel driver related to the accumulated angle.
from ev3dev-lang.
@cho934, is this still a problem with the latest kernel/C++ bindings?
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.