Code Monkey home page Code Monkey logo

Comments (9)

bkw avatar bkw commented on June 7, 2024

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.

felixge avatar felixge commented on June 7, 2024

@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.

yocontra avatar yocontra commented on June 7, 2024

@felixge - I can confirm that removing the port bind doesn't mess anything up

from node-ar-drone.

felixge avatar felixge commented on June 7, 2024

@contra so nav data is still being received?

from node-ar-drone.

yocontra avatar yocontra commented on June 7, 2024

@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.

felixge avatar felixge commented on June 7, 2024

@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.

bkw avatar bkw commented on June 7, 2024

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.

bkw avatar bkw commented on June 7, 2024

vote to close, continued in #21

from node-ar-drone.

yocontra avatar yocontra commented on June 7, 2024

Fixed in master now - closing

from node-ar-drone.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.