00001 #include "rexTools.h" 00002 00003 Tools::Tools() 00004 { 00005 InitBatteryCheck(); 00006 InitUsonic(); 00007 InitLedButton(); 00008 } 00009 00010 Tools::~Tools() 00011 { 00012 00013 } 00014 00015 double Tools::GetInclinometerValue(int Axis) 00016 { 00017 return(Vout(Axis)); 00018 } 00019 00020 void Tools::ButtonsState() 00021 { 00022 LedButtonsState(); 00023 } 00024 00025 int Tools::GetUsonic1() 00026 { 00027 return(GetRange()); 00028 } 00029 00030 int Tools::GetUsonic2() 00031 { 00032 return(GetRangee()); 00033 } 00034 00035 double Tools::GetBattery1State() 00036 { 00037 return(Battery1State()); 00038 } 00039 00040 double Tools::GetBattery2State() 00041 { 00042 return(Battery2State()); 00043 }