00001 #ifndef SIMPLEMOTOR_H 00002 #define SIMPLEMOTOR_H 00003 00004 #include "Component/ModelComponent.H" 00005 #include "Component/ModelParam.H" 00006 #include "Component/ModelOptionDef.H" 00007 #include "Devices/SerialAdvanced.H" 00008 00009 class SimpleMotor : public ModelComponent { 00010 public: 00011 SimpleMotor(OptionManager& mgr, const std::string& descrName = "SimpleMotor", 00012 const std::string& tagName = "SimpleMotor"); 00013 00014 ~SimpleMotor(); 00015 00016 //Set a motor speed and direction, -100 <= speed <= 100 00017 void setMotor(int speed); 00018 00019 private: 00020 nub::soft_ref<SerialAdvanced> itsSerial; 00021 }; 00022 00023 #endif