![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
mambo-angular-service
Advanced tools
Angular Service to control Parrot Mambo drone
First import MamboService
in your ngModule
then inject it in the component where you need to use it.
You can MamboService
to search for nearby drones. The search will pop up a search modal in the browser, allowing the user to select a device to connect to.
When that happens the search returns the connected drone.
this.mamboService.search().then(drone => this.drone = drone)
Then use drone's connect$
Observable to get notified when the connection has been fully established. Also the connect$
completion indicates that the connection has been terminated.
this.drone.connection$
.subscribe(
() => this.ready,
err => console.error('Something went wrong: ' + JSON.stringify(err)),
() => {
alert('Drone is no longer connected');
this.drone = null;
this.ready = false;
}
);
Once the drone is ready you can make the drone take off and land with the follownig calls:
this.drone.takeOff();
this.drone.land();
By default every 100ms the Drone object
sends flight parameters to the Mambo drone
. You can provide the flight params by using the following functions:
Please note that the values that are expected should be in a range from -1 to 1.
Just remember, if you set any of the flight params, the Drone object
will send this value to the Mambo drone
every 100ms, until you set it 0.
If you intend for the drone to fly forward for some time you can call it like this:
this.drone.setPitch(0.5);
setInterval(() => this.drone.setPitch(0), 500 );
search(): Promise
search
returns a promise with the selected Drone object.takeOff()
land()
updateFlightParams(roll: number, pitch: number, yaw: number, altitude: number)
setRoll(roll)
setPitch(pitch)
setYaw(yaw: number)
setAltitude(altitude)
setMaxAltitude(maxAltitude: number): Promise<any>
setMaxTilt(maxTilt: number): Promise<any>
setMaxVerticalSpeed(maxVerticalSpeed: number): Promise<any>
setMaxRotationSpeed(maxRotationSpeed: number): Promise<any>
fire()
FAQs
Angular Service to control Parrot Mambo drone
We found that mambo-angular-service demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.