swarms
Version:
The ultimate node.js library for controlling Bitcraze Crazyflie 2.0 drones
17 lines • 491 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const constants_1 = require("./constants");
class Uri {
/**
* URI class for representing the URI's to connect to a Crazyflie
*/
constructor(dataRate, channel) {
this.dataRate = dataRate;
this.channel = channel;
}
toString() {
return `radio://0/${this.channel}/${constants_1.GET_DATA_RATE(this.dataRate)}`;
}
}
exports.Uri = Uri;
//# sourceMappingURL=uri.js.map