// Path: FlyverRCApp/IPC/src/main/java/co/flyver/IPC/IPCContainers.java
// public class IPCContainers {
// 
//     private final String TAG = "IPC";
// 
//     public static class JSONQuadruple<K, V1, V2, V3> {
//         public K key;
//         public V1 value1;
//         public V2 value2;
//         public V3 value3;
// 
//         public V1 getValue1() {
//             return value1;
//         }
// 
//         public V2 getValue2() {
//             return value2;
//         }
// 
//         public V3 getValue3() {
//             return value3;
//         }
// 
//         public K getKey() {
//             return key;
//         }
// 
//         public JSONQuadruple(K key, V1 value1, V2 value2, V3 value3) {
//             this.key = key;
//             this.value1 = value1;
//             this.value2 = value2;
//             this.value3 = value3;
//         }
// 
//         public JSONQuadruple() {
//         }
//     }
// 
//     public static class JSONTriple<K, A, V> {
// 
//         public K key;
//         public A action;
//         public V value;
// 
// 
//         public K getKey() {
//             return key;
//         }
// 
//         public A getAction() {
//             return action;
//         }
// 
//         public V getValue() {
//             return value;
//         }
// 
//         public JSONTriple() {
//         }
// 
//         public JSONTriple(K key, A action, V value) {
//             this.key = key;
//             this.action = action;
//             this.value = value;
//         }
// 
//     }
// 
//     public static class JSONTuple<K, V> {
//         public K key;
//         public V value;
// 
// 
//         public K getKey() {
//             return key;
//         }
// 
//         public V getValue() {
//             return value;
//         }
// 
//         public JSONTuple() {
//         }
// 
//         public JSONTuple(K key, V value) {
//             this.key = key;
//             this.value = value;
//         }
//     }
// 
// }
// 
// Path: FlyverRCApp/IPC/src/main/java/co/flyver/IPC/IPCKeys.java
// public class IPCKeys {
//     public static final String COORDINATES = "coordinates";
//     public static final String YAW = "yaw";
//     public static final String THROTTLE = "throttle";
//     public static final String INCREASE = "increase";
//     public static final String DECREASE = "decrease";
//     public static final String EMERGENCY = "emergency";
//     public static final String PIDYAW = "pidy";
//     public static final String PIDPITCH = "pidp";
//     public static final String PIDROLL = "pidr";
//     public static final String PROPORTIONAL = "proportional";
//     public static final String INTEGRAL = "integral";
//     public static final String DERIVATIVE = "derivative";
//     public static final String PICTURE = "picture";
//     public static final String PICREADY = "picready";
//     public static final String HEARTBEAT = "heartbeat";
// }


import co.flyver.IPC.IPCContainers;
import co.flyver.IPC.IPCKeys;
        return mRoll;
    }

    public void setRoll(float mRoll) {
        if(mEmergency) {
            return;
        }
        //TODO: division by five for testing purposes
        this.mRoll = (mRoll * (-1)) / 5;
    }

    public float getYaw() {
        return mYaw;
    }

    /**
     * Changes the current yaw based on steps
     * If the yaw exceeds 180 deg, it overflows to -180 deg or lower, and vice versa
     * @param jsonTriple - JSONTriple<String, String, Float>
     */
    public void setYaw(IPCContainers.JSONTriple<String, String, Float> jsonTriple) {
        if(mEmergency) {
            return;
        }
        float newYaw = this.mYaw + (MAX_YAW * (jsonTriple.getValue() / 100));
        if(newYaw > MAX_YAW) {
            newYaw *= (-1);
            if(newYaw < MIN_YAW) {
                newYaw = MIN_YAW;
            }
// Path: FlyverRCApp/IPC/src/main/java/co/flyver/IPC/IPCContainers.java
// public class IPCContainers {
// 
//     private final String TAG = "IPC";
// 
//     public static class JSONQuadruple<K, V1, V2, V3> {
//         public K key;
//         public V1 value1;
//         public V2 value2;
//         public V3 value3;
// 
//         public V1 getValue1() {
//             return value1;
//         }
// 
//         public V2 getValue2() {
//             return value2;
//         }
// 
//         public V3 getValue3() {
//             return value3;
//         }
// 
//         public K getKey() {
//             return key;
//         }
// 
//         public JSONQuadruple(K key, V1 value1, V2 value2, V3 value3) {
//             this.key = key;
//             this.value1 = value1;
//             this.value2 = value2;
//             this.value3 = value3;
//         }
// 
//         public JSONQuadruple() {
//         }
//     }
// 
//     public static class JSONTriple<K, A, V> {
// 
//         public K key;
//         public A action;
//         public V value;
// 
// 
//         public K getKey() {
//             return key;
//         }
// 
//         public A getAction() {
//             return action;
//         }
// 
//         public V getValue() {
//             return value;
//         }
// 
//         public JSONTriple() {
//         }
// 
//         public JSONTriple(K key, A action, V value) {
//             this.key = key;
//             this.action = action;
//             this.value = value;
//         }
// 
//     }
// 
//     public static class JSONTuple<K, V> {
//         public K key;
//         public V value;
// 
// 
//         public K getKey() {
//             return key;
//         }
// 
//         public V getValue() {
//             return value;
//         }
// 
//         public JSONTuple() {
//         }
// 
//         public JSONTuple(K key, V value) {
//             this.key = key;
//             this.value = value;
//         }
//     }
// 
// }
// 
// Path: FlyverRCApp/IPC/src/main/java/co/flyver/IPC/IPCKeys.java
// public class IPCKeys {
//     public static final String COORDINATES = "coordinates";
//     public static final String YAW = "yaw";
//     public static final String THROTTLE = "throttle";
//     public static final String INCREASE = "increase";
//     public static final String DECREASE = "decrease";
//     public static final String EMERGENCY = "emergency";
//     public static final String PIDYAW = "pidy";
//     public static final String PIDPITCH = "pidp";
//     public static final String PIDROLL = "pidr";
//     public static final String PROPORTIONAL = "proportional";
//     public static final String INTEGRAL = "integral";
//     public static final String DERIVATIVE = "derivative";
//     public static final String PICTURE = "picture";
//     public static final String PICREADY = "picready";
//     public static final String HEARTBEAT = "heartbeat";
// }


// Path: HelloFlyver/FlyverServer/src/main/java/co/flyver/androidrc/Server/Status.java
import co.flyver.IPC.IPCContainers;
import co.flyver.IPC.IPCKeys;

        return mRoll;
    }

    public void setRoll(float mRoll) {
        if(mEmergency) {
            return;
        }
        //TODO: division by five for testing purposes
        this.mRoll = (mRoll * (-1)) / 5;
    }

    public float getYaw() {
        return mYaw;
    }

    /**
     * Changes the current yaw based on steps
     * If the yaw exceeds 180 deg, it overflows to -180 deg or lower, and vice versa
     * @param jsonTriple - JSONTriple<String, String, Float>
     */
    public void setYaw(IPCContainers.JSONTriple<String, String, Float> jsonTriple) {
        if(mEmergency) {
            return;
        }
        float newYaw = this.mYaw + (MAX_YAW * (jsonTriple.getValue() / 100));
        if(newYaw > MAX_YAW) {
            newYaw *= (-1);
            if(newYaw < MIN_YAW) {
                newYaw = MIN_YAW;
            }
            this.mYaw = 0;