Android Open Source - HexNanoController_Android Nav Data

From Project

Back to project page HexNanoController_Android.


The source code is released under:

Code license GNU GPL v2 Content license CC BY-NC-SA 4.0

If you think the Android project HexNanoController_Android listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

/*from w  w  w. jav a 2  s. c om*/
public class NavData {

    public int batteryStatus;
    public boolean recording;
    public boolean cameraReady;
    public boolean recordReady;
    public boolean usbActive;
    public int usbRemainingTime;
    public int emergencyState;
    // public boolean flying;
    public int numFrames;
    public boolean initialized;

    public NavData() {
  batteryStatus = 0;
  // emergencyState = ERROR_STATE_NONE;
  // flying = false;
  initialized = false;
  usbActive = false;
  usbRemainingTime = -1;
  cameraReady = false;
  recordReady = false;

    public void copyFrom(NavData navData) {
  this.batteryStatus = navData.batteryStatus;
  this.emergencyState = navData.emergencyState;
  // this.flying = navData.flying;
  this.initialized = navData.initialized;
  this.recording = navData.recording;
  this.numFrames = navData.numFrames;
  this.usbActive = navData.usbActive;
  this.usbRemainingTime = navData.usbRemainingTime;
  this.cameraReady = navData.cameraReady;
  this.recordReady = navData.recordReady;

Java Source Code List