zebra
/
ZebraJointController
zebra joint controller firmware (originally from MIT HKC motor controller by benkatz)
Embed:
(wiki syntax)
Show/hide line numbers
hw_config.h
00001 #ifndef HW_CONFIG_H 00002 #define HW_CONFIG_H 00003 00004 #define PIN_U PA_10 00005 #define PIN_V PA_9 00006 #define PIN_W PA_8 00007 #define ENABLE_PIN PA_11 // Enable gate drive pin 00008 #define LED PC_5 // LED Pin 00009 #define I_SCALE 0.02014160156f // Amps per A/D Count 00010 #define V_SCALE 0.012890625f // Bus volts per A/D Count 00011 #define DTC_MAX 0.94f // Max phase duty cycle 00012 #define DTC_MIN 0.0f // Min phase duty cycle 00013 #define PWM_ARR 0x8CA /// timer autoreload value 00014 00015 static float inverter_tab[16] = {2.5f, 2.4f, 2.3f, 2.2f, 2.1f, 2.0f, 1.9f, 1.8f, 1.7f, 1.6f, 1.59f, 1.58f, 1.57f, 1.56f, 1.55f, 1.5f}; 00016 00017 00018 #endif
Generated on Sun Jul 17 2022 04:31:50 by 1.7.2