All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.codeminders.ardrone.NavDataProcessor Maven / Gradle / Ivy

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