Skip to content
Open
Show file tree
Hide file tree
Changes from 12 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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