
com.codeminders.ardrone.NavDataProcessor Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of javadrone-api Show documentation
Show all versions of javadrone-api Show documentation
Java API (without using native code) to control AR.Drone
The newest version!
package com.codeminders.ardrone;
import java.nio.ByteBuffer;
import java.util.logging.Level;
import java.util.logging.Logger;
public class NavDataProcessor extends DataProcessor {
private Logger log = Logger.getLogger(this.getClass().getName());
public NavDataProcessor(ARDrone drone, int buffer_size) {
super(drone, buffer_size);
}
@Override
void processData(ByteBuffer inbuf, int len) {
try {
drone.navDataReceived(NavData.createFromData(inbuf, len));
} catch (NavDataFormatException ex) {
log.log(Level.FINE ,"Failed to decode received navdata. Reason unsupported format", ex);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy