Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wifi connector #21

Open
wants to merge 19 commits into
base: master
Choose a base branch
from
3 changes: 3 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@
"VERSION": false,
"LICENSE": false
},
"parserOptions": {
"ecmaVersion": 2017
},
"rules": {
"comma-dangle": [1,"always-multiline"],
"no-cond-assign": [1,"always"],
Expand Down
2 changes: 1 addition & 1 deletion examples/directFlight.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const dualShock = require('dualshock-controller');
const {DroneConnection, CommandParser} = require('../src');
const {DroneConnection, CommandParser} = require('minidrone-js');

const controller = dualShock({config: 'dualShock4-alternate-driver'});
const parser = new CommandParser();
Expand Down
6 changes: 4 additions & 2 deletions examples/doAFlip.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
const {DroneConnection, CommandParser} = require('../src');
const {DroneConnection, CommandParser, BLEConnector} = require('minidrone-js');

const connector = new BLEConnector();
const parser = new CommandParser();
const drone = new DroneConnection();
const drone = new DroneConnection(connector);
const takeoff = parser.getCommand('minidrone', 'Piloting', 'TakeOff');
const landing = parser.getCommand('minidrone', 'Piloting', 'Landing');
const backFlip = parser.getCommand('minidrone', 'Animations', 'Flip', {direction: 'back'});

connector.connect();

drone.on('connected', () => {
// Makes the code a bit clearer
Expand Down
Loading