メインページ | ネームスペース一覧 | クラス階層 | 構成 | Directories | ファイル一覧 | ネームスペースメンバ | 構成メンバ | ファイルメンバ | 関連ページ

HISpidarMotorAngle.h

00001 #include "HISpidarMotor.h"
00002 namespace Spr {
00003 
00004 class SPR_DLL HISpidarMotorAngle : public HISpidarMotor
00005     {
00006 public:
00007     /// 糸の角度 / パルス数
00008     float anglePerPulse;
00009     /// 角度用のエンコーダカウンタ
00010     DVCounterBase* counter_angle;
00011     /// 角度
00012     float ang;
00013 
00014 public:
00015     /// 
00016     HISpidarMotorAngle();
00017     ///     virtual ~HISpidarMotorAngle(){}
00018 
00019 
00020     /// 現在の糸の角度の設定
00021     void Angle(float a){
00022         if (counter_angle)
00023             counter_angle -> Count(long(1 / anglePerPulse));
00024     }
00025 
00026     ///現在の糸の角度
00027     float Angle(){
00028         if (counter_angle) return
00029             counter_angle -> Count() * anglePerPulse;
00030         else return 0;
00031     }
00032 };
00033 }

Springheadに対してSun Apr 16 01:57:53 2006に生成されました。  doxygen 1.4.1