00001 /* 00002 * Copyright (C) 2013 Creativa77. 00003 * 00004 * Licensed under the Apache License, Version 2.0 (the "License"); you may not 00005 * use this file except in compliance with the License. You may obtain a copy of 00006 * the License at 00007 * 00008 * http://www.apache.org/licenses/LICENSE-2.0 00009 * 00010 * Unless required by applicable law or agreed to in writing, software 00011 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 00012 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 00013 * License for the specific language governing permissions and limitations under 00014 * the License. 00015 */ 00016 00017 package com.github.c77.base_driver; 00018 00023 public class BaseStatus { 00024 00025 // Robot state variables 00026 private short timeStamp = 0; 00027 private byte bumper = 0; 00028 private byte wheelDrop = 0; 00029 private byte cliff = 0; 00030 private byte button = 0; 00031 private byte charger = 0; 00032 private byte battery = 0; 00033 private short angle = 0; 00034 private short angleRate = 0; 00035 private int leftDistance = 0; 00036 private int rightDistance = 0; 00037 00038 public short getTimestamp() { 00039 return timeStamp; 00040 } 00041 00042 public void setTimeStamp(short timeStamp) { 00043 this.timeStamp = timeStamp; 00044 } 00045 00046 public byte getWheelDrop() { 00047 return wheelDrop; 00048 } 00049 00050 public void setWheelDrop(byte wheelDrop) { 00051 this.wheelDrop = wheelDrop; 00052 } 00053 00054 public byte getCliff() { 00055 return cliff; 00056 } 00057 00058 public void setCliff(byte cliff) { 00059 this.cliff = cliff; 00060 } 00061 00062 public byte getButton() { 00063 return button; 00064 } 00065 00066 public void setButton(byte button) { 00067 this.button = button; 00068 } 00069 00070 public byte getCharger() { 00071 return charger; 00072 } 00073 00074 public void setCharger(byte charger) { 00075 this.charger = charger; 00076 } 00077 00078 public byte getBattery() { 00079 return battery; 00080 } 00081 00082 public void setBattery(byte battery) { 00083 this.battery = battery; 00084 } 00085 00086 public short getAngle() { 00087 return angle; 00088 } 00089 00090 public void setAngle(short angle) { 00091 this.angle = angle; 00092 } 00093 00094 public short getAngleRate() { 00095 return angleRate; 00096 } 00097 00098 public void setAngleRate(short angleRate) { 00099 this.angleRate = angleRate; 00100 } 00101 00102 public int getLeftDistance() { 00103 return leftDistance; 00104 } 00105 00106 public void setLeftDistance(int leftDistance) { 00107 this.leftDistance = leftDistance; 00108 } 00109 00110 public int getRightDistance() { 00111 return rightDistance; 00112 } 00113 00114 public void setRightDistance(int rightDistance) { 00115 this.rightDistance = rightDistance; 00116 } 00117 00118 public byte getBumper() { 00119 return bumper; 00120 } 00121 00122 public void setBumper(byte bumper) { 00123 this.bumper = bumper; 00124 } 00125 }