mozaSdk
ETInertia.h
1 
2 #pragma once
3 #include "Effect.h"
4 
5 
6 namespace RS21::direct_input {
7 
15 class ETInertia: public Effect
16 {
17 public:
18  ETInertia(Device* device);
19  //查看参数
29  long offset();
39  long positiveCoefficient();
52  long negativeCoefficient();
63  unsigned long positiveSaturation();
77  unsigned long negativeSaturation();
88  long deadBand();
89 
99  void setOffset(long offset);
109  void setPositiveCoefficient(long newPositiveCoefficient);
122  void setNegativeCoefficient(long newNegativeCoefficient);
133  void setPositiveSaturation(unsigned long newPositiveSaturation);
147  void setNegativeSaturation(unsigned long newNegativeSaturation);
158  void setDeadBand(long newDeadBand);
159 protected:
160  virtual void downloadToDevice(LPDIRECTINPUTDEVICE8 device) override;
161  DICONDITION m_diPeriodic;
162 };
163 }//rs21::direct_input
164 
Inertia effect class
Definition: ETInertia.h:15
long offset()
Obtain offset for the condition
long negativeCoefficient()
Obtain Coefficient constant on the negative side of the offset
unsigned long positiveSaturation()
Obtain maximum force output on the positive side of the offset
void setOffset(long offset)
set offset for the condition
Effect Abstract Class
Definition: Effect.h:21
void setNegativeSaturation(unsigned long newNegativeSaturation)
set maximum force output on the negative side of the offset
long positiveCoefficient()
Obtain coefficient constant on the positive side of the offset
virtual void downloadToDevice(LPDIRECTINPUTDEVICE8 device) override
unsigned long negativeSaturation()
Obtain maximum force output on the negative side of the offset
DICONDITION m_diPeriodic
Definition: ETInertia.h:161
long deadBand()
Obtain region around lOffset in which the condition is not active
void setPositiveSaturation(unsigned long newPositiveSaturation)
set maximum force output on the positive side of the offset
void setDeadBand(long newDeadBand)
set region around lOffset in which the condition is not active
Definition: DeviceException.h:7
void setNegativeCoefficient(long newNegativeCoefficient)
set Coefficient constant on the negative side of the offset
void setPositiveCoefficient(long newPositiveCoefficient)
set coefficient constant on the positive side of the offset