MKDefines.cpp
Go to the documentation of this file.
00001 /*
00002  * MKDefines.cpp
00003  *
00004  *  Created on: Nov 29, 2011
00005  *      Author: mriedel
00006  */
00007 
00008 #include <telekyb_defines/MKDefines.hpp>
00009 
00010 //namespace TELEKYB_NAMESPACE {
00011 
00012 // operators
00013 bool operator==(const MKActiveIDs& lhs, const MKActiveIDs& rhs)
00014 {
00015         for (int i = 0; i < ACTIVEDATA_SIZE; i++) {
00016                 if (lhs.ids[i] != rhs.ids[i]) {
00017                         return false;
00018                 }
00019         }
00020 
00021         // all equal
00022         return true;
00023 }
00024 
00025 bool operator==(const MKSingleValuePacket& lhs, const MKSingleValuePacket& rhs)
00026 {
00027     return (lhs.id == rhs.id) && (lhs.value == rhs.value);
00028 }
00029 
00030 
00031 bool isValidMKActiveIDs(const MKActiveIDs& activeIDs)
00032 {
00033         for (int i = 0; i < ACTIVEDATA_SIZE; i++) {
00034                 if (activeIDs.ids[i] >= MKDataDefines::MKDATAIDS_NUM) {
00035                         return false;
00036                 }
00037         }
00038 
00039         return true;
00040 }
00041 
00042 const char* MKDataDefines::MKDATAIDS_NAMES[] = {
00043         "RawAccX",//0
00044         "RawAccY",//1
00045         "RawAccZ",//2
00046         "RawGyroX",//3
00047         "RawGyroY",//4
00048         "RawGyroZ",//5
00049 
00050         "AccX",//6
00051         "AccY",//7
00052         "AccZ",//8
00053         "OmegaX",//9
00054         "OmegaY",//10
00055         "OmegaZ",//11
00056 
00057         "BattVolt",//12
00058 
00059         "OffsRAccX",//13
00060         "OffsRAccY",//14
00061         "OffsRAccZ",//15
00062         "GyrDriftX",//16
00063         "GyrDriftY",//17
00064         "GyrDriftZ",//18
00065 
00066         "EstPitch",//19
00067         "EstRoll",//20
00068         "EstPitRat",//21
00069         "EstRolRat",//22
00070 
00071         "PropGain",//23
00072         "DerivGain",//24
00073         "IntegGain",//25
00074         "YawRatGain",//26
00075         "YawAccGain",//27
00076 
00077         "YawCtrTyp",//28
00078         "MirrPriod",//29
00079 
00080         "TimeMs60",//30
00081 
00082         "MirrActiv",//31
00083 
00084         "MotState",//32
00085 
00086         "DriftActiv",//33
00087 
00088         "RcvCmdSec",//34
00089         "MaxRcvPer",//35
00090         "SenPktSec",//36
00091         "MaxSenPer",//37
00092         "FcStepSec",//38
00093         "MaxFcPer",//39
00094 
00095         "RobotId",//40
00096         "FirmRev"//41
00097 };
00098 
00099 
00100 //}
00101 
00102 
00103 
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


telekyb_defines
Author(s): Dr. Antonio Franchi and Martin Riedel
autogenerated on Mon Nov 11 2013 11:12:30