hybridgroup / node-bebop

A Node.js client for controlling Parrot Bebop & Bebop2 quadcopters.
http://nodebebop.com
MIT License
146 stars 61 forks source link

How to use "Common.currentDate()" and "Common.currentTime()" #37

Open issa127 opened 8 years ago

issa127 commented 8 years ago

Hello, i can't set current date and time of controller. i think use "Common.currentDate()" and "Common.currentTime()" code. but, it will not happend CurrentDateChanged and CurrentTimeChanged.

(sample)

var bebop = require('node-bebop'); var drone = bebop.createClient();

drone.on("CurrentDateChanged", function(data) {
console.log("CurrentDateChanged", data ); });

drone.on("CurrentTimeChanged", function(data) {
console.log("CurrentTimeChanged", data ); });

drone.connect(function(){ drone.Common.currentDate("2016-05-22"); drone.Common.currentTime("'T'101533+0200"); });

deadprogram commented 7 years ago

Hi @issa127 please check out my comments on https://github.com/hybridgroup/node-bebop/issues/45

Thanks!