GithubHelp home page GithubHelp logo

Comments (8)

moe-the-fabber avatar moe-the-fabber commented on May 29, 2024 1

OK mistery SOLVED :
Windows users got to exchange their usb driver with this:

https://sourceforge.net/projects/libwdi/files/zadig/

found this link in a readme of a library i downloaded with this command:

npm install usb -g

from dronejs.

gandhimonik avatar gandhimonik commented on May 29, 2024 1

Good to know moe-the-fabber. I believe we can close this issue now.

from dronejs.

gandhimonik avatar gandhimonik commented on May 29, 2024

Hey moe-the-fabber,

Can you attach the project you have created to use the library?

from dronejs.

moe-the-fabber avatar moe-the-fabber commented on May 29, 2024

sure here you go: (using win7)

 const Drone = require('parrot-minidrone');
const drone = new Drone({
    autoconnect: true,
});

drone.on('connected', () => drone.takeOff());
drone.on('flightStatusChange', (status) => {
    if (status === 'hovering') {
        drone.land();
        process.exit();
    }
});

from dronejs.

gandhimonik avatar gandhimonik commented on May 29, 2024

I believe you are using some other library because your require expression is trying to fetch 'parrot-minidrone' instance which in case of DroneJS is 'dronejs'.

Can you check out the examples I have in the documentation and try them out?

from dronejs.

moe-the-fabber avatar moe-the-fabber commented on May 29, 2024

i tried out several of the exampels all with similar errors: :(
`C:\Users\usr\AppData\Roaming\npm\node_modules\dronejs\node_modules\usb\usb.js
:33
this.__open()
^

Error: LIBUSB_ERROR_NOT_SUPPORTED
at Error (native)
at Device.usb.Device.open (C:\Users\usr\AppData\Roaming\npm\node_modules
dronejs\node_modules\usb\usb.js:33:7)
at BluetoothHciSocket.bindUser (C:\Users\usr\AppData\Roaming\npm\node_mod
ules\dronejs\node_modules\bluetooth-hci-socket\lib\usb.js:73:19)
at BluetoothHciSocket.bindRaw (C:\Users\usr\AppData\Roaming\npm\node_modu
les\dronejs\node_modules\bluetooth-hci-socket\lib\usb.js:28:8)
at Hci.init (C:\Users\usr\AppData\Roaming\npm\node_modules\dronejs\node_m
odules\noble\lib\hci-socket\hci.js:101:35)
at NobleBindings.init (C:\Users\usr\AppData\Roaming\npm\node_modules\dron
ejs\node_modules\noble\lib\hci-socket\bindings.js:82:13)
at new Noble (C:\Users\usr\AppData\Roaming\npm\node_modules\dronejs\node_
modules\noble\lib\noble.js:50:18)
at Object. (C:\Users\usr\AppData\Roaming\npm\node_modules\dron
ejs\node_modules\noble\index.js:4:18)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)

C:\Users\usr\AppData\Roaming\npm\node_modules\dronejs\examples>`

from dronejs.

moe-the-fabber avatar moe-the-fabber commented on May 29, 2024

#Solved
#CLOSED

from dronejs.

gandhimonik avatar gandhimonik commented on May 29, 2024

Thanks moe-the-fabber!

from dronejs.

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.