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
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 }