NULL
This commit is contained in:
40
user/Compute/AdjustOffset.h
Executable file
40
user/Compute/AdjustOffset.h
Executable file
@@ -0,0 +1,40 @@
|
||||
/********************************************************************************************************
|
||||
**-------------------------------------------------------------------------------------------------------
|
||||
********************************************************************************************************/
|
||||
#ifndef __AdjustOffset_h__
|
||||
#define __AdjustOffset_h__
|
||||
|
||||
//******************************************************************************
|
||||
// parameter limit
|
||||
#define ATYPE_WIPER_MIN 0
|
||||
#define ATYPE_WIPER_MAX POT_MAX
|
||||
#define ATYPE_WIPER_DEFAULT POT_DEFAULT
|
||||
|
||||
#define CTYPE_WIPER_MIN 0
|
||||
#define CTYPE_WIPER_MAX POT_MAX
|
||||
#define CTYPE_WIPER_DEFAULT POT_DEFAULT
|
||||
|
||||
#define ATYPE_RC_MIN 0
|
||||
#define ATYPE_RC_MAX 1000
|
||||
#define ATYPE_RC_DEFAULT 430
|
||||
|
||||
#define ATYPE_RA 5100 //(5100-510.0)
|
||||
#define ATYPE_RB VHH_R56
|
||||
#define ATYPE_ADJUST_RES 1000 //(100.0)
|
||||
#define ATYPE_PER_POT (float)((float)ATYPE_ADJUST_RES/(float)256)
|
||||
//******************************************************************************
|
||||
|
||||
extern u16 ATypeWiper, CTypeWiper, MaxCTypeWiper, MinCTypeWiper, ATypeRC, actualRC, RRRHRatio;
|
||||
extern u16 OffsetHigh, OffsetLow, MEMSRatio;
|
||||
//------------------------------------------------------------------------------
|
||||
void ComputRRRHRatio(void);
|
||||
void AdjustOffsetInit(void);
|
||||
signed int ComputeOffsetDrift(void);
|
||||
signed int ComputeOffsetCorrectValue(unsigned int offsetHigh, unsigned int offsetLow);
|
||||
void ComputeOffsetDriftInit(void);
|
||||
void AutoAdjustCTypeWiper(void);
|
||||
void AutoComputeATypeRC(void);
|
||||
|
||||
//******************************************************************************
|
||||
#endif
|
||||
//******************************************************************************
|
||||
Reference in New Issue
Block a user