Comments (9)
Good catch.
Usually you have to bind a udp socket to receive data on it, but it should not be this._port (since that's the one we're sending to, we can receive on any port).
Imho this should just be changed to this._socket.bind() without any argument.
from node-ar-drone.
@bkw SGTM. Have you tried it if it works?
I think I'll actually need to use the ar-drone lib on a drone myself fairly soon, so I'll probably check this out in a few days if nobody else does.
from node-ar-drone.
@felixge - I can confirm that removing the port bind doesn't mess anything up
from node-ar-drone.
@contra so nav data is still being received?
from node-ar-drone.
@felixge - Yep - everything is working as it should. I'm flying mine around right now and receiving the navdata state changes from #18
from node-ar-drone.
@contra alright, if you want to send a patch (that passes the test suite), go ahead, and I'll merge it right away!
from node-ar-drone.
The idiomatic way to receive on a UDP socket is to bind it (not necessarily to a specific port), so no other local processes can snatch it while you're using it. Maybe academic in our case but should not hurt either.
AFD (away from drone), but I'll make an extra check later.
from node-ar-drone.
vote to close, continued in #21
from node-ar-drone.
Fixed in master now - closing
from node-ar-drone.
Related Issues (20)
- Vision Detect..TypeError: Cannot read property 'nbDetected' of undefined HOT 8
- pngstream stops sending new images after sometime HOT 3
- How do I access just the gps.latitude property? HOT 5
- How can i get the only navdata - magneto data ?
- How to add delay to navdata read, and make real time graph? HOT 4
- is bebop 2 supported
- Can I disable the ultrasonic sensor? HOT 1
- use gps to make a path HOT 1
- drones to fly using the google maps
- Multiple clients - multiple drones communicate through nodejs server HOT 2
- Troubleshooting 'undefined' error HOT 1
- TcpVideoStream timeout HOT 2
- when trying to npm install ar-drone
- pngStream only sends one image to browser
- Error: Cannot find module 'simple-debug' HOT 1
- Error: Ffmpeg exited with error code: null
- Cannot perform a counter clockwise rotation
- IDE
- External sensors HOT 1
- Feeding PngStream to openCV
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 node-ar-drone.