YouBotGripperParameter.cpp
Go to the documentation of this file.
00001 /****************************************************************
00002  *
00003  * Copyright (c) 2011
00004  * All rights reserved.
00005  *
00006  * Hochschule Bonn-Rhein-Sieg
00007  * University of Applied Sciences
00008  * Computer Science Department
00009  *
00010  * +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
00011  *
00012  * Author:
00013  * Jan Paulus, Nico Hochgeschwender, Michael Reckhaus, Azamat Shakhimardanov
00014  * Supervised by:
00015  * Gerhard K. Kraetzschmar
00016  *
00017  * +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
00018  *
00019  * This sofware is published under a dual-license: GNU Lesser General Public 
00020  * License LGPL 2.1 and BSD license. The dual-license implies that users of this
00021  * code may choose which terms they prefer.
00022  *
00023  * +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
00024  *
00025  * Redistribution and use in source and binary forms, with or without
00026  * modification, are permitted provided that the following conditions are met:
00027  *
00028  *     * Redistributions of source code must retain the above copyright
00029  *       notice, this list of conditions and the following disclaimer.
00030  *     * Redistributions in binary form must reproduce the above copyright
00031  *       notice, this list of conditions and the following disclaimer in the
00032  *       documentation and/or other materials provided with the distribution.
00033  *     * Neither the name of the Hochschule Bonn-Rhein-Sieg nor the names of its
00034  *       contributors may be used to endorse or promote products derived from
00035  *       this software without specific prior written permission.
00036  *
00037  * This program is free software: you can redistribute it and/or modify
00038  * it under the terms of the GNU Lesser General Public License LGPL as
00039  * published by the Free Software Foundation, either version 2.1 of the
00040  * License, or (at your option) any later version or the BSD license.
00041  *
00042  * This program is distributed in the hope that it will be useful,
00043  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00044  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00045  * GNU Lesser General Public License LGPL and the BSD license for more details.
00046  *
00047  * You should have received a copy of the GNU Lesser General Public
00048  * License LGPL and BSD license along with this program.
00049  *
00050  ****************************************************************/
00051 #include <youbot_driver/youbot/YouBotGripperParameter.hpp>
00052 namespace youbot
00053 {
00054 
00055 YouBotGripperParameter::YouBotGripperParameter()
00056 {
00057   // Bouml preserved body begin 0005F0F1
00058   // Bouml preserved body end 0005F0F1
00059 }
00060 
00061 YouBotGripperParameter::~YouBotGripperParameter()
00062 {
00063   // Bouml preserved body begin 0005F171
00064   // Bouml preserved body end 0005F171
00065 }
00066 
00067 GripperFirmwareVersion::GripperFirmwareVersion()
00068 {
00069   // Bouml preserved body begin 000BEAF1
00070   this->name = "FirmwareVersion";
00071   this->parameterType = MOTOR_CONTOLLER_PARAMETER;
00072   // Bouml preserved body end 000BEAF1
00073 }
00074 
00075 GripperFirmwareVersion::~GripperFirmwareVersion()
00076 {
00077   // Bouml preserved body begin 000BEB71
00078   // Bouml preserved body end 000BEB71
00079 }
00080 
00081 void GripperFirmwareVersion::getParameter(int& controllerType, double& firmwareVersion) const
00082 {
00083   // Bouml preserved body begin 000BEBF1
00084   controllerType = this->controllerType;
00085   firmwareVersion = this->firmwareVersion;
00086   // Bouml preserved body end 000BEBF1
00087 }
00088 
00089 void GripperFirmwareVersion::setParameter(const int controllerType, const double firmwareVersion)
00090 {
00091   // Bouml preserved body begin 000BEC71
00092   this->controllerType = controllerType;
00093   this->firmwareVersion = firmwareVersion;
00094   // Bouml preserved body end 000BEC71
00095 }
00096 
00097 void GripperFirmwareVersion::toString(std::string& value) const
00098 {
00099   // Bouml preserved body begin 000BECF1
00100   std::stringstream ss;
00101   ss << this->name << ": " << this->controllerType << " Version: " << this->firmwareVersion;
00102   value = ss.str();
00103   // Bouml preserved body end 000BECF1
00104 }
00105 
00106 void GripperFirmwareVersion::getYouBotMailboxMsg(YouBotSlaveMailboxMsg& message) const
00107 {
00108   // Bouml preserved body begin 000BED71
00109   message.stctOutput.commandNumber = FIRMWARE_VERSION;
00110   message.stctOutput.moduleAddress = GRIPPER;
00111   message.stctOutput.typeNumber = 0;  //GripperFirmwareVersion
00112   message.stctOutput.motorNumber = 0;
00113   message.stctOutput.value = 0;
00114   // Bouml preserved body end 000BED71
00115 }
00116 
00117 void GripperFirmwareVersion::setYouBotMailboxMsg(const YouBotSlaveMailboxMsg& message)
00118 {
00119   // Bouml preserved body begin 000BEDF1
00120   // Bouml preserved body end 000BEDF1
00121 }
00122 
00123 GripperBarName::GripperBarName()
00124 {
00125   // Bouml preserved body begin 00109D71
00126   this->name = "GripperBarName";
00127   this->parameterType = API_PARAMETER;
00128   // Bouml preserved body end 00109D71
00129 }
00130 
00131 GripperBarName::~GripperBarName()
00132 {
00133   // Bouml preserved body begin 00109DF1
00134   // Bouml preserved body end 00109DF1
00135 }
00136 
00137 void GripperBarName::getParameter(std::string& parameter) const
00138 {
00139   // Bouml preserved body begin 00109E71
00140   parameter = this->value;
00141   // Bouml preserved body end 00109E71
00142 }
00143 
00144 void GripperBarName::setParameter(const std::string parameter)
00145 {
00146   // Bouml preserved body begin 00109EF1
00147   this->value = parameter;
00148   // Bouml preserved body end 00109EF1
00149 }
00150 
00151 void GripperBarName::toString(std::string& value) const
00152 {
00153   // Bouml preserved body begin 00109F71
00154   std::stringstream ss;
00155   ss << this->name << ": " << this->value;
00156   value = ss.str();
00157   // Bouml preserved body end 00109F71
00158 }
00159 
00160 void GripperBarName::getYouBotMailboxMsg(YouBotSlaveMailboxMsg& message) const
00161 {
00162   // Bouml preserved body begin 00109FF1
00163   // Bouml preserved body end 00109FF1
00164 }
00165 
00166 void GripperBarName::setYouBotMailboxMsg(const YouBotSlaveMailboxMsg& message)
00167 {
00168   // Bouml preserved body begin 0010A071
00169   // Bouml preserved body end 0010A071
00170 }
00171 
00172 CalibrateGripper::CalibrateGripper()
00173 {
00174   // Bouml preserved body begin 0005F3F1
00175   this->name = "CalibrateGripper";
00176   this->parameterType = API_PARAMETER;
00177   // Bouml preserved body end 0005F3F1
00178 }
00179 
00180 CalibrateGripper::~CalibrateGripper()
00181 {
00182   // Bouml preserved body begin 0005F471
00183   // Bouml preserved body end 0005F471
00184 }
00185 
00186 void CalibrateGripper::getParameter(bool& parameter) const
00187 {
00188   // Bouml preserved body begin 0005F4F1
00189   parameter = this->value;
00190   // Bouml preserved body end 0005F4F1
00191 }
00192 
00193 void CalibrateGripper::setParameter(const bool parameter)
00194 {
00195   // Bouml preserved body begin 0005F571
00196   this->value = parameter;
00197   // Bouml preserved body end 0005F571
00198 }
00199 
00200 void CalibrateGripper::toString(std::string& value) const
00201 {
00202   // Bouml preserved body begin 0009F171
00203   std::stringstream ss;
00204   ss << this->name << ": " << this->value;
00205   value = ss.str();
00206   // Bouml preserved body end 0009F171
00207 }
00208 
00209 void CalibrateGripper::getYouBotMailboxMsg(YouBotSlaveMailboxMsg& message) const
00210 {
00211   // Bouml preserved body begin 000BE6F1
00212   // Bouml preserved body end 000BE6F1
00213 }
00214 
00215 void CalibrateGripper::setYouBotMailboxMsg(const YouBotSlaveMailboxMsg& message)
00216 {
00217   // Bouml preserved body begin 000BE8F1
00218   // Bouml preserved body end 000BE8F1
00219 }
00220 
00221 BarSpacingOffset::BarSpacingOffset()
00222 {
00223   // Bouml preserved body begin 0005FC71
00224   this->name = "BarSpacingOffset";
00225   this->parameterType = API_PARAMETER;
00226   // Bouml preserved body end 0005FC71
00227 }
00228 
00229 BarSpacingOffset::~BarSpacingOffset()
00230 {
00231   // Bouml preserved body begin 0005FCF1
00232   // Bouml preserved body end 0005FCF1
00233 }
00234 
00235 void BarSpacingOffset::getParameter(quantity<si::length>& parameter) const
00236 {
00237   // Bouml preserved body begin 0005FD71
00238   parameter = this->value;
00239   // Bouml preserved body end 0005FD71
00240 }
00241 
00242 void BarSpacingOffset::setParameter(const quantity<si::length>& parameter)
00243 {
00244   // Bouml preserved body begin 0005FDF1
00245   if (parameter > 1 * meter || parameter < 0 * meter)
00246   {
00247     throw std::out_of_range("The Bar Spacing Offset is only allowed to be less than 1m and bigger than zero");
00248   }
00249   this->value = parameter;
00250   // Bouml preserved body end 0005FDF1
00251 }
00252 
00253 void BarSpacingOffset::toString(std::string& value) const
00254 {
00255   // Bouml preserved body begin 0009F1F1
00256   std::stringstream ss;
00257   ss << this->name << ": " << this->value;
00258   value = ss.str();
00259   // Bouml preserved body end 0009F1F1
00260 }
00261 
00262 void BarSpacingOffset::getYouBotMailboxMsg(YouBotSlaveMailboxMsg& message) const
00263 {
00264   // Bouml preserved body begin 000BE871
00265   // Bouml preserved body end 000BE871
00266 }
00267 
00268 void BarSpacingOffset::setYouBotMailboxMsg(const YouBotSlaveMailboxMsg& message)
00269 {
00270   // Bouml preserved body begin 000BEA71
00271   // Bouml preserved body end 000BEA71
00272 }
00273 
00274 MaxEncoderValue::MaxEncoderValue()
00275 {
00276   // Bouml preserved body begin 00061B71
00277   this->name = "MaxEncoderValue";
00278   this->parameterType = API_PARAMETER;
00279   // Bouml preserved body end 00061B71
00280 }
00281 
00282 MaxEncoderValue::~MaxEncoderValue()
00283 {
00284   // Bouml preserved body begin 00061BF1
00285   // Bouml preserved body end 00061BF1
00286 }
00287 
00288 void MaxEncoderValue::getParameter(unsigned int& parameter) const
00289 {
00290   // Bouml preserved body begin 00061C71
00291   parameter = this->value;
00292   // Bouml preserved body end 00061C71
00293 }
00294 
00295 void MaxEncoderValue::setParameter(const unsigned int parameter)
00296 {
00297   // Bouml preserved body begin 00061CF1
00298   this->value = parameter;
00299   // Bouml preserved body end 00061CF1
00300 }
00301 
00302 void MaxEncoderValue::toString(std::string& value) const
00303 {
00304   // Bouml preserved body begin 0009F0F1
00305   std::stringstream ss;
00306   ss << this->name << ": " << this->value;
00307   value = ss.str();
00308   // Bouml preserved body end 0009F0F1
00309 }
00310 
00311 void MaxEncoderValue::getYouBotMailboxMsg(YouBotSlaveMailboxMsg& message) const
00312 {
00313   // Bouml preserved body begin 000BE7F1
00314   // Bouml preserved body end 000BE7F1
00315 }
00316 
00317 void MaxEncoderValue::setYouBotMailboxMsg(const YouBotSlaveMailboxMsg& message)
00318 {
00319   // Bouml preserved body begin 000BE9F1
00320   // Bouml preserved body end 000BE9F1
00321 }
00322 
00323 MaxTravelDistance::MaxTravelDistance()
00324 {
00325   // Bouml preserved body begin 000618F1
00326   this->name = "MaxTravelDistance";
00327   this->parameterType = API_PARAMETER;
00328   // Bouml preserved body end 000618F1
00329 }
00330 
00331 MaxTravelDistance::~MaxTravelDistance()
00332 {
00333   // Bouml preserved body begin 00061971
00334   // Bouml preserved body end 00061971
00335 }
00336 
00337 void MaxTravelDistance::getParameter(quantity<si::length>& parameter) const
00338 {
00339   // Bouml preserved body begin 000619F1
00340   parameter = this->value;
00341   // Bouml preserved body end 000619F1
00342 }
00343 
00344 void MaxTravelDistance::setParameter(const quantity<si::length>& parameter)
00345 {
00346   // Bouml preserved body begin 00061A71
00347   if (parameter > 1 * meter || parameter < 0 * meter)
00348   {
00349     throw std::out_of_range("The Max Travel Distance is only allowed to be less than 1m and bigger than zero");
00350   }
00351   this->value = parameter;
00352   // Bouml preserved body end 00061A71
00353 }
00354 
00355 void MaxTravelDistance::toString(std::string& value) const
00356 {
00357   // Bouml preserved body begin 0009F071
00358   std::stringstream ss;
00359   ss << this->name << ": " << this->value;
00360   value = ss.str();
00361   // Bouml preserved body end 0009F071
00362 }
00363 
00364 void MaxTravelDistance::getYouBotMailboxMsg(YouBotSlaveMailboxMsg& message) const
00365 {
00366   // Bouml preserved body begin 000BE771
00367   // Bouml preserved body end 000BE771
00368 }
00369 
00370 void MaxTravelDistance::setYouBotMailboxMsg(const YouBotSlaveMailboxMsg& message)
00371 {
00372   // Bouml preserved body begin 000BE971
00373   // Bouml preserved body end 000BE971
00374 }
00375 
00376 ActualPosition::ActualPosition()
00377 {
00378   // Bouml preserved body begin 000E10F1
00379   this->name = "ActualPosition";
00380   this->lowerLimit = INT_MIN;
00381   this->upperLimit = INT_MAX;
00382   this->parameterType = MOTOR_CONTOLLER_PARAMETER;
00383   // Bouml preserved body end 000E10F1
00384 }
00385 
00386 ActualPosition::~ActualPosition()
00387 {
00388   // Bouml preserved body begin 000E1171
00389   // Bouml preserved body end 000E1171
00390 }
00391 
00392 void ActualPosition::getParameter(int& parameter) const
00393 {
00394   // Bouml preserved body begin 000E11F1
00395   parameter = this->value;
00396   // Bouml preserved body end 000E11F1
00397 }
00398 
00399 void ActualPosition::setParameter(const int parameter)
00400 {
00401   // Bouml preserved body begin 000E1271
00402   if (this->lowerLimit > parameter)
00403   {
00404     throw std::out_of_range("The parameter exceeds the lower limit");
00405   }
00406   if (this->upperLimit < parameter)
00407   {
00408     throw std::out_of_range("The parameter exceeds the upper limit");
00409   }
00410 
00411   this->value = parameter;
00412   // Bouml preserved body end 000E1271
00413 }
00414 
00415 void ActualPosition::toString(std::string& value) const
00416 {
00417   // Bouml preserved body begin 000E12F1
00418   std::stringstream ss;
00419   ss << this->name << ": " << this->value;
00420   value = ss.str();
00421   // Bouml preserved body end 000E12F1
00422 }
00423 
00424 void ActualPosition::getYouBotMailboxMsg(YouBotSlaveMailboxMsg& message) const
00425 {
00426   // Bouml preserved body begin 000E1371
00427   message.stctOutput.typeNumber = 1; //ActualPosition
00428   message.stctOutput.value = (uint32)(value * -1);
00429 
00430   // Bouml preserved body end 000E1371
00431 }
00432 
00433 void ActualPosition::setYouBotMailboxMsg(const YouBotSlaveMailboxMsg& message)
00434 {
00435   // Bouml preserved body begin 000E13F1
00436   this->value = (int32)message.stctInput.value;
00437   this->value = this->value * -1;
00438   // Bouml preserved body end 000E13F1
00439 }
00440 
00441 PositionSetpoint::PositionSetpoint()
00442 {
00443   // Bouml preserved body begin 000E19F1
00444   this->name = "PositionSetpoint";
00445   this->lowerLimit = INT_MIN;
00446   this->upperLimit = INT_MAX;
00447   this->parameterType = MOTOR_CONTOLLER_PARAMETER;
00448   // Bouml preserved body end 000E19F1
00449 }
00450 
00451 PositionSetpoint::~PositionSetpoint()
00452 {
00453   // Bouml preserved body begin 000E1A71
00454   // Bouml preserved body end 000E1A71
00455 }
00456 
00457 void PositionSetpoint::getParameter(int& parameter) const
00458 {
00459   // Bouml preserved body begin 000E1AF1
00460   parameter = this->value;
00461   // Bouml preserved body end 000E1AF1
00462 }
00463 
00464 void PositionSetpoint::setParameter(const int parameter)
00465 {
00466   // Bouml preserved body begin 000E1B71
00467   if (this->lowerLimit > parameter)
00468   {
00469     throw std::out_of_range("The parameter exceeds the lower limit");
00470   }
00471   if (this->upperLimit < parameter)
00472   {
00473     throw std::out_of_range("The parameter exceeds the upper limit");
00474   }
00475 
00476   this->value = parameter;
00477   // Bouml preserved body end 000E1B71
00478 }
00479 
00480 void PositionSetpoint::toString(std::string& value) const
00481 {
00482   // Bouml preserved body begin 000E1BF1
00483   std::stringstream ss;
00484   ss << this->name << ": " << this->value;
00485   value = ss.str();
00486   // Bouml preserved body end 000E1BF1
00487 }
00488 
00489 void PositionSetpoint::getYouBotMailboxMsg(YouBotSlaveMailboxMsg& message) const
00490 {
00491   // Bouml preserved body begin 000E1C71
00492 
00493   message.stctOutput.typeNumber = 0; //PositionSetpoint
00494   message.stctOutput.value = (uint32)(value * -1);
00495 
00496   // Bouml preserved body end 000E1C71
00497 }
00498 
00499 void PositionSetpoint::setYouBotMailboxMsg(const YouBotSlaveMailboxMsg& message)
00500 {
00501   // Bouml preserved body begin 000E1CF1
00502   this->value = (int)message.stctInput.value;
00503   this->value = this->value * -1;
00504 
00505   // Bouml preserved body end 000E1CF1
00506 }
00507 
00508 TargetPositionReached::TargetPositionReached()
00509 {
00510   // Bouml preserved body begin 000FFE71
00511   this->name = "TargetPositionReached";
00512   this->parameterType = MOTOR_CONTOLLER_PARAMETER;
00513   // Bouml preserved body end 000FFE71
00514 }
00515 
00516 TargetPositionReached::~TargetPositionReached()
00517 {
00518   // Bouml preserved body begin 000FFEF1
00519   // Bouml preserved body end 000FFEF1
00520 }
00521 
00522 void TargetPositionReached::getParameter(bool& parameter) const
00523 {
00524   // Bouml preserved body begin 000FFF71
00525   parameter = this->value;
00526   // Bouml preserved body end 000FFF71
00527 }
00528 
00529 void TargetPositionReached::toString(std::string& value) const
00530 {
00531   // Bouml preserved body begin 00100071
00532   std::stringstream ss;
00533   ss << this->name << ": " << this->value;
00534   value = ss.str();
00535   // Bouml preserved body end 00100071
00536 }
00537 
00538 void TargetPositionReached::getYouBotMailboxMsg(YouBotSlaveMailboxMsg& message) const
00539 {
00540   // Bouml preserved body begin 001000F1
00541   message.stctOutput.typeNumber = 8;  //TargetPositionReached
00542   if (value)
00543     message.stctOutput.value = 1;
00544   else
00545     message.stctOutput.value = 0;
00546   // Bouml preserved body end 001000F1
00547 }
00548 
00549 void TargetPositionReached::setYouBotMailboxMsg(const YouBotSlaveMailboxMsg& message)
00550 {
00551   // Bouml preserved body begin 00100171
00552   this->value = message.stctInput.value;
00553   // Bouml preserved body end 00100171
00554 }
00555 
00556 ActualVelocity::ActualVelocity()
00557 {
00558   // Bouml preserved body begin 000E1571
00559   this->name = "ActualVelocity";
00560   this->lowerLimit = INT_MIN;
00561   this->upperLimit = INT_MAX;
00562   this->parameterType = MOTOR_CONTOLLER_PARAMETER;
00563   // Bouml preserved body end 000E1571
00564 }
00565 
00566 ActualVelocity::~ActualVelocity()
00567 {
00568   // Bouml preserved body begin 000E15F1
00569   // Bouml preserved body end 000E15F1
00570 }
00571 
00572 void ActualVelocity::getParameter(int& parameter) const
00573 {
00574   // Bouml preserved body begin 000E1671
00575   parameter = this->value;
00576   // Bouml preserved body end 000E1671
00577 }
00578 
00579 void ActualVelocity::setParameter(const int parameter)
00580 {
00581   // Bouml preserved body begin 000E16F1
00582   if (this->lowerLimit > parameter)
00583   {
00584     throw std::out_of_range("The parameter exceeds the lower limit");
00585   }
00586   if (this->upperLimit < parameter)
00587   {
00588     throw std::out_of_range("The parameter exceeds the upper limit");
00589   }
00590 
00591   this->value = parameter;
00592   // Bouml preserved body end 000E16F1
00593 }
00594 
00595 void ActualVelocity::toString(std::string& value) const
00596 {
00597   // Bouml preserved body begin 000E1771
00598   std::stringstream ss;
00599   ss << this->name << ": " << this->value;
00600   value = ss.str();
00601   // Bouml preserved body end 000E1771
00602 }
00603 
00604 void ActualVelocity::getYouBotMailboxMsg(YouBotSlaveMailboxMsg& message) const
00605 {
00606   // Bouml preserved body begin 000E17F1
00607 
00608   message.stctOutput.typeNumber = 3;  //ActualVelocity
00609   message.stctOutput.value = (uint32)value;
00610 
00611   // Bouml preserved body end 000E17F1
00612 }
00613 
00614 void ActualVelocity::setYouBotMailboxMsg(const YouBotSlaveMailboxMsg& message)
00615 {
00616   // Bouml preserved body begin 000E1871
00617   this->value = (int32)message.stctInput.value;
00618 
00619   // Bouml preserved body end 000E1871
00620 }
00621 
00622 VelocitySetpoint::VelocitySetpoint()
00623 {
00624   // Bouml preserved body begin 000E1E71
00625   this->name = "VelocitySetpoint";
00626   this->lowerLimit = INT_MIN;
00627   this->upperLimit = INT_MAX;
00628   this->parameterType = MOTOR_CONTOLLER_PARAMETER;
00629   // Bouml preserved body end 000E1E71
00630 }
00631 
00632 VelocitySetpoint::~VelocitySetpoint()
00633 {
00634   // Bouml preserved body begin 000E1EF1
00635   // Bouml preserved body end 000E1EF1
00636 }
00637 
00638 void VelocitySetpoint::getParameter(int& parameter) const
00639 {
00640   // Bouml preserved body begin 000E1F71
00641   parameter = this->value;
00642   // Bouml preserved body end 000E1F71
00643 }
00644 
00645 void VelocitySetpoint::setParameter(const int parameter)
00646 {
00647   // Bouml preserved body begin 000E1FF1
00648   if (this->lowerLimit > parameter)
00649   {
00650     throw std::out_of_range("The parameter exceeds the lower limit");
00651   }
00652   if (this->upperLimit < parameter)
00653   {
00654     throw std::out_of_range("The parameter exceeds the upper limit");
00655   }
00656 
00657   this->value = parameter;
00658   // Bouml preserved body end 000E1FF1
00659 }
00660 
00661 void VelocitySetpoint::toString(std::string& value) const
00662 {
00663   // Bouml preserved body begin 000E2071
00664   std::stringstream ss;
00665   ss << this->name << ": " << this->value;
00666   value = ss.str();
00667   // Bouml preserved body end 000E2071
00668 }
00669 
00670 void VelocitySetpoint::getYouBotMailboxMsg(YouBotSlaveMailboxMsg& message) const
00671 {
00672   // Bouml preserved body begin 000E20F1
00673   message.stctOutput.typeNumber = 2;  //VelocitySetpoint
00674   message.stctOutput.value = (uint32)value;
00675 
00676   // Bouml preserved body end 000E20F1
00677 }
00678 
00679 void VelocitySetpoint::setYouBotMailboxMsg(const YouBotSlaveMailboxMsg& message)
00680 {
00681   // Bouml preserved body begin 000E2171
00682   this->value = (int32)message.stctInput.value;
00683 
00684   // Bouml preserved body end 000E2171
00685 }
00686 
00687 ActualLoadValue::ActualLoadValue()
00688 {
00689   // Bouml preserved body begin 000BBDF1
00690   this->name = "ActualLoadValue";
00691   this->lowerLimit = 0;
00692   this->upperLimit = 1023;
00693   this->parameterType = MOTOR_CONTOLLER_PARAMETER;
00694   // Bouml preserved body end 000BBDF1
00695 }
00696 
00697 ActualLoadValue::~ActualLoadValue()
00698 {
00699   // Bouml preserved body begin 000BBE71
00700   // Bouml preserved body end 000BBE71
00701 }
00702 
00703 void ActualLoadValue::getParameter(unsigned int& parameter) const
00704 {
00705   // Bouml preserved body begin 000BBEF1
00706   parameter = this->value;
00707   // Bouml preserved body end 000BBEF1
00708 }
00709 
00710 void ActualLoadValue::setParameter(const unsigned int& parameter)
00711 {
00712   // Bouml preserved body begin 000BBF71
00713   if (this->lowerLimit > parameter)
00714   {
00715     throw std::out_of_range("The parameter exceeds the lower limit");
00716   }
00717   if (this->upperLimit < parameter)
00718   {
00719     throw std::out_of_range("The parameter exceeds the upper limit");
00720   }
00721 
00722   this->value = parameter;
00723   // Bouml preserved body end 000BBF71
00724 }
00725 
00726 void ActualLoadValue::toString(std::string& value) const
00727 {
00728   // Bouml preserved body begin 000BBFF1
00729   std::stringstream ss;
00730   ss << this->name << ": " << this->value;
00731   value = ss.str();
00732   // Bouml preserved body end 000BBFF1
00733 }
00734 
00735 void ActualLoadValue::getYouBotMailboxMsg(YouBotSlaveMailboxMsg& message) const
00736 {
00737   // Bouml preserved body begin 000BC071
00738 
00739   message.stctOutput.typeNumber = 206;  //ActualLoadValue
00740   message.stctOutput.value = value;
00741 
00742   // Bouml preserved body end 000BC071
00743 }
00744 
00745 void ActualLoadValue::setYouBotMailboxMsg(const YouBotSlaveMailboxMsg& message)
00746 {
00747   // Bouml preserved body begin 000BC0F1
00748   this->value = message.stctInput.value;
00749   // Bouml preserved body end 000BC0F1
00750 }
00751 
00752 ChopperBlankTime::ChopperBlankTime()
00753 {
00754   // Bouml preserved body begin 000B5AF1
00755   this->name = "ChopperBlankTime";
00756   this->lowerLimit = 0;
00757   this->upperLimit = 3;
00758   this->parameterType = MOTOR_CONTOLLER_PARAMETER;
00759   // Bouml preserved body end 000B5AF1
00760 }
00761 
00762 ChopperBlankTime::~ChopperBlankTime()
00763 {
00764   // Bouml preserved body begin 000B5B71
00765   // Bouml preserved body end 000B5B71
00766 }
00767 
00768 void ChopperBlankTime::getParameter(unsigned int& parameter) const
00769 {
00770   // Bouml preserved body begin 000B5BF1
00771   parameter = this->value;
00772   // Bouml preserved body end 000B5BF1
00773 }
00774 
00775 void ChopperBlankTime::setParameter(const unsigned int& parameter)
00776 {
00777   // Bouml preserved body begin 000B5C71
00778   if (this->lowerLimit > parameter)
00779   {
00780     throw std::out_of_range("The parameter exceeds the lower limit");
00781   }
00782   if (this->upperLimit < parameter)
00783   {
00784     throw std::out_of_range("The parameter exceeds the upper limit");
00785   }
00786 
00787   this->value = parameter;
00788   // Bouml preserved body end 000B5C71
00789 }
00790 
00791 void ChopperBlankTime::toString(std::string& value) const
00792 {
00793   // Bouml preserved body begin 000B5CF1
00794   std::stringstream ss;
00795   ss << this->name << ": " << this->value;
00796   value = ss.str();
00797   // Bouml preserved body end 000B5CF1
00798 }
00799 
00800 void ChopperBlankTime::getYouBotMailboxMsg(YouBotSlaveMailboxMsg& message) const
00801 {
00802   // Bouml preserved body begin 000B5D71
00803 
00804   message.stctOutput.typeNumber = 162;  //ChopperBlankTime
00805   message.stctOutput.value = value;
00806 
00807   // Bouml preserved body end 000B5D71
00808 }
00809 
00810 void ChopperBlankTime::setYouBotMailboxMsg(const YouBotSlaveMailboxMsg& message)
00811 {
00812   // Bouml preserved body begin 000B5DF1
00813   this->value = message.stctInput.value;
00814   // Bouml preserved body end 000B5DF1
00815 }
00816 
00817 ChopperHysteresisDecrement::ChopperHysteresisDecrement()
00818 {
00819   // Bouml preserved body begin 000B63F1
00820   this->name = "ChopperHysteresisDecrement";
00821   this->lowerLimit = 0;
00822   this->upperLimit = 3;
00823   this->parameterType = MOTOR_CONTOLLER_PARAMETER;
00824   // Bouml preserved body end 000B63F1
00825 }
00826 
00827 ChopperHysteresisDecrement::~ChopperHysteresisDecrement()
00828 {
00829   // Bouml preserved body begin 000B6471
00830   // Bouml preserved body end 000B6471
00831 }
00832 
00833 void ChopperHysteresisDecrement::getParameter(unsigned int& parameter) const
00834 {
00835   // Bouml preserved body begin 000B64F1
00836   parameter = this->value;
00837   // Bouml preserved body end 000B64F1
00838 }
00839 
00840 void ChopperHysteresisDecrement::setParameter(const unsigned int& parameter)
00841 {
00842   // Bouml preserved body begin 000B6571
00843   if (this->lowerLimit > parameter)
00844   {
00845     throw std::out_of_range("The parameter exceeds the lower limit");
00846   }
00847   if (this->upperLimit < parameter)
00848   {
00849     throw std::out_of_range("The parameter exceeds the upper limit");
00850   }
00851 
00852   this->value = parameter;
00853   // Bouml preserved body end 000B6571
00854 }
00855 
00856 void ChopperHysteresisDecrement::toString(std::string& value) const
00857 {
00858   // Bouml preserved body begin 000B65F1
00859   std::stringstream ss;
00860   ss << this->name << ": " << this->value;
00861   value = ss.str();
00862   // Bouml preserved body end 000B65F1
00863 }
00864 
00865 void ChopperHysteresisDecrement::getYouBotMailboxMsg(YouBotSlaveMailboxMsg& message) const
00866 {
00867   // Bouml preserved body begin 000B6671
00868   message.stctOutput.typeNumber = 164;  //ChopperHysteresisDecrement
00869   message.stctOutput.value = value;
00870   // Bouml preserved body end 000B6671
00871 }
00872 
00873 void ChopperHysteresisDecrement::setYouBotMailboxMsg(const YouBotSlaveMailboxMsg& message)
00874 {
00875   // Bouml preserved body begin 000B66F1
00876   this->value = message.stctInput.value;
00877   // Bouml preserved body end 000B66F1
00878 }
00879 
00880 ChopperHysteresisEnd::ChopperHysteresisEnd()
00881 {
00882   // Bouml preserved body begin 000B6871
00883   this->name = "ChopperHysteresisEnd";
00884   this->lowerLimit = -3;
00885   this->upperLimit = 12;
00886   this->parameterType = MOTOR_CONTOLLER_PARAMETER;
00887   // Bouml preserved body end 000B6871
00888 }
00889 
00890 ChopperHysteresisEnd::~ChopperHysteresisEnd()
00891 {
00892   // Bouml preserved body begin 000B68F1
00893   // Bouml preserved body end 000B68F1
00894 }
00895 
00896 void ChopperHysteresisEnd::getParameter(int& parameter) const
00897 {
00898   // Bouml preserved body begin 000B6971
00899   parameter = this->value;
00900   // Bouml preserved body end 000B6971
00901 }
00902 
00903 void ChopperHysteresisEnd::setParameter(const int parameter)
00904 {
00905   // Bouml preserved body begin 000B69F1
00906   if (this->lowerLimit > parameter)
00907   {
00908     throw std::out_of_range("The parameter exceeds the lower limit");
00909   }
00910   if (this->upperLimit < parameter)
00911   {
00912     throw std::out_of_range("The parameter exceeds the upper limit");
00913   }
00914 
00915   this->value = parameter;
00916   // Bouml preserved body end 000B69F1
00917 }
00918 
00919 void ChopperHysteresisEnd::toString(std::string& value) const
00920 {
00921   // Bouml preserved body begin 000B6A71
00922   std::stringstream ss;
00923   ss << this->name << ": " << this->value;
00924   value = ss.str();
00925   // Bouml preserved body end 000B6A71
00926 }
00927 
00928 void ChopperHysteresisEnd::getYouBotMailboxMsg(YouBotSlaveMailboxMsg& message) const
00929 {
00930   // Bouml preserved body begin 000B6AF1
00931   message.stctOutput.typeNumber = 165;  //ChopperHysteresisEnd
00932   message.stctOutput.value = value;
00933   // Bouml preserved body end 000B6AF1
00934 }
00935 
00936 void ChopperHysteresisEnd::setYouBotMailboxMsg(const YouBotSlaveMailboxMsg& message)
00937 {
00938   // Bouml preserved body begin 000B6B71
00939   this->value = (int32)message.stctInput.value;
00940   // Bouml preserved body end 000B6B71
00941 }
00942 
00943 ChopperHysteresisStart::ChopperHysteresisStart()
00944 {
00945   // Bouml preserved body begin 00107271
00946   this->name = "ChopperHysteresisStart";
00947   this->lowerLimit = 0;
00948   this->upperLimit = 8;
00949   this->parameterType = MOTOR_CONTOLLER_PARAMETER;
00950   // Bouml preserved body end 00107271
00951 }
00952 
00953 ChopperHysteresisStart::~ChopperHysteresisStart()
00954 {
00955   // Bouml preserved body begin 001072F1
00956   // Bouml preserved body end 001072F1
00957 }
00958 
00959 void ChopperHysteresisStart::getParameter(int& parameter) const
00960 {
00961   // Bouml preserved body begin 00107371
00962   parameter = this->value;
00963   // Bouml preserved body end 00107371
00964 }
00965 
00966 void ChopperHysteresisStart::setParameter(const int parameter)
00967 {
00968   // Bouml preserved body begin 001073F1
00969   if (this->lowerLimit > parameter)
00970   {
00971     throw std::out_of_range("The parameter exceeds the lower limit");
00972   }
00973   if (this->upperLimit < parameter)
00974   {
00975     throw std::out_of_range("The parameter exceeds the upper limit");
00976   }
00977 
00978   this->value = parameter;
00979   // Bouml preserved body end 001073F1
00980 }
00981 
00982 void ChopperHysteresisStart::toString(std::string& value) const
00983 {
00984   // Bouml preserved body begin 00107471
00985   std::stringstream ss;
00986   ss << this->name << ": " << this->value;
00987   value = ss.str();
00988   // Bouml preserved body end 00107471
00989 }
00990 
00991 void ChopperHysteresisStart::getYouBotMailboxMsg(YouBotSlaveMailboxMsg& message) const
00992 {
00993   // Bouml preserved body begin 001074F1
00994   message.stctOutput.typeNumber = 166;  //ChopperHysteresisStart
00995   message.stctOutput.value = value;
00996   // Bouml preserved body end 001074F1
00997 }
00998 
00999 void ChopperHysteresisStart::setYouBotMailboxMsg(const YouBotSlaveMailboxMsg& message)
01000 {
01001   // Bouml preserved body begin 00107571
01002   this->value = (int32)message.stctInput.value;
01003   // Bouml preserved body end 00107571
01004 }
01005 
01006 ChopperMode::ChopperMode()
01007 {
01008   // Bouml preserved body begin 000B5F71
01009   this->name = "ChopperMode";
01010   this->parameterType = MOTOR_CONTOLLER_PARAMETER;
01011   // Bouml preserved body end 000B5F71
01012 }
01013 
01014 ChopperMode::~ChopperMode()
01015 {
01016   // Bouml preserved body begin 000B5FF1
01017   // Bouml preserved body end 000B5FF1
01018 }
01019 
01020 void ChopperMode::getParameter(bool& parameter) const
01021 {
01022   // Bouml preserved body begin 000B6071
01023   parameter = this->value;
01024   // Bouml preserved body end 000B6071
01025 }
01026 
01027 void ChopperMode::setParameter(const bool parameter)
01028 {
01029   // Bouml preserved body begin 000B60F1
01030 
01031   this->value = parameter;
01032   // Bouml preserved body end 000B60F1
01033 }
01034 
01035 void ChopperMode::toString(std::string& value) const
01036 {
01037   // Bouml preserved body begin 000B6171
01038   std::stringstream ss;
01039   ss << this->name << ": " << this->value;
01040   value = ss.str();
01041   // Bouml preserved body end 000B6171
01042 }
01043 
01044 void ChopperMode::getYouBotMailboxMsg(YouBotSlaveMailboxMsg& message) const
01045 {
01046   // Bouml preserved body begin 000B61F1
01047   message.stctOutput.typeNumber = 163;  //ChopperMode
01048   message.stctOutput.value = value;
01049   // Bouml preserved body end 000B61F1
01050 }
01051 
01052 void ChopperMode::setYouBotMailboxMsg(const YouBotSlaveMailboxMsg& message)
01053 {
01054   // Bouml preserved body begin 000B6271
01055   this->value = message.stctInput.value;
01056   // Bouml preserved body end 000B6271
01057 }
01058 
01059 ChopperOffTime::ChopperOffTime()
01060 {
01061   // Bouml preserved body begin 000B6CF1
01062   this->name = "ChopperOffTime";
01063   this->lowerLimit = 0;
01064   this->upperLimit = 15;
01065   this->parameterType = MOTOR_CONTOLLER_PARAMETER;
01066   // Bouml preserved body end 000B6CF1
01067 }
01068 
01069 ChopperOffTime::~ChopperOffTime()
01070 {
01071   // Bouml preserved body begin 000B6D71
01072   // Bouml preserved body end 000B6D71
01073 }
01074 
01075 void ChopperOffTime::getParameter(unsigned int& parameter) const
01076 {
01077   // Bouml preserved body begin 000B6DF1
01078   parameter = this->value;
01079   // Bouml preserved body end 000B6DF1
01080 }
01081 
01082 void ChopperOffTime::setParameter(const unsigned int& parameter)
01083 {
01084   // Bouml preserved body begin 000B6E71
01085   if (this->lowerLimit > parameter)
01086   {
01087     throw std::out_of_range("The parameter exceeds the lower limit");
01088   }
01089   if (parameter == 1)
01090   {
01091     throw std::out_of_range("One is not allowed for this parameter");
01092   }
01093   if (this->upperLimit < parameter)
01094   {
01095     throw std::out_of_range("The parameter exceeds the upper limit");
01096   }
01097 
01098   this->value = parameter;
01099   // Bouml preserved body end 000B6E71
01100 }
01101 
01102 void ChopperOffTime::toString(std::string& value) const
01103 {
01104   // Bouml preserved body begin 000B6EF1
01105   std::stringstream ss;
01106   ss << this->name << ": " << this->value;
01107   value = ss.str();
01108   // Bouml preserved body end 000B6EF1
01109 }
01110 
01111 void ChopperOffTime::getYouBotMailboxMsg(YouBotSlaveMailboxMsg& message) const
01112 {
01113   // Bouml preserved body begin 000B6F71
01114   message.stctOutput.typeNumber = 167;   //ChopperOffTime
01115   message.stctOutput.value = value;
01116   // Bouml preserved body end 000B6F71
01117 }
01118 
01119 void ChopperOffTime::setYouBotMailboxMsg(const YouBotSlaveMailboxMsg& message)
01120 {
01121   // Bouml preserved body begin 000B6FF1
01122   this->value = message.stctInput.value;
01123   // Bouml preserved body end 000B6FF1
01124 }
01125 
01126 DoubleStepEnable::DoubleStepEnable()
01127 {
01128   // Bouml preserved body begin 000B5671
01129   this->name = "DoubleStepEnable";
01130   this->parameterType = MOTOR_CONTOLLER_PARAMETER;
01131   // Bouml preserved body end 000B5671
01132 }
01133 
01134 DoubleStepEnable::~DoubleStepEnable()
01135 {
01136   // Bouml preserved body begin 000B56F1
01137   // Bouml preserved body end 000B56F1
01138 }
01139 
01140 void DoubleStepEnable::getParameter(bool& parameter) const
01141 {
01142   // Bouml preserved body begin 000B5771
01143   parameter = this->value;
01144   // Bouml preserved body end 000B5771
01145 }
01146 
01147 void DoubleStepEnable::setParameter(const bool parameter)
01148 {
01149   // Bouml preserved body begin 000B57F1
01150   this->value = parameter;
01151   // Bouml preserved body end 000B57F1
01152 }
01153 
01154 void DoubleStepEnable::toString(std::string& value) const
01155 {
01156   // Bouml preserved body begin 000B5871
01157   std::stringstream ss;
01158   ss << this->name << ": " << this->value;
01159   value = ss.str();
01160   // Bouml preserved body end 000B5871
01161 }
01162 
01163 void DoubleStepEnable::getYouBotMailboxMsg(YouBotSlaveMailboxMsg& message) const
01164 {
01165   // Bouml preserved body begin 000B58F1
01166   message.stctOutput.typeNumber = 161;  //DoubleStepEnable
01167   message.stctOutput.value = value;
01168   // Bouml preserved body end 000B58F1
01169 }
01170 
01171 void DoubleStepEnable::setYouBotMailboxMsg(const YouBotSlaveMailboxMsg& message)
01172 {
01173   // Bouml preserved body begin 000B5971
01174   this->value = message.stctInput.value;
01175 
01176   // Bouml preserved body end 000B5971
01177 }
01178 
01179 ErrorFlags::ErrorFlags()
01180 {
01181   // Bouml preserved body begin 000BC271
01182   this->name = "ErrorFlags";
01183   this->parameterType = MOTOR_CONTOLLER_PARAMETER;
01184   // Bouml preserved body end 000BC271
01185 }
01186 
01187 ErrorFlags::~ErrorFlags()
01188 {
01189   // Bouml preserved body begin 000BC2F1
01190   // Bouml preserved body end 000BC2F1
01191 }
01192 
01193 void ErrorFlags::getParameter(unsigned int& parameter) const
01194 {
01195   // Bouml preserved body begin 000BC371
01196   parameter = this->value;
01197   // Bouml preserved body end 000BC371
01198 }
01199 
01200 void ErrorFlags::setParameter(const unsigned int& parameter)
01201 {
01202   // Bouml preserved body begin 000BC3F1
01203 
01204   this->value = parameter;
01205   // Bouml preserved body end 000BC3F1
01206 }
01207 
01208 void ErrorFlags::toString(std::string& value) const
01209 {
01210   // Bouml preserved body begin 000BC471
01211   std::stringstream ss;
01212   ss << this->name << ": " << this->value;
01213   value = ss.str();
01214   // Bouml preserved body end 000BC471
01215 }
01216 
01217 void ErrorFlags::getYouBotMailboxMsg(YouBotSlaveMailboxMsg& message) const
01218 {
01219   // Bouml preserved body begin 000BC4F1
01220   message.stctOutput.typeNumber = 208;   //ErrorFlags
01221   message.stctOutput.value = value;
01222   // Bouml preserved body end 000BC4F1
01223 }
01224 
01225 void ErrorFlags::setYouBotMailboxMsg(const YouBotSlaveMailboxMsg& message)
01226 {
01227   // Bouml preserved body begin 000BC571
01228   this->value = message.stctInput.value;
01229 
01230   // Bouml preserved body end 000BC571
01231 }
01232 
01233 Freewheeling::Freewheeling()
01234 {
01235   // Bouml preserved body begin 000BB971
01236   this->name = "Freewheeling";
01237   this->lowerLimit = 0;
01238   this->upperLimit = 65535;
01239   this->parameterType = MOTOR_CONTOLLER_PARAMETER;
01240   // Bouml preserved body end 000BB971
01241 }
01242 
01243 Freewheeling::~Freewheeling()
01244 {
01245   // Bouml preserved body begin 000BB9F1
01246   // Bouml preserved body end 000BB9F1
01247 }
01248 
01249 void Freewheeling::getParameter(unsigned int& parameter) const
01250 {
01251   // Bouml preserved body begin 000BBA71
01252   parameter = this->value;
01253   // Bouml preserved body end 000BBA71
01254 }
01255 
01256 void Freewheeling::setParameter(const unsigned int& parameter)
01257 {
01258   // Bouml preserved body begin 000BBAF1
01259   if (this->lowerLimit > parameter)
01260   {
01261     throw std::out_of_range("The parameter exceeds the lower limit");
01262   }
01263   if (this->upperLimit < parameter)
01264   {
01265     throw std::out_of_range("The parameter exceeds the upper limit");
01266   }
01267 
01268   this->value = parameter;
01269   // Bouml preserved body end 000BBAF1
01270 }
01271 
01272 void Freewheeling::toString(std::string& value) const
01273 {
01274   // Bouml preserved body begin 000BBB71
01275   std::stringstream ss;
01276   ss << this->name << ": " << this->value;
01277   value = ss.str();
01278   // Bouml preserved body end 000BBB71
01279 }
01280 
01281 void Freewheeling::getYouBotMailboxMsg(YouBotSlaveMailboxMsg& message) const
01282 {
01283   // Bouml preserved body begin 000BBBF1
01284   message.stctOutput.typeNumber = 204;   //Freewheeling
01285   message.stctOutput.value = value;
01286   // Bouml preserved body end 000BBBF1
01287 }
01288 
01289 void Freewheeling::setYouBotMailboxMsg(const YouBotSlaveMailboxMsg& message)
01290 {
01291   // Bouml preserved body begin 000BBC71
01292   this->value = message.stctInput.value;
01293 
01294   // Bouml preserved body end 000BBC71
01295 }
01296 
01297 MaximumAcceleration::MaximumAcceleration()
01298 {
01299   // Bouml preserved body begin 000B3271
01300   this->name = "MaximumAcceleration";
01301   this->lowerLimit = 0;
01302   this->upperLimit = 2047;
01303   this->parameterType = MOTOR_CONTOLLER_PARAMETER;
01304   // Bouml preserved body end 000B3271
01305 }
01306 
01307 MaximumAcceleration::~MaximumAcceleration()
01308 {
01309   // Bouml preserved body begin 000B32F1
01310   // Bouml preserved body end 000B32F1
01311 }
01312 
01313 void MaximumAcceleration::getParameter(int& parameter) const
01314 {
01315   // Bouml preserved body begin 000B3371
01316   parameter = this->value;
01317   // Bouml preserved body end 000B3371
01318 }
01319 
01320 void MaximumAcceleration::setParameter(const int parameter)
01321 {
01322   // Bouml preserved body begin 000B33F1
01323   if (this->lowerLimit > parameter)
01324   {
01325     throw std::out_of_range("The parameter exceeds the lower limit");
01326   }
01327   if (this->upperLimit < parameter)
01328   {
01329     throw std::out_of_range("The parameter exceeds the upper limit");
01330   }
01331 
01332   this->value = parameter;
01333   // Bouml preserved body end 000B33F1
01334 }
01335 
01336 void MaximumAcceleration::toString(std::string& value) const
01337 {
01338   // Bouml preserved body begin 000B3471
01339   std::stringstream ss;
01340   ss << this->name << ": " << this->value;
01341   value = ss.str();
01342   // Bouml preserved body end 000B3471
01343 }
01344 
01345 void MaximumAcceleration::getYouBotMailboxMsg(YouBotSlaveMailboxMsg& message) const
01346 {
01347   // Bouml preserved body begin 000B34F1
01348   message.stctOutput.typeNumber = 5;  //MaximumAcceleration
01349   message.stctOutput.value = value;
01350   // Bouml preserved body end 000B34F1
01351 }
01352 
01353 void MaximumAcceleration::setYouBotMailboxMsg(const YouBotSlaveMailboxMsg& message)
01354 {
01355   // Bouml preserved body begin 000B3571
01356   this->value = message.stctInput.value;
01357   // Bouml preserved body end 000B3571
01358 }
01359 
01360 MaximumCurrent::MaximumCurrent()
01361 {
01362   // Bouml preserved body begin 000B36F1
01363   this->name = "MaximumCurrent";
01364   this->lowerLimit = 0;
01365   this->upperLimit = 255;
01366   this->parameterType = MOTOR_CONTOLLER_PARAMETER;
01367   // Bouml preserved body end 000B36F1
01368 }
01369 
01370 MaximumCurrent::~MaximumCurrent()
01371 {
01372   // Bouml preserved body begin 000B3771
01373   // Bouml preserved body end 000B3771
01374 }
01375 
01376 void MaximumCurrent::getParameter(int& parameter) const
01377 {
01378   // Bouml preserved body begin 000B37F1
01379   parameter = this->value;
01380   // Bouml preserved body end 000B37F1
01381 }
01382 
01383 void MaximumCurrent::setParameter(const int parameter)
01384 {
01385   // Bouml preserved body begin 000B3871
01386   if (this->lowerLimit > parameter)
01387   {
01388     throw std::out_of_range("The parameter exceeds the lower limit");
01389   }
01390   if (this->upperLimit < parameter)
01391   {
01392     throw std::out_of_range("The parameter exceeds the upper limit");
01393   }
01394 
01395   this->value = parameter;
01396   // Bouml preserved body end 000B3871
01397 }
01398 
01399 void MaximumCurrent::toString(std::string& value) const
01400 {
01401   // Bouml preserved body begin 000B38F1
01402   std::stringstream ss;
01403   ss << this->name << ": " << this->value;
01404   value = ss.str();
01405   // Bouml preserved body end 000B38F1
01406 }
01407 
01408 void MaximumCurrent::getYouBotMailboxMsg(YouBotSlaveMailboxMsg& message) const
01409 {
01410   // Bouml preserved body begin 000B3971
01411   message.stctOutput.typeNumber = 6;  //MaximumCurrent
01412   message.stctOutput.value = value;
01413   // Bouml preserved body end 000B3971
01414 }
01415 
01416 void MaximumCurrent::setYouBotMailboxMsg(const YouBotSlaveMailboxMsg& message)
01417 {
01418   // Bouml preserved body begin 000B39F1
01419   this->value = message.stctInput.value;
01420   // Bouml preserved body end 000B39F1
01421 }
01422 
01423 MaximumPositioningSpeed::MaximumPositioningSpeed()
01424 {
01425   // Bouml preserved body begin 000B2DF1
01426   this->name = "MaximumPositioningSpeed";
01427   this->lowerLimit = 0;
01428   this->upperLimit = 2047;
01429   this->parameterType = MOTOR_CONTOLLER_PARAMETER;
01430   // Bouml preserved body end 000B2DF1
01431 }
01432 
01433 MaximumPositioningSpeed::~MaximumPositioningSpeed()
01434 {
01435   // Bouml preserved body begin 000B2E71
01436   // Bouml preserved body end 000B2E71
01437 }
01438 
01439 void MaximumPositioningSpeed::getParameter(int& parameter) const
01440 {
01441   // Bouml preserved body begin 000B2EF1
01442   parameter = this->value;
01443   // Bouml preserved body end 000B2EF1
01444 }
01445 
01446 void MaximumPositioningSpeed::setParameter(const int parameter)
01447 {
01448   // Bouml preserved body begin 000B2F71
01449   if (this->lowerLimit > parameter)
01450   {
01451     throw std::out_of_range("The parameter exceeds the lower limit");
01452   }
01453   if (this->upperLimit < parameter)
01454   {
01455     throw std::out_of_range("The parameter exceeds the upper limit");
01456   }
01457 
01458   this->value = parameter;
01459   // Bouml preserved body end 000B2F71
01460 }
01461 
01462 void MaximumPositioningSpeed::toString(std::string& value) const
01463 {
01464   // Bouml preserved body begin 000B2FF1
01465   std::stringstream ss;
01466   ss << this->name << ": " << this->value;
01467   value = ss.str();
01468   // Bouml preserved body end 000B2FF1
01469 }
01470 
01471 void MaximumPositioningSpeed::getYouBotMailboxMsg(YouBotSlaveMailboxMsg& message) const
01472 {
01473   // Bouml preserved body begin 000B3071
01474   message.stctOutput.typeNumber = 4; //MaximumPositioningSpeed
01475   message.stctOutput.value = value;
01476   // Bouml preserved body end 000B3071
01477 }
01478 
01479 void MaximumPositioningSpeed::setYouBotMailboxMsg(const YouBotSlaveMailboxMsg& message)
01480 {
01481   // Bouml preserved body begin 000B30F1
01482   this->value = message.stctInput.value;
01483   // Bouml preserved body end 000B30F1
01484 }
01485 
01486 MicrostepResolution::MicrostepResolution()
01487 {
01488   // Bouml preserved body begin 000B4471
01489   this->name = "MicrostepResolution";
01490   this->lowerLimit = 0;
01491   this->upperLimit = 8;
01492   this->parameterType = MOTOR_CONTOLLER_PARAMETER;
01493   // Bouml preserved body end 000B4471
01494 }
01495 
01496 MicrostepResolution::~MicrostepResolution()
01497 {
01498   // Bouml preserved body begin 000B44F1
01499   // Bouml preserved body end 000B44F1
01500 }
01501 
01502 void MicrostepResolution::getParameter(unsigned int& parameter) const
01503 {
01504   // Bouml preserved body begin 000B4571
01505   parameter = this->value;
01506   // Bouml preserved body end 000B4571
01507 }
01508 
01509 void MicrostepResolution::setParameter(const unsigned int& parameter)
01510 {
01511   // Bouml preserved body begin 000B45F1
01512   if (this->lowerLimit > parameter)
01513   {
01514     throw std::out_of_range("The parameter exceeds the lower limit");
01515   }
01516   if (this->upperLimit < parameter)
01517   {
01518     throw std::out_of_range("The parameter exceeds the upper limit");
01519   }
01520 
01521   this->value = parameter;
01522   // Bouml preserved body end 000B45F1
01523 }
01524 
01525 void MicrostepResolution::toString(std::string& value) const
01526 {
01527   // Bouml preserved body begin 000B4671
01528   std::stringstream ss;
01529   ss << this->name << ": " << this->value;
01530   value = ss.str();
01531   // Bouml preserved body end 000B4671
01532 }
01533 
01534 void MicrostepResolution::getYouBotMailboxMsg(YouBotSlaveMailboxMsg& message) const
01535 {
01536   // Bouml preserved body begin 000B46F1
01537   message.stctOutput.typeNumber = 140;  //MicrostepResolution
01538   message.stctOutput.value = value;
01539   // Bouml preserved body end 000B46F1
01540 }
01541 
01542 void MicrostepResolution::setYouBotMailboxMsg(const YouBotSlaveMailboxMsg& message)
01543 {
01544   // Bouml preserved body begin 000B4771
01545   this->value = message.stctInput.value;
01546 
01547   // Bouml preserved body end 000B4771
01548 }
01549 
01550 PowerDownDelay::PowerDownDelay()
01551 {
01552   // Bouml preserved body begin 000BC6F1
01553   this->name = "PowerDownDelay";
01554   this->lowerLimit = 1;
01555   this->upperLimit = 65535;
01556   this->parameterType = MOTOR_CONTOLLER_PARAMETER;
01557   // Bouml preserved body end 000BC6F1
01558 }
01559 
01560 PowerDownDelay::~PowerDownDelay()
01561 {
01562   // Bouml preserved body begin 000BC771
01563   // Bouml preserved body end 000BC771
01564 }
01565 
01566 void PowerDownDelay::getParameter(unsigned int& parameter) const
01567 {
01568   // Bouml preserved body begin 000BC7F1
01569   parameter = this->value;
01570   // Bouml preserved body end 000BC7F1
01571 }
01572 
01573 void PowerDownDelay::setParameter(const unsigned int& parameter)
01574 {
01575   // Bouml preserved body begin 000BC871
01576   if (this->lowerLimit > parameter)
01577   {
01578     throw std::out_of_range("The parameter exceeds the lower limit");
01579   }
01580   if (this->upperLimit < parameter)
01581   {
01582     throw std::out_of_range("The parameter exceeds the upper limit");
01583   }
01584 
01585   this->value = parameter;
01586   // Bouml preserved body end 000BC871
01587 }
01588 
01589 void PowerDownDelay::toString(std::string& value) const
01590 {
01591   // Bouml preserved body begin 000BC8F1
01592   std::stringstream ss;
01593   ss << this->name << ": " << this->value;
01594   value = ss.str();
01595   // Bouml preserved body end 000BC8F1
01596 }
01597 
01598 void PowerDownDelay::getYouBotMailboxMsg(YouBotSlaveMailboxMsg& message) const
01599 {
01600   // Bouml preserved body begin 000BC971
01601   message.stctOutput.typeNumber = 214;  //PowerDownDelay
01602   message.stctOutput.value = value;
01603   // Bouml preserved body end 000BC971
01604 }
01605 
01606 void PowerDownDelay::setYouBotMailboxMsg(const YouBotSlaveMailboxMsg& message)
01607 {
01608   // Bouml preserved body begin 000BC9F1
01609   this->value = message.stctInput.value;
01610   // Bouml preserved body end 000BC9F1
01611 }
01612 
01613 PulseDivisor::PulseDivisor()
01614 {
01615   // Bouml preserved body begin 000B4D71
01616   this->name = "PulseDivisor";
01617   this->lowerLimit = 0;
01618   this->upperLimit = 13;
01619   this->parameterType = MOTOR_CONTOLLER_PARAMETER;
01620   // Bouml preserved body end 000B4D71
01621 }
01622 
01623 PulseDivisor::~PulseDivisor()
01624 {
01625   // Bouml preserved body begin 000B4DF1
01626   // Bouml preserved body end 000B4DF1
01627 }
01628 
01629 void PulseDivisor::getParameter(unsigned int& parameter) const
01630 {
01631   // Bouml preserved body begin 000B4E71
01632   parameter = this->value;
01633   // Bouml preserved body end 000B4E71
01634 }
01635 
01636 void PulseDivisor::setParameter(const unsigned int& parameter)
01637 {
01638   // Bouml preserved body begin 000B4EF1
01639   if (this->lowerLimit > parameter)
01640   {
01641     throw std::out_of_range("The parameter exceeds the lower limit");
01642   }
01643   if (this->upperLimit < parameter)
01644   {
01645     throw std::out_of_range("The parameter exceeds the upper limit");
01646   }
01647 
01648   this->value = parameter;
01649   // Bouml preserved body end 000B4EF1
01650 }
01651 
01652 void PulseDivisor::toString(std::string& value) const
01653 {
01654   // Bouml preserved body begin 000B4F71
01655   std::stringstream ss;
01656   ss << this->name << ": " << this->value;
01657   value = ss.str();
01658   // Bouml preserved body end 000B4F71
01659 }
01660 
01661 void PulseDivisor::getYouBotMailboxMsg(YouBotSlaveMailboxMsg& message) const
01662 {
01663   // Bouml preserved body begin 000B4FF1
01664   message.stctOutput.typeNumber = 154;  //PulseDivisor
01665   message.stctOutput.value = value;
01666   // Bouml preserved body end 000B4FF1
01667 }
01668 
01669 void PulseDivisor::setYouBotMailboxMsg(const YouBotSlaveMailboxMsg& message)
01670 {
01671   // Bouml preserved body begin 000B5071
01672   this->value = message.stctInput.value;
01673   // Bouml preserved body end 000B5071
01674 }
01675 
01676 RampDivisor::RampDivisor()
01677 {
01678   // Bouml preserved body begin 000B48F1
01679   this->name = "RampDivisor";
01680   this->lowerLimit = 0;
01681   this->upperLimit = 13;
01682   this->parameterType = MOTOR_CONTOLLER_PARAMETER;
01683   // Bouml preserved body end 000B48F1
01684 }
01685 
01686 RampDivisor::~RampDivisor()
01687 {
01688   // Bouml preserved body begin 000B4971
01689   // Bouml preserved body end 000B4971
01690 }
01691 
01692 void RampDivisor::getParameter(unsigned int& parameter) const
01693 {
01694   // Bouml preserved body begin 000B49F1
01695   parameter = this->value;
01696   // Bouml preserved body end 000B49F1
01697 }
01698 
01699 void RampDivisor::setParameter(const unsigned int& parameter)
01700 {
01701   // Bouml preserved body begin 000B4A71
01702   if (this->lowerLimit > parameter)
01703   {
01704     throw std::out_of_range("The parameter exceeds the lower limit");
01705   }
01706   if (this->upperLimit < parameter)
01707   {
01708     throw std::out_of_range("The parameter exceeds the upper limit");
01709   }
01710 
01711   this->value = parameter;
01712   // Bouml preserved body end 000B4A71
01713 }
01714 
01715 void RampDivisor::toString(std::string& value) const
01716 {
01717   // Bouml preserved body begin 000B4AF1
01718   std::stringstream ss;
01719   ss << this->name << ": " << this->value;
01720   value = ss.str();
01721   // Bouml preserved body end 000B4AF1
01722 }
01723 
01724 void RampDivisor::getYouBotMailboxMsg(YouBotSlaveMailboxMsg& message) const
01725 {
01726   // Bouml preserved body begin 000B4B71
01727   message.stctOutput.typeNumber = 153;  //RampDivisor
01728   message.stctOutput.value = value;
01729   // Bouml preserved body end 000B4B71
01730 }
01731 
01732 void RampDivisor::setYouBotMailboxMsg(const YouBotSlaveMailboxMsg& message)
01733 {
01734   // Bouml preserved body begin 000B4BF1
01735   this->value = message.stctInput.value;
01736   // Bouml preserved body end 000B4BF1
01737 }
01738 
01739 RampMode::RampMode()
01740 {
01741   // Bouml preserved body begin 000B3FF1
01742   this->name = "RampMode";
01743   this->lowerLimit = 0;
01744   this->upperLimit = 2;
01745   this->parameterType = MOTOR_CONTOLLER_PARAMETER;
01746   // Bouml preserved body end 000B3FF1
01747 }
01748 
01749 RampMode::~RampMode()
01750 {
01751   // Bouml preserved body begin 000B4071
01752   // Bouml preserved body end 000B4071
01753 }
01754 
01755 void RampMode::getParameter(unsigned int& parameter) const
01756 {
01757   // Bouml preserved body begin 000B40F1
01758   parameter = this->value;
01759   // Bouml preserved body end 000B40F1
01760 }
01761 
01762 void RampMode::setParameter(const unsigned int& parameter)
01763 {
01764   // Bouml preserved body begin 000B4171
01765   if (this->lowerLimit > parameter)
01766   {
01767     throw std::out_of_range("The parameter exceeds the lower limit");
01768   }
01769   if (this->upperLimit < parameter)
01770   {
01771     throw std::out_of_range("The parameter exceeds the upper limit");
01772   }
01773 
01774   this->value = parameter;
01775   // Bouml preserved body end 000B4171
01776 }
01777 
01778 void RampMode::toString(std::string& value) const
01779 {
01780   // Bouml preserved body begin 000B41F1
01781   std::stringstream ss;
01782   ss << this->name << ": " << this->value;
01783   value = ss.str();
01784   // Bouml preserved body end 000B41F1
01785 }
01786 
01787 void RampMode::getYouBotMailboxMsg(YouBotSlaveMailboxMsg& message) const
01788 {
01789   // Bouml preserved body begin 000B4271
01790   message.stctOutput.typeNumber = 138;  //RampMode
01791   message.stctOutput.value = value;
01792   // Bouml preserved body end 000B4271
01793 }
01794 
01795 void RampMode::setYouBotMailboxMsg(const YouBotSlaveMailboxMsg& message)
01796 {
01797   // Bouml preserved body begin 000B42F1
01798   this->value = message.stctInput.value;
01799   // Bouml preserved body end 000B42F1
01800 }
01801 
01802 ShortDetectionTimer::ShortDetectionTimer()
01803 {
01804   // Bouml preserved body begin 000B9E71
01805   this->name = "ShortDetectionTimer";
01806   this->lowerLimit = 0;
01807   this->upperLimit = 3;
01808   this->parameterType = MOTOR_CONTOLLER_PARAMETER;
01809   // Bouml preserved body end 000B9E71
01810 }
01811 
01812 ShortDetectionTimer::~ShortDetectionTimer()
01813 {
01814   // Bouml preserved body begin 000B9EF1
01815   // Bouml preserved body end 000B9EF1
01816 }
01817 
01818 void ShortDetectionTimer::getParameter(unsigned int& parameter) const
01819 {
01820   // Bouml preserved body begin 000B9F71
01821   parameter = this->value;
01822   // Bouml preserved body end 000B9F71
01823 }
01824 
01825 void ShortDetectionTimer::setParameter(const unsigned int& parameter)
01826 {
01827   // Bouml preserved body begin 000B9FF1
01828   if (this->lowerLimit > parameter)
01829   {
01830     throw std::out_of_range("The parameter exceeds the lower limit");
01831   }
01832   if (this->upperLimit < parameter)
01833   {
01834     throw std::out_of_range("The parameter exceeds the upper limit");
01835   }
01836 
01837   this->value = parameter;
01838   // Bouml preserved body end 000B9FF1
01839 }
01840 
01841 void ShortDetectionTimer::toString(std::string& value) const
01842 {
01843   // Bouml preserved body begin 000BA071
01844   std::stringstream ss;
01845   ss << this->name << ": " << this->value;
01846   value = ss.str();
01847   // Bouml preserved body end 000BA071
01848 }
01849 
01850 void ShortDetectionTimer::getYouBotMailboxMsg(YouBotSlaveMailboxMsg& message) const
01851 {
01852   // Bouml preserved body begin 000BA0F1
01853   message.stctOutput.typeNumber = 178;  //ShortDetectionTimer
01854   message.stctOutput.value = value;
01855   // Bouml preserved body end 000BA0F1
01856 }
01857 
01858 void ShortDetectionTimer::setYouBotMailboxMsg(const YouBotSlaveMailboxMsg& message)
01859 {
01860   // Bouml preserved body begin 000BA171
01861   this->value = message.stctInput.value;
01862   // Bouml preserved body end 000BA171
01863 }
01864 
01865 ShortProtectionDisable::ShortProtectionDisable()
01866 {
01867   // Bouml preserved body begin 000B99F1
01868   this->name = "ShortProtectionDisable";
01869   this->parameterType = MOTOR_CONTOLLER_PARAMETER;
01870   // Bouml preserved body end 000B99F1
01871 }
01872 
01873 ShortProtectionDisable::~ShortProtectionDisable()
01874 {
01875   // Bouml preserved body begin 000B9A71
01876   // Bouml preserved body end 000B9A71
01877 }
01878 
01879 void ShortProtectionDisable::getParameter(bool& parameter) const
01880 {
01881   // Bouml preserved body begin 000B9AF1
01882   parameter = this->value;
01883   // Bouml preserved body end 000B9AF1
01884 }
01885 
01886 void ShortProtectionDisable::setParameter(const bool parameter)
01887 {
01888   // Bouml preserved body begin 000B9B71
01889   this->value = parameter;
01890   // Bouml preserved body end 000B9B71
01891 }
01892 
01893 void ShortProtectionDisable::toString(std::string& value) const
01894 {
01895   // Bouml preserved body begin 000B9BF1
01896   std::stringstream ss;
01897   ss << this->name << ": " << this->value;
01898   value = ss.str();
01899   // Bouml preserved body end 000B9BF1
01900 }
01901 
01902 void ShortProtectionDisable::getYouBotMailboxMsg(YouBotSlaveMailboxMsg& message) const
01903 {
01904   // Bouml preserved body begin 000B9C71
01905   message.stctOutput.typeNumber = 177;  //ShortProtectionDisable
01906   message.stctOutput.value = value;
01907   // Bouml preserved body end 000B9C71
01908 }
01909 
01910 void ShortProtectionDisable::setYouBotMailboxMsg(const YouBotSlaveMailboxMsg& message)
01911 {
01912   // Bouml preserved body begin 000B9CF1
01913   this->value = message.stctInput.value;
01914   // Bouml preserved body end 000B9CF1
01915 }
01916 
01917 SlopeControlHighSide::SlopeControlHighSide()
01918 {
01919   // Bouml preserved body begin 000B90F1
01920   this->name = "SlopeControlHighSide";
01921   this->lowerLimit = 0;
01922   this->upperLimit = 3;
01923   this->parameterType = MOTOR_CONTOLLER_PARAMETER;
01924   // Bouml preserved body end 000B90F1
01925 }
01926 
01927 SlopeControlHighSide::~SlopeControlHighSide()
01928 {
01929   // Bouml preserved body begin 000B9171
01930   // Bouml preserved body end 000B9171
01931 }
01932 
01933 void SlopeControlHighSide::getParameter(unsigned int& parameter) const
01934 {
01935   // Bouml preserved body begin 000B91F1
01936   parameter = this->value;
01937   // Bouml preserved body end 000B91F1
01938 }
01939 
01940 void SlopeControlHighSide::setParameter(const unsigned int& parameter)
01941 {
01942   // Bouml preserved body begin 000B9271
01943   if (this->lowerLimit > parameter)
01944   {
01945     throw std::out_of_range("The parameter exceeds the lower limit");
01946   }
01947   if (this->upperLimit < parameter)
01948   {
01949     throw std::out_of_range("The parameter exceeds the upper limit");
01950   }
01951 
01952   this->value = parameter;
01953   // Bouml preserved body end 000B9271
01954 }
01955 
01956 void SlopeControlHighSide::toString(std::string& value) const
01957 {
01958   // Bouml preserved body begin 000B92F1
01959   std::stringstream ss;
01960   ss << this->name << ": " << this->value;
01961   value = ss.str();
01962   // Bouml preserved body end 000B92F1
01963 }
01964 
01965 void SlopeControlHighSide::getYouBotMailboxMsg(YouBotSlaveMailboxMsg& message) const
01966 {
01967   // Bouml preserved body begin 000B9371
01968   message.stctOutput.typeNumber = 175;  //SlopeControlHighSide
01969   message.stctOutput.value = value;
01970   // Bouml preserved body end 000B9371
01971 }
01972 
01973 void SlopeControlHighSide::setYouBotMailboxMsg(const YouBotSlaveMailboxMsg& message)
01974 {
01975   // Bouml preserved body begin 000B93F1
01976   this->value = message.stctInput.value;
01977   // Bouml preserved body end 000B93F1
01978 }
01979 
01980 SlopeControlLowSide::SlopeControlLowSide()
01981 {
01982   // Bouml preserved body begin 000B9571
01983   this->name = "SlopeControlLowSide";
01984   this->lowerLimit = 0;
01985   this->upperLimit = 3;
01986   this->parameterType = MOTOR_CONTOLLER_PARAMETER;
01987   // Bouml preserved body end 000B9571
01988 }
01989 
01990 SlopeControlLowSide::~SlopeControlLowSide()
01991 {
01992   // Bouml preserved body begin 000B95F1
01993   // Bouml preserved body end 000B95F1
01994 }
01995 
01996 void SlopeControlLowSide::getParameter(unsigned int& parameter) const
01997 {
01998   // Bouml preserved body begin 000B9671
01999   parameter = this->value;
02000   // Bouml preserved body end 000B9671
02001 }
02002 
02003 void SlopeControlLowSide::setParameter(const unsigned int& parameter)
02004 {
02005   // Bouml preserved body begin 000B96F1
02006   if (this->lowerLimit > parameter)
02007   {
02008     throw std::out_of_range("The parameter exceeds the lower limit");
02009   }
02010   if (this->upperLimit < parameter)
02011   {
02012     throw std::out_of_range("The parameter exceeds the upper limit");
02013   }
02014 
02015   this->value = parameter;
02016   // Bouml preserved body end 000B96F1
02017 }
02018 
02019 void SlopeControlLowSide::toString(std::string& value) const
02020 {
02021   // Bouml preserved body begin 000B9771
02022   std::stringstream ss;
02023   ss << this->name << ": " << this->value;
02024   value = ss.str();
02025   // Bouml preserved body end 000B9771
02026 }
02027 
02028 void SlopeControlLowSide::getYouBotMailboxMsg(YouBotSlaveMailboxMsg& message) const
02029 {
02030   // Bouml preserved body begin 000B97F1
02031   message.stctOutput.typeNumber = 176;  //SlopeControlLowSide
02032   message.stctOutput.value = value;
02033   // Bouml preserved body end 000B97F1
02034 }
02035 
02036 void SlopeControlLowSide::setYouBotMailboxMsg(const YouBotSlaveMailboxMsg& message)
02037 {
02038   // Bouml preserved body begin 000B9871
02039   this->value = message.stctInput.value;
02040   // Bouml preserved body end 000B9871
02041 }
02042 
02043 SmartEnergyActualCurrent::SmartEnergyActualCurrent()
02044 {
02045   // Bouml preserved body begin 000BA771
02046   this->name = "SmartEnergyActualCurrent";
02047   this->lowerLimit = 0;
02048   this->upperLimit = 31;
02049   this->parameterType = MOTOR_CONTOLLER_PARAMETER;
02050   // Bouml preserved body end 000BA771
02051 }
02052 
02053 SmartEnergyActualCurrent::~SmartEnergyActualCurrent()
02054 {
02055   // Bouml preserved body begin 000BA7F1
02056   // Bouml preserved body end 000BA7F1
02057 }
02058 
02059 void SmartEnergyActualCurrent::getParameter(unsigned int& parameter) const
02060 {
02061   // Bouml preserved body begin 000BA871
02062   parameter = this->value;
02063   // Bouml preserved body end 000BA871
02064 }
02065 
02066 void SmartEnergyActualCurrent::setParameter(const unsigned int& parameter)
02067 {
02068   // Bouml preserved body begin 000BA8F1
02069   if (this->lowerLimit > parameter)
02070   {
02071     throw std::out_of_range("The parameter exceeds the lower limit");
02072   }
02073   if (this->upperLimit < parameter)
02074   {
02075     throw std::out_of_range("The parameter exceeds the upper limit");
02076   }
02077 
02078   this->value = parameter;
02079   // Bouml preserved body end 000BA8F1
02080 }
02081 
02082 void SmartEnergyActualCurrent::toString(std::string& value) const
02083 {
02084   // Bouml preserved body begin 000BA971
02085   std::stringstream ss;
02086   ss << this->name << ": " << this->value;
02087   value = ss.str();
02088   // Bouml preserved body end 000BA971
02089 }
02090 
02091 void SmartEnergyActualCurrent::getYouBotMailboxMsg(YouBotSlaveMailboxMsg& message) const
02092 {
02093   // Bouml preserved body begin 000BA9F1
02094   message.stctOutput.typeNumber = 180;   //SmartEnergyActualCurrent
02095   message.stctOutput.value = value;
02096   // Bouml preserved body end 000BA9F1
02097 }
02098 
02099 void SmartEnergyActualCurrent::setYouBotMailboxMsg(const YouBotSlaveMailboxMsg& message)
02100 {
02101   // Bouml preserved body begin 000BAA71
02102   this->value = message.stctInput.value;
02103   // Bouml preserved body end 000BAA71
02104 }
02105 
02106 SmartEnergyCurrentDownStep::SmartEnergyCurrentDownStep()
02107 {
02108   // Bouml preserved body begin 000B75F1
02109   this->name = "SmartEnergyCurrentDownStep";
02110   this->lowerLimit = 0;
02111   this->upperLimit = 3;
02112   this->parameterType = MOTOR_CONTOLLER_PARAMETER;
02113   // Bouml preserved body end 000B75F1
02114 }
02115 
02116 SmartEnergyCurrentDownStep::~SmartEnergyCurrentDownStep()
02117 {
02118   // Bouml preserved body begin 000B7671
02119   // Bouml preserved body end 000B7671
02120 }
02121 
02122 void SmartEnergyCurrentDownStep::getParameter(unsigned int& parameter) const
02123 {
02124   // Bouml preserved body begin 000B76F1
02125   parameter = this->value;
02126   // Bouml preserved body end 000B76F1
02127 }
02128 
02129 void SmartEnergyCurrentDownStep::setParameter(const unsigned int& parameter)
02130 {
02131   // Bouml preserved body begin 000B7771
02132   if (this->lowerLimit > parameter)
02133   {
02134     throw std::out_of_range("The parameter exceeds the lower limit");
02135   }
02136   if (this->upperLimit < parameter)
02137   {
02138     throw std::out_of_range("The parameter exceeds the upper limit");
02139   }
02140 
02141   this->value = parameter;
02142   // Bouml preserved body end 000B7771
02143 }
02144 
02145 void SmartEnergyCurrentDownStep::toString(std::string& value) const
02146 {
02147   // Bouml preserved body begin 000B77F1
02148   std::stringstream ss;
02149   ss << this->name << ": " << this->value;
02150   value = ss.str();
02151   // Bouml preserved body end 000B77F1
02152 }
02153 
02154 void SmartEnergyCurrentDownStep::getYouBotMailboxMsg(YouBotSlaveMailboxMsg& message) const
02155 {
02156   // Bouml preserved body begin 000B7871
02157   message.stctOutput.typeNumber = 169;   //SmartEnergyCurrentDownStep
02158   message.stctOutput.value = value;
02159   // Bouml preserved body end 000B7871
02160 }
02161 
02162 void SmartEnergyCurrentDownStep::setYouBotMailboxMsg(const YouBotSlaveMailboxMsg& message)
02163 {
02164   // Bouml preserved body begin 000B78F1
02165   this->value = message.stctInput.value;
02166   // Bouml preserved body end 000B78F1
02167 }
02168 
02169 SmartEnergyCurrentMinimum::SmartEnergyCurrentMinimum()
02170 {
02171   // Bouml preserved body begin 000B7171
02172   this->name = "SmartEnergyCurrentMinimum";
02173   this->lowerLimit = 0;
02174   this->upperLimit = 1;
02175   this->parameterType = MOTOR_CONTOLLER_PARAMETER;
02176   // Bouml preserved body end 000B7171
02177 }
02178 
02179 SmartEnergyCurrentMinimum::~SmartEnergyCurrentMinimum()
02180 {
02181   // Bouml preserved body begin 000B71F1
02182   // Bouml preserved body end 000B71F1
02183 }
02184 
02185 void SmartEnergyCurrentMinimum::getParameter(unsigned int& parameter) const
02186 {
02187   // Bouml preserved body begin 000B7271
02188   parameter = this->value;
02189   // Bouml preserved body end 000B7271
02190 }
02191 
02192 void SmartEnergyCurrentMinimum::setParameter(const unsigned int& parameter)
02193 {
02194   // Bouml preserved body begin 000B72F1
02195   if (this->lowerLimit > parameter)
02196   {
02197     throw std::out_of_range("The parameter exceeds the lower limit");
02198   }
02199   if (this->upperLimit < parameter)
02200   {
02201     throw std::out_of_range("The parameter exceeds the upper limit");
02202   }
02203 
02204   this->value = parameter;
02205   // Bouml preserved body end 000B72F1
02206 }
02207 
02208 void SmartEnergyCurrentMinimum::toString(std::string& value) const
02209 {
02210   // Bouml preserved body begin 000B7371
02211   std::stringstream ss;
02212   ss << this->name << ": " << this->value;
02213   value = ss.str();
02214   // Bouml preserved body end 000B7371
02215 }
02216 
02217 void SmartEnergyCurrentMinimum::getYouBotMailboxMsg(YouBotSlaveMailboxMsg& message) const
02218 {
02219   // Bouml preserved body begin 000B73F1
02220   message.stctOutput.typeNumber = 168;  //SmartEnergyCurrentMinimum
02221   message.stctOutput.value = value;
02222   // Bouml preserved body end 000B73F1
02223 }
02224 
02225 void SmartEnergyCurrentMinimum::setYouBotMailboxMsg(const YouBotSlaveMailboxMsg& message)
02226 {
02227   // Bouml preserved body begin 000B7471
02228   this->value = message.stctInput.value;
02229   // Bouml preserved body end 000B7471
02230 }
02231 
02232 SmartEnergyCurrentUpStep::SmartEnergyCurrentUpStep()
02233 {
02234   // Bouml preserved body begin 000B7EF1
02235   this->name = "SmartEnergyCurrentUpStep";
02236   this->lowerLimit = 1;
02237   this->upperLimit = 3;
02238   this->parameterType = MOTOR_CONTOLLER_PARAMETER;
02239   // Bouml preserved body end 000B7EF1
02240 }
02241 
02242 SmartEnergyCurrentUpStep::~SmartEnergyCurrentUpStep()
02243 {
02244   // Bouml preserved body begin 000B7F71
02245   // Bouml preserved body end 000B7F71
02246 }
02247 
02248 void SmartEnergyCurrentUpStep::getParameter(unsigned int& parameter) const
02249 {
02250   // Bouml preserved body begin 000B7FF1
02251   parameter = this->value;
02252   // Bouml preserved body end 000B7FF1
02253 }
02254 
02255 void SmartEnergyCurrentUpStep::setParameter(const unsigned int& parameter)
02256 {
02257   // Bouml preserved body begin 000B8071
02258   if (this->lowerLimit > parameter)
02259   {
02260     throw std::out_of_range("The parameter exceeds the lower limit");
02261   }
02262   if (this->upperLimit < parameter)
02263   {
02264     throw std::out_of_range("The parameter exceeds the upper limit");
02265   }
02266 
02267   this->value = parameter;
02268   // Bouml preserved body end 000B8071
02269 }
02270 
02271 void SmartEnergyCurrentUpStep::toString(std::string& value) const
02272 {
02273   // Bouml preserved body begin 000B80F1
02274   std::stringstream ss;
02275   ss << this->name << ": " << this->value;
02276   value = ss.str();
02277   // Bouml preserved body end 000B80F1
02278 }
02279 
02280 void SmartEnergyCurrentUpStep::getYouBotMailboxMsg(YouBotSlaveMailboxMsg& message) const
02281 {
02282   // Bouml preserved body begin 000B8171
02283   message.stctOutput.typeNumber = 171;   //SmartEnergyCurrentUpStep
02284   message.stctOutput.value = value;
02285   // Bouml preserved body end 000B8171
02286 }
02287 
02288 void SmartEnergyCurrentUpStep::setYouBotMailboxMsg(const YouBotSlaveMailboxMsg& message)
02289 {
02290   // Bouml preserved body begin 000B81F1
02291   this->value = message.stctInput.value;
02292   // Bouml preserved body end 000B81F1
02293 }
02294 
02295 SmartEnergyHysteresis::SmartEnergyHysteresis()
02296 {
02297   // Bouml preserved body begin 000B7A71
02298   this->name = "SmartEnergyHysteresis";
02299   this->lowerLimit = 0;
02300   this->upperLimit = 15;
02301   this->parameterType = MOTOR_CONTOLLER_PARAMETER;
02302   // Bouml preserved body end 000B7A71
02303 }
02304 
02305 SmartEnergyHysteresis::~SmartEnergyHysteresis()
02306 {
02307   // Bouml preserved body begin 000B7AF1
02308   // Bouml preserved body end 000B7AF1
02309 }
02310 
02311 void SmartEnergyHysteresis::getParameter(unsigned int& parameter) const
02312 {
02313   // Bouml preserved body begin 000B7B71
02314   parameter = this->value;
02315   // Bouml preserved body end 000B7B71
02316 }
02317 
02318 void SmartEnergyHysteresis::setParameter(const unsigned int& parameter)
02319 {
02320   // Bouml preserved body begin 000B7BF1
02321   if (this->lowerLimit > parameter)
02322   {
02323     throw std::out_of_range("The parameter exceeds the lower limit");
02324   }
02325   if (this->upperLimit < parameter)
02326   {
02327     throw std::out_of_range("The parameter exceeds the upper limit");
02328   }
02329 
02330   this->value = parameter;
02331   // Bouml preserved body end 000B7BF1
02332 }
02333 
02334 void SmartEnergyHysteresis::toString(std::string& value) const
02335 {
02336   // Bouml preserved body begin 000B7C71
02337   std::stringstream ss;
02338   ss << this->name << ": " << this->value;
02339   value = ss.str();
02340   // Bouml preserved body end 000B7C71
02341 }
02342 
02343 void SmartEnergyHysteresis::getYouBotMailboxMsg(YouBotSlaveMailboxMsg& message) const
02344 {
02345   // Bouml preserved body begin 000B7CF1
02346   message.stctOutput.typeNumber = 170;   //SmartEnergyHysteresis
02347   message.stctOutput.value = value;
02348   // Bouml preserved body end 000B7CF1
02349 }
02350 
02351 void SmartEnergyHysteresis::setYouBotMailboxMsg(const YouBotSlaveMailboxMsg& message)
02352 {
02353   // Bouml preserved body begin 000B7D71
02354   this->value = message.stctInput.value;
02355   // Bouml preserved body end 000B7D71
02356 }
02357 
02358 SmartEnergyHysteresisStart::SmartEnergyHysteresisStart()
02359 {
02360   // Bouml preserved body begin 000B8371
02361   this->name = "SmartEnergyHysteresisStart";
02362   this->lowerLimit = 0;
02363   this->upperLimit = 15;
02364   this->parameterType = MOTOR_CONTOLLER_PARAMETER;
02365   // Bouml preserved body end 000B8371
02366 }
02367 
02368 SmartEnergyHysteresisStart::~SmartEnergyHysteresisStart()
02369 {
02370   // Bouml preserved body begin 000B83F1
02371   // Bouml preserved body end 000B83F1
02372 }
02373 
02374 void SmartEnergyHysteresisStart::getParameter(unsigned int& parameter) const
02375 {
02376   // Bouml preserved body begin 000B8471
02377   parameter = this->value;
02378   // Bouml preserved body end 000B8471
02379 }
02380 
02381 void SmartEnergyHysteresisStart::setParameter(const unsigned int& parameter)
02382 {
02383   // Bouml preserved body begin 000B84F1
02384   if (this->lowerLimit > parameter)
02385   {
02386     throw std::out_of_range("The parameter exceeds the lower limit");
02387   }
02388   if (this->upperLimit < parameter)
02389   {
02390     throw std::out_of_range("The parameter exceeds the upper limit");
02391   }
02392 
02393   this->value = parameter;
02394   // Bouml preserved body end 000B84F1
02395 }
02396 
02397 void SmartEnergyHysteresisStart::toString(std::string& value) const
02398 {
02399   // Bouml preserved body begin 000B8571
02400   std::stringstream ss;
02401   ss << this->name << ": " << this->value;
02402   value = ss.str();
02403   // Bouml preserved body end 000B8571
02404 }
02405 
02406 void SmartEnergyHysteresisStart::getYouBotMailboxMsg(YouBotSlaveMailboxMsg& message) const
02407 {
02408   // Bouml preserved body begin 000B85F1
02409   message.stctOutput.typeNumber = 172;  //SmartEnergyHysteresisStart
02410   message.stctOutput.value = value;
02411   // Bouml preserved body end 000B85F1
02412 }
02413 
02414 void SmartEnergyHysteresisStart::setYouBotMailboxMsg(const YouBotSlaveMailboxMsg& message)
02415 {
02416   // Bouml preserved body begin 000B8671
02417   this->value = message.stctInput.value;
02418   // Bouml preserved body end 000B8671
02419 }
02420 
02421 SmartEnergySlowRunCurrent::SmartEnergySlowRunCurrent()
02422 {
02423   // Bouml preserved body begin 000BB4F1
02424   this->name = "SmartEnergySlowRunCurrent";
02425   this->lowerLimit = 0;
02426   this->upperLimit = 255;
02427   this->parameterType = MOTOR_CONTOLLER_PARAMETER;
02428   // Bouml preserved body end 000BB4F1
02429 }
02430 
02431 SmartEnergySlowRunCurrent::~SmartEnergySlowRunCurrent()
02432 {
02433   // Bouml preserved body begin 000BB571
02434   // Bouml preserved body end 000BB571
02435 }
02436 
02437 void SmartEnergySlowRunCurrent::getParameter(unsigned int& parameter) const
02438 {
02439   // Bouml preserved body begin 000BB5F1
02440   parameter = this->value;
02441   // Bouml preserved body end 000BB5F1
02442 }
02443 
02444 void SmartEnergySlowRunCurrent::setParameter(const unsigned int& parameter)
02445 {
02446   // Bouml preserved body begin 000BB671
02447   if (this->lowerLimit > parameter)
02448   {
02449     throw std::out_of_range("The parameter exceeds the lower limit");
02450   }
02451   if (this->upperLimit < parameter)
02452   {
02453     throw std::out_of_range("The parameter exceeds the upper limit");
02454   }
02455 
02456   this->value = parameter;
02457   // Bouml preserved body end 000BB671
02458 }
02459 
02460 void SmartEnergySlowRunCurrent::toString(std::string& value) const
02461 {
02462   // Bouml preserved body begin 000BB6F1
02463   std::stringstream ss;
02464   ss << this->name << ": " << this->value;
02465   value = ss.str();
02466   // Bouml preserved body end 000BB6F1
02467 }
02468 
02469 void SmartEnergySlowRunCurrent::getYouBotMailboxMsg(YouBotSlaveMailboxMsg& message) const
02470 {
02471   // Bouml preserved body begin 000BB771
02472   message.stctOutput.typeNumber = 183;   //SmartEnergySlowRunCurrent
02473   message.stctOutput.value = value;
02474   // Bouml preserved body end 000BB771
02475 }
02476 
02477 void SmartEnergySlowRunCurrent::setYouBotMailboxMsg(const YouBotSlaveMailboxMsg& message)
02478 {
02479   // Bouml preserved body begin 000BB7F1
02480   this->value = message.stctInput.value;
02481   // Bouml preserved body end 000BB7F1
02482 }
02483 
02484 SmartEnergyThresholdSpeed::SmartEnergyThresholdSpeed()
02485 {
02486   // Bouml preserved body begin 000BB071
02487   this->name = "SmartEnergyThresholdSpeed";
02488   this->lowerLimit = 0;
02489   this->upperLimit = 2047;
02490   this->parameterType = MOTOR_CONTOLLER_PARAMETER;
02491   // Bouml preserved body end 000BB071
02492 }
02493 
02494 SmartEnergyThresholdSpeed::~SmartEnergyThresholdSpeed()
02495 {
02496   // Bouml preserved body begin 000BB0F1
02497   // Bouml preserved body end 000BB0F1
02498 }
02499 
02500 void SmartEnergyThresholdSpeed::getParameter(unsigned int& parameter) const
02501 {
02502   // Bouml preserved body begin 000BB171
02503   parameter = this->value;
02504   // Bouml preserved body end 000BB171
02505 }
02506 
02507 void SmartEnergyThresholdSpeed::setParameter(const unsigned int& parameter)
02508 {
02509   // Bouml preserved body begin 000BB1F1
02510   if (this->lowerLimit > parameter)
02511   {
02512     throw std::out_of_range("The parameter exceeds the lower limit");
02513   }
02514   if (this->upperLimit < parameter)
02515   {
02516     throw std::out_of_range("The parameter exceeds the upper limit");
02517   }
02518 
02519   this->value = parameter;
02520   // Bouml preserved body end 000BB1F1
02521 }
02522 
02523 void SmartEnergyThresholdSpeed::toString(std::string& value) const
02524 {
02525   // Bouml preserved body begin 000BB271
02526   std::stringstream ss;
02527   ss << this->name << ": " << this->value;
02528   value = ss.str();
02529   // Bouml preserved body end 000BB271
02530 }
02531 
02532 void SmartEnergyThresholdSpeed::getYouBotMailboxMsg(YouBotSlaveMailboxMsg& message) const
02533 {
02534   // Bouml preserved body begin 000BB2F1
02535   message.stctOutput.typeNumber = 182;  //SmartEnergyThresholdSpeed
02536   message.stctOutput.value = value;
02537   // Bouml preserved body end 000BB2F1
02538 }
02539 
02540 void SmartEnergyThresholdSpeed::setYouBotMailboxMsg(const YouBotSlaveMailboxMsg& message)
02541 {
02542   // Bouml preserved body begin 000BB371
02543   this->value = message.stctInput.value;
02544   // Bouml preserved body end 000BB371
02545 }
02546 
02547 StallGuard2FilterEnable::StallGuard2FilterEnable()
02548 {
02549   // Bouml preserved body begin 000B87F1
02550   this->name = "StallGuard2FilterEnable";
02551   this->parameterType = MOTOR_CONTOLLER_PARAMETER;
02552   // Bouml preserved body end 000B87F1
02553 }
02554 
02555 StallGuard2FilterEnable::~StallGuard2FilterEnable()
02556 {
02557   // Bouml preserved body begin 000B8871
02558   // Bouml preserved body end 000B8871
02559 }
02560 
02561 void StallGuard2FilterEnable::getParameter(bool& parameter) const
02562 {
02563   // Bouml preserved body begin 000B88F1
02564   parameter = this->value;
02565   // Bouml preserved body end 000B88F1
02566 }
02567 
02568 void StallGuard2FilterEnable::setParameter(const bool parameter)
02569 {
02570   // Bouml preserved body begin 000B8971
02571   this->value = parameter;
02572   // Bouml preserved body end 000B8971
02573 }
02574 
02575 void StallGuard2FilterEnable::toString(std::string& value) const
02576 {
02577   // Bouml preserved body begin 000B89F1
02578   std::stringstream ss;
02579   ss << this->name << ": " << this->value;
02580   value = ss.str();
02581   // Bouml preserved body end 000B89F1
02582 }
02583 
02584 void StallGuard2FilterEnable::getYouBotMailboxMsg(YouBotSlaveMailboxMsg& message) const
02585 {
02586   // Bouml preserved body begin 000B8A71
02587   message.stctOutput.typeNumber = 173;  //StallGuard2FilterEnable
02588   message.stctOutput.value = value;
02589   // Bouml preserved body end 000B8A71
02590 }
02591 
02592 void StallGuard2FilterEnable::setYouBotMailboxMsg(const YouBotSlaveMailboxMsg& message)
02593 {
02594   // Bouml preserved body begin 000B8AF1
02595   this->value = message.stctInput.value;
02596   // Bouml preserved body end 000B8AF1
02597 }
02598 
02599 StallGuard2Threshold::StallGuard2Threshold()
02600 {
02601   // Bouml preserved body begin 000B8C71
02602   this->name = "StallGuard2Threshold";
02603   this->lowerLimit = -64;
02604   this->upperLimit = 63;
02605   this->parameterType = MOTOR_CONTOLLER_PARAMETER;
02606   // Bouml preserved body end 000B8C71
02607 }
02608 
02609 StallGuard2Threshold::~StallGuard2Threshold()
02610 {
02611   // Bouml preserved body begin 000B8CF1
02612   // Bouml preserved body end 000B8CF1
02613 }
02614 
02615 void StallGuard2Threshold::getParameter(int& parameter) const
02616 {
02617   // Bouml preserved body begin 000B8D71
02618   parameter = this->value;
02619   // Bouml preserved body end 000B8D71
02620 }
02621 
02622 void StallGuard2Threshold::setParameter(const int parameter)
02623 {
02624   // Bouml preserved body begin 000B8DF1
02625   if (this->lowerLimit > parameter)
02626   {
02627     throw std::out_of_range("The parameter exceeds the lower limit");
02628   }
02629   if (this->upperLimit < parameter)
02630   {
02631     throw std::out_of_range("The parameter exceeds the upper limit");
02632   }
02633 
02634   this->value = parameter;
02635   // Bouml preserved body end 000B8DF1
02636 }
02637 
02638 void StallGuard2Threshold::toString(std::string& value) const
02639 {
02640   // Bouml preserved body begin 000B8E71
02641   std::stringstream ss;
02642   ss << this->name << ": " << this->value;
02643   value = ss.str();
02644   // Bouml preserved body end 000B8E71
02645 }
02646 
02647 void StallGuard2Threshold::getYouBotMailboxMsg(YouBotSlaveMailboxMsg& message) const
02648 {
02649   // Bouml preserved body begin 000B8EF1
02650   message.stctOutput.typeNumber = 174;  //StallGuard2Threshold
02651   message.stctOutput.value = value;
02652   // Bouml preserved body end 000B8EF1
02653 }
02654 
02655 void StallGuard2Threshold::setYouBotMailboxMsg(const YouBotSlaveMailboxMsg& message)
02656 {
02657   // Bouml preserved body begin 000B8F71
02658   this->value = (int32)message.stctInput.value;
02659   // Bouml preserved body end 000B8F71
02660 }
02661 
02662 StandbyCurrent::StandbyCurrent()
02663 {
02664   // Bouml preserved body begin 000B3B71
02665   this->name = "StandbyCurrent";
02666   this->lowerLimit = 0;
02667   this->upperLimit = 255;
02668   this->parameterType = MOTOR_CONTOLLER_PARAMETER;
02669   // Bouml preserved body end 000B3B71
02670 }
02671 
02672 StandbyCurrent::~StandbyCurrent()
02673 {
02674   // Bouml preserved body begin 000B3BF1
02675   // Bouml preserved body end 000B3BF1
02676 }
02677 
02678 void StandbyCurrent::getParameter(int& parameter) const
02679 {
02680   // Bouml preserved body begin 000B3C71
02681   parameter = this->value;
02682   // Bouml preserved body end 000B3C71
02683 }
02684 
02685 void StandbyCurrent::setParameter(const int parameter)
02686 {
02687   // Bouml preserved body begin 000B3CF1
02688   if (this->lowerLimit > parameter)
02689   {
02690     throw std::out_of_range("The parameter exceeds the lower limit");
02691   }
02692   if (this->upperLimit < parameter)
02693   {
02694     throw std::out_of_range("The parameter exceeds the upper limit");
02695   }
02696 
02697   this->value = parameter;
02698   // Bouml preserved body end 000B3CF1
02699 }
02700 
02701 void StandbyCurrent::toString(std::string& value) const
02702 {
02703   // Bouml preserved body begin 000B3D71
02704   std::stringstream ss;
02705   ss << this->name << ": " << this->value;
02706   value = ss.str();
02707   // Bouml preserved body end 000B3D71
02708 }
02709 
02710 void StandbyCurrent::getYouBotMailboxMsg(YouBotSlaveMailboxMsg& message) const
02711 {
02712   // Bouml preserved body begin 000B3DF1
02713   message.stctOutput.typeNumber = 7;  //StandbyCurrent
02714   message.stctOutput.value = value;
02715   // Bouml preserved body end 000B3DF1
02716 }
02717 
02718 void StandbyCurrent::setYouBotMailboxMsg(const YouBotSlaveMailboxMsg& message)
02719 {
02720   // Bouml preserved body begin 000B3E71
02721   this->value = message.stctInput.value;
02722   // Bouml preserved body end 000B3E71
02723 }
02724 
02725 StepInterpolationEnable::StepInterpolationEnable()
02726 {
02727   // Bouml preserved body begin 000B51F1
02728   this->name = "StepInterpolationEnable";
02729   this->parameterType = MOTOR_CONTOLLER_PARAMETER;
02730   // Bouml preserved body end 000B51F1
02731 }
02732 
02733 StepInterpolationEnable::~StepInterpolationEnable()
02734 {
02735   // Bouml preserved body begin 000B5271
02736   // Bouml preserved body end 000B5271
02737 }
02738 
02739 void StepInterpolationEnable::getParameter(bool& parameter) const
02740 {
02741   // Bouml preserved body begin 000B52F1
02742   parameter = this->value;
02743   // Bouml preserved body end 000B52F1
02744 }
02745 
02746 void StepInterpolationEnable::setParameter(const bool parameter)
02747 {
02748   // Bouml preserved body begin 000B5371
02749   this->value = parameter;
02750   // Bouml preserved body end 000B5371
02751 }
02752 
02753 void StepInterpolationEnable::toString(std::string& value) const
02754 {
02755   // Bouml preserved body begin 000B53F1
02756   std::stringstream ss;
02757   ss << this->name << ": " << this->value;
02758   value = ss.str();
02759   // Bouml preserved body end 000B53F1
02760 }
02761 
02762 void StepInterpolationEnable::getYouBotMailboxMsg(YouBotSlaveMailboxMsg& message) const
02763 {
02764   // Bouml preserved body begin 000B5471
02765   message.stctOutput.typeNumber = 160;  //StepInterpolationEnable
02766   message.stctOutput.value = value;
02767   // Bouml preserved body end 000B5471
02768 }
02769 
02770 void StepInterpolationEnable::setYouBotMailboxMsg(const YouBotSlaveMailboxMsg& message)
02771 {
02772   // Bouml preserved body begin 000B54F1
02773   this->value = message.stctInput.value;
02774   // Bouml preserved body end 000B54F1
02775 }
02776 
02777 StopOnStall::StopOnStall()
02778 {
02779   // Bouml preserved body begin 000BABF1
02780   this->name = "StopOnStall";
02781   this->parameterType = MOTOR_CONTOLLER_PARAMETER;
02782   // Bouml preserved body end 000BABF1
02783 }
02784 
02785 StopOnStall::~StopOnStall()
02786 {
02787   // Bouml preserved body begin 000BAC71
02788   // Bouml preserved body end 000BAC71
02789 }
02790 
02791 void StopOnStall::getParameter(bool& parameter) const
02792 {
02793   // Bouml preserved body begin 000BACF1
02794   parameter = this->value;
02795   // Bouml preserved body end 000BACF1
02796 }
02797 
02798 void StopOnStall::setParameter(const bool parameter)
02799 {
02800   // Bouml preserved body begin 000BAD71
02801   this->value = parameter;
02802   // Bouml preserved body end 000BAD71
02803 }
02804 
02805 void StopOnStall::toString(std::string& value) const
02806 {
02807   // Bouml preserved body begin 000BADF1
02808   std::stringstream ss;
02809   ss << this->name << ": " << this->value;
02810   value = ss.str();
02811   // Bouml preserved body end 000BADF1
02812 }
02813 
02814 void StopOnStall::getYouBotMailboxMsg(YouBotSlaveMailboxMsg& message) const
02815 {
02816   // Bouml preserved body begin 000BAE71
02817   message.stctOutput.typeNumber = 181;  //StopOnStall
02818   if (value)
02819     message.stctOutput.value = 1;
02820   else
02821     message.stctOutput.value = 0;
02822 
02823   // Bouml preserved body end 000BAE71
02824 }
02825 
02826 void StopOnStall::setYouBotMailboxMsg(const YouBotSlaveMailboxMsg& message)
02827 {
02828   // Bouml preserved body begin 000BAEF1
02829   this->value = message.stctInput.value;
02830   // Bouml preserved body end 000BAEF1
02831 }
02832 
02833 Vsense::Vsense()
02834 {
02835   // Bouml preserved body begin 000BA2F1
02836   this->name = "Vsense";
02837   this->lowerLimit = 0;
02838   this->upperLimit = 1;
02839   this->parameterType = MOTOR_CONTOLLER_PARAMETER;
02840   // Bouml preserved body end 000BA2F1
02841 }
02842 
02843 Vsense::~Vsense()
02844 {
02845   // Bouml preserved body begin 000BA371
02846   // Bouml preserved body end 000BA371
02847 }
02848 
02849 void Vsense::getParameter(unsigned int& parameter) const
02850 {
02851   // Bouml preserved body begin 000BA3F1
02852   parameter = this->value;
02853   // Bouml preserved body end 000BA3F1
02854 }
02855 
02856 void Vsense::setParameter(const unsigned int& parameter)
02857 {
02858   // Bouml preserved body begin 000BA471
02859   if (this->lowerLimit > parameter)
02860   {
02861     throw std::out_of_range("The parameter exceeds the lower limit");
02862   }
02863   if (this->upperLimit < parameter)
02864   {
02865     throw std::out_of_range("The parameter exceeds the upper limit");
02866   }
02867 
02868   this->value = parameter;
02869   // Bouml preserved body end 000BA471
02870 }
02871 
02872 void Vsense::toString(std::string& value) const
02873 {
02874   // Bouml preserved body begin 000BA4F1
02875   std::stringstream ss;
02876   ss << this->name << ": " << this->value;
02877   value = ss.str();
02878   // Bouml preserved body end 000BA4F1
02879 }
02880 
02881 void Vsense::getYouBotMailboxMsg(YouBotSlaveMailboxMsg& message) const
02882 {
02883   // Bouml preserved body begin 000BA571
02884   message.stctOutput.typeNumber = 179;  //Vsense
02885   message.stctOutput.value = value;
02886   // Bouml preserved body end 000BA571
02887 }
02888 
02889 void Vsense::setYouBotMailboxMsg(const YouBotSlaveMailboxMsg& message)
02890 {
02891   // Bouml preserved body begin 000BA5F1
02892   this->value = message.stctInput.value;
02893   // Bouml preserved body end 000BA5F1
02894 }
02895 
02896 ActualAcceleration::ActualAcceleration()
02897 {
02898   // Bouml preserved body begin 0010BBF1
02899   this->name = "ActualAcceleration";
02900   this->lowerLimit = 0;
02901   this->upperLimit = 2047;
02902   this->parameterType = MOTOR_CONTOLLER_PARAMETER;
02903   // Bouml preserved body end 0010BBF1
02904 }
02905 
02906 ActualAcceleration::~ActualAcceleration()
02907 {
02908   // Bouml preserved body begin 0010BC71
02909   // Bouml preserved body end 0010BC71
02910 }
02911 
02912 void ActualAcceleration::getParameter(int& parameter) const
02913 {
02914   // Bouml preserved body begin 0010BCF1
02915   parameter = this->value;
02916   // Bouml preserved body end 0010BCF1
02917 }
02918 
02919 void ActualAcceleration::toString(std::string& value) const
02920 {
02921   // Bouml preserved body begin 0010BD71
02922   std::stringstream ss;
02923   ss << this->name << ": " << this->value;
02924   value = ss.str();
02925   // Bouml preserved body end 0010BD71
02926 }
02927 
02928 void ActualAcceleration::getYouBotMailboxMsg(YouBotSlaveMailboxMsg& message) const
02929 {
02930   // Bouml preserved body begin 0010BDF1
02931   message.stctOutput.typeNumber = 135;  //ActualAcceleration
02932   message.stctOutput.value = value;
02933   // Bouml preserved body end 0010BDF1
02934 }
02935 
02936 void ActualAcceleration::setYouBotMailboxMsg(const YouBotSlaveMailboxMsg& message)
02937 {
02938   // Bouml preserved body begin 0010BE71
02939   this->value = message.stctInput.value;
02940   // Bouml preserved body end 0010BE71
02941 }
02942 
02943 MinimumSpeed::MinimumSpeed()
02944 {
02945   // Bouml preserved body begin 00107B71
02946   this->name = "MinimumSpeed";
02947   this->lowerLimit = 0;
02948   this->upperLimit = 2047;
02949   this->parameterType = MOTOR_CONTOLLER_PARAMETER;
02950   // Bouml preserved body end 00107B71
02951 }
02952 
02953 MinimumSpeed::~MinimumSpeed()
02954 {
02955   // Bouml preserved body begin 00107BF1
02956   // Bouml preserved body end 00107BF1
02957 }
02958 
02959 void MinimumSpeed::getParameter(int& parameter) const
02960 {
02961   // Bouml preserved body begin 00107C71
02962   parameter = this->value;
02963   // Bouml preserved body end 00107C71
02964 }
02965 
02966 void MinimumSpeed::setParameter(const int parameter)
02967 {
02968   // Bouml preserved body begin 00107CF1
02969   if (this->lowerLimit > parameter)
02970   {
02971     throw std::out_of_range("The parameter exceeds the lower limit");
02972   }
02973   if (this->upperLimit < parameter)
02974   {
02975     throw std::out_of_range("The parameter exceeds the upper limit");
02976   }
02977 
02978   this->value = parameter;
02979   // Bouml preserved body end 00107CF1
02980 }
02981 
02982 void MinimumSpeed::toString(std::string& value) const
02983 {
02984   // Bouml preserved body begin 00107D71
02985   std::stringstream ss;
02986   ss << this->name << ": " << this->value;
02987   value = ss.str();
02988   // Bouml preserved body end 00107D71
02989 }
02990 
02991 void MinimumSpeed::getYouBotMailboxMsg(YouBotSlaveMailboxMsg& message) const
02992 {
02993   // Bouml preserved body begin 00107DF1
02994   message.stctOutput.typeNumber = 130;  //MinimumSpeed
02995   message.stctOutput.value = (uint32)value;
02996 
02997   // Bouml preserved body end 00107DF1
02998 }
02999 
03000 void MinimumSpeed::setYouBotMailboxMsg(const YouBotSlaveMailboxMsg& message)
03001 {
03002   // Bouml preserved body begin 00107E71
03003   this->value = (int32)message.stctInput.value;
03004   // Bouml preserved body end 00107E71
03005 }
03006 
03007 } // namespace youbot


youbot_driver
Author(s): Jan Paulus
autogenerated on Mon Oct 6 2014 09:08:02