Comments (5)
[deleted comment]
from nxt-python.
Oh crap. This is embarrassing. Here's a patch to fix it (applicable to the
trunk or stable v2.0.1). Let me know if it works, and whether the values
returned are correct. It would also be nice if you could test switching between
ranges.
This problem was due to lack of being able to actually test some of the sensors
due to lack of hardware. If you have any other sensors marked as untested in
the docstrings, it would be cool if you could make sure they work with
nxt-python. Thanks!
Original comment by [email protected]
on 23 Jan 2011 at 12:01
- Changed state: Accepted
- Added labels: Component-Sensors, OpSys-All, Series-2.x, Usability
Attachments:
from nxt-python.
The patch works, however, you forgot to import the math module(you're calling
sqrt in EOPD.get_processed_value). After fixing this, the EOPD class works
without raising exceptions - I don't think the values it's returning are
correct, though I'm not sure what the units of measurement are for this sensor.
I'll work some on this later to help fix it. I'll also test the other Hitechnic
sensors that I have.
Thanks for writing nxt-python, and don't worry about bugs in code you can't
test - I'm glad I can program my NXT in Python. You might want to try out
Pylint sometime. I think it would have caught these bugs.
Original comment by [email protected]
on 23 Jan 2011 at 12:27
from nxt-python.
Thank you. I'll be releasing a bugfix version once all the bugs in the sensors
you have are ironed out. This is really helpful!
I'll look at pylint when I get some spare time. As I've told some other people,
I'm currently rushing to get IPv6 up on my servers and home network before all
the tunnel brokers are clogged with new accounts and it becomes hard to test
things. Hurricane Electric is currently estimating 10 days to IPv4 exhaustion.
What a nice birthday surprise.
Original comment by [email protected]
on 23 Jan 2011 at 12:34
from nxt-python.
Fixed in r275.
Original comment by [email protected]
on 23 Jan 2011 at 1:18
- Changed state: Fixed
from nxt-python.
Related Issues (20)
- Assistance required during installation process HOT 26
- Problems with installing nxt-python HOT 4
- Error when connecting with bluetooth HOT 24
- raise BlockedException("Blocked!") HOT 1
- Error struct.error: unpack requires a buffer of 2 bytes (EV3) HOT 4
- No backend available HOT 1
- Help with motorconotrl HOT 1
- Not able to download MotorControl22.nxc to NXT HOT 2
- nxt_filer needs to be updated (minor fixes) HOT 3
- usb.core.USBError: [Errno None] b'libusb0-dll:err [set_configuration] could not set config 1 HOT 7
- Add contribution guide HOT 2
- Hitechnic SuperPro Board HOT 7
- How save in the lego HOT 1
- Nxt_test hangs at connecting using bluetooth HOT 1
- MotCont: Differential drive robot HOT 4
- Bluetooth Error HOT 12
- EV3 doesn´t connect to NXT (via USB) HOT 5
- simulate NXT brick button presses with nxt-python HOT 4
- [FEATURE REQUEST]: Screen Drawing HOT 1
- [NOOB QUESTION]: How to get rotation angle of motor? HOT 4
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 nxt-python.