Comments (8)
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.
Good to know moe-the-fabber. I believe we can close this issue now.
from dronejs.
Hey moe-the-fabber,
Can you attach the project you have created to use the library?
from dronejs.
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.
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.
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.
#Solved
#CLOSED
from dronejs.
Thanks moe-the-fabber!
from dronejs.
Related Issues (20)
- CVE-2021-23337 (High) detected in lodash-4.17.11.tgz
- CVE-2019-20149 (High) detected in kind-of-6.0.2.tgz
- CVE-2020-28500 (Medium) detected in lodash-4.17.11.tgz
- CVE-2020-7608 (Medium) detected in yargs-parser-13.0.0.tgz, yargs-parser-11.1.1.tgz
- CVE-2020-15366 (Medium) detected in ajv-6.10.0.tgz
- CVE-2020-7598 (Medium) detected in minimist-0.0.8.tgz, minimist-1.2.0.tgz
- CVE-2020-8203 (High) detected in lodash-4.17.11.tgz
- CVE-2020-7751 (High) detected in pathval-1.1.0.tgz
- CVE-2020-28469 (High) detected in glob-parent-2.0.0.tgz
- CVE-2021-35065 (High) detected in glob-parent-2.0.0.tgz - autoclosed HOT 1
- CVE-2021-44906 (High) detected in minimist-0.0.8.tgz, minimist-1.2.0.tgz
- CVE-2021-23440 (High) detected in set-value-2.0.0.tgz, set-value-0.4.3.tgz
- WS-2021-0638 (High) detected in mocha-6.1.4.tgz
- CVE-2022-3517 (High) detected in minimatch-3.0.4.tgz
- CVE-2022-38900 (High) detected in decode-uri-component-0.2.0.tgz
- CVE-2022-46175 (High) detected in json5-0.5.1.tgz
- CVE-2017-20162 (Medium) detected in ms-0.7.1.tgz
- CVE-2020-36632 (High) detected in flat-4.1.0.tgz
- CVE-2017-20165 (High) detected in debug-2.2.0.tgz
- CVE-2023-28155 (Medium) detected in request-2.88.0.tgz
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 dronejs.