Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

# Modules/BehaviorControl/CommonXabsl2Symbols/CalibrationSymbols.cpp

Go to the documentation of this file.

    00001 /**
    00002 * @file CalibrationSymbols.cpp
    00003 *
    00004 * Implementation of class CalibrationSymbols.
    00005 *
    00006 * @author Matthias Jüngel
    00007 */
    00008
    00009 #include "CalibrationSymbols.h"
    00010 #include "Tools/StringFunctions.h"
    00011
    00012 CalibrationSymbols::CalibrationSymbols(const BehaviorControlInterfaces& interfaces)
    00013 : BehaviorControlInterfaces(interfaces)
    00014 {
    00015 }
    00016
    00017
    00018 void CalibrationSymbols::registerSymbols(Xabsl2Engine& engine)
    00019 {
    00020   int i;
    00021   char s[256];
    00022
    00023   engine.registerEnumeratedOutputSymbol("calibration-mode",(int*)&calibrationRequest.mode);
    00024   for (i = 0; i < CalibrationRequest::numOfCalibrationModes; i++)
    00025   {
    00026     sprintf(s,"calibration-mode.");
    00027     getXmlString(s+strlen(s), CalibrationRequest::getCalibrationModeName((CalibrationRequest::CalibrationMode)i));
    00028     engine.registerEnumeratedOutputSymbolEnumElement("calibration-mode",s,i);
    00029   }
    00030
    00031   engine.registerEnumeratedOutputSymbol("calibration-feedback",(int*)&calibrationRequest.feedback);
    00032   for (i = 0; i < CalibrationRequest::numOfCalibrationFeedbacks; i++)
    00033   {
    00034     sprintf(s,"calibration-feedback.");
    00035     getXmlString(s+strlen(s), CalibrationRequest::getCalibrationFeedbackName((CalibrationRequest::CalibrationFeedback)i));
    00036     engine.registerEnumeratedOutputSymbolEnumElement("calibration-feedback",s,i);
    00037   }
    00038 }
    00039