2011

Dependencies:   mbed FastPWM

Revision:
19:23b7c1ad8683
Parent:
18:b8adf1582ea3
Child:
20:806196fda269
diff -r b8adf1582ea3 -r 23b7c1ad8683 setting.h
--- a/setting.h	Wed Sep 04 11:02:57 2019 +0000
+++ b/setting.h	Mon Sep 09 06:29:56 2019 +0000
@@ -6,8 +6,8 @@
 #define PIN_W       PB_6
 //#define PWM_ARR 0x465         // loop 80k, pwm 40k 
 //#define PWM_ARR     0x8CA       // loop 40k, pwm 20k
-#define PWM_ARR     0x1194      // loop 20k, pwm 10k
-//#define PWM_ARR     0x2328    // loop 10k, pwm 5k
+//#define PWM_ARR     0x1194      // loop 20k, pwm 10k
+#define PWM_ARR     0x2328    // loop 10k, pwm 5k
 #define TMR3_COUNT  0x4650      // loop 5k
 
 #define FREQ_5k     5000.0
@@ -19,6 +19,23 @@
 #define DT_20k      0.00005
 #define DT_40k      0.000025
 
+//extern int CID_RX_CMD;
+//extern int CID_RX_REF_POSITION;
+//extern int CID_RX_REF_TORQUE;
+//extern int CID_RX_REF_PRES_DIFF;
+//extern int CID_RX_REF_VOUT;
+//extern int CID_RX_REF_VALVE_POSITION;
+//extern int CID_RX_REF_CURRENT;
+//
+//extern int CID_TX_INFO;
+//extern int CID_TX_POSITION;
+//extern int CID_TX_TORQUE;
+//extern int CID_TX_PRES;
+//extern int CID_TX_VOUT;
+//extern int CID_TX_VALVE_POSITION;
+
+
+
 extern DigitalOut check;
 extern DigitalOut check_2;
 extern AnalogOut dac_1;
@@ -286,13 +303,12 @@
 extern int VALVE_POS_TMP;
 extern int JOINT_VEL_TMP;
 extern int DDV_POS_AVG ;
-extern int VALVE_POS_AVG[100];
+extern int VALVE_POS_AVG[50];
 extern int VALVE_POS_AVG_OLD;
 extern int data_num;
 extern int ID_index;
 extern int DZ_index;
-extern int ID_index_array[100];
-extern int FR_index_array[100];
+extern int ID_index_array[50];
 extern int first_check;
 extern double init_time;
 extern int VEL_POINT;
@@ -306,7 +322,8 @@
 extern int one_period_end;
 extern double Ref_Vel_Test;
 extern long TMR2_FOR_SLOW_LOGGING;
-extern int velcount;
+//extern int velcount;
+extern int Ref_Valve_Pos_FF_CAN;
 extern char max_check;
 extern char min_check; 
 
@@ -363,3 +380,5 @@
 extern int TMR3_COUNT_IREF;
 extern double CUR_CURRENT;
 extern double u_CUR[3];
+
+//extern int Ref_Valve_Pos_FF_CAN;
\ No newline at end of file