mozaSdk
ETSpring.h
1 
2 #pragma once
3 
4 #include "Effect.h"
5 
6 namespace RS21::direct_input {
7 
15 class ETSpring: public Effect
16 {
17 public:
18  ETSpring(Device* device);
19 
20  //查看参数
30  long offset();
40  long positiveCoefficient();
53  long negativeCoefficient();
64  unsigned long positiveSaturation();
78  unsigned long negativeSaturation();
89  long deadBand();
90 
100  void setOffset(long offset);
110  void setPositiveCoefficient(long newPositiveCoefficient);
123  void setNegativeCoefficient(long newNegativeCoefficient);
134  void setPositiveSaturation(unsigned long newPositiveSaturation);
148  void setNegativeSaturation(unsigned long newNegativeSaturation);
159  void setDeadBand(long newDeadBand);
160 protected:
161  virtual void downloadToDevice(LPDIRECTINPUTDEVICE8 device) override;
162  DICONDITION m_diPeriodic;
163 
164 };
165 
166 }//rs21::direct_input
long negativeCoefficient()
Obtain Coefficient constant on the negative side of the offset
Centripetal force effect class
Definition: ETSpring.h:15
long offset()
Obtain offset for the condition
void setNegativeCoefficient(long newNegativeCoefficient)
set Coefficient constant on the negative side of the offset
void setPositiveSaturation(unsigned long newPositiveSaturation)
set maximum force output on the positive side of the offset
DICONDITION m_diPeriodic
Definition: ETSpring.h:162
Effect Abstract Class
Definition: Effect.h:21
void setNegativeSaturation(unsigned long newNegativeSaturation)
set maximum force output on the negative side of the offset
void setDeadBand(long newDeadBand)
set region around lOffset in which the condition is not active
void setPositiveCoefficient(long newPositiveCoefficient)
set coefficient constant on the positive side of the offset
long deadBand()
Obtain region around lOffset in which the condition is not active
virtual void downloadToDevice(LPDIRECTINPUTDEVICE8 device) override
void setOffset(long offset)
set offset for the condition
unsigned long negativeSaturation()
Obtain maximum force output on the negative side of the offset
Definition: DeviceException.h:7
unsigned long positiveSaturation()
Obtain maximum force output on the positive side of the offset
long positiveCoefficient()
Obtain coefficient constant on the positive side of the offset