![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
2011
Diff: setting.h
- Revision:
- 23:59218d4a256d
- Parent:
- 22:966b35691d69
- Child:
- 26:8317d883d4f2
--- a/setting.h Mon Sep 09 10:41:16 2019 +0000 +++ b/setting.h Tue Sep 10 09:38:26 2019 +0000 @@ -9,15 +9,16 @@ //#define PWM_ARR 0x1194 // loop 20k, pwm 10k #define PWM_ARR 0x2328 // loop 10k, pwm 5k #define TMR3_COUNT 0x4650 // loop 5k -//#define TMR5_COUNT 0x2710 // loop 500hz with prescale 18 -#define TMR5_COUNT 0x4650 +#define TMR2_COUNT 0x2710 // loop 500hz with prescale 18 #define FREQ_500 500.0 +#define FREQ_1k 1000.0 #define FREQ_5k 5000.0 #define FREQ_10k 10000.0 #define FREQ_20k 20000.0 #define FREQ_40k 40000.0 #define DT_500 0.002 +#define DT_1k 0.0005 #define DT_5k 0.0002 #define DT_10k 0.0001 #define DT_20k 0.00005 @@ -385,4 +386,9 @@ extern double CUR_CURRENT; extern double u_CUR[3]; -//extern int Ref_Valve_Pos_FF_CAN; \ No newline at end of file +//extern int Ref_Valve_Pos_FF_CAN; + +//extern int h1, h2, h3, h4, h5, h6; + + +