Mini Cheetah Actuator Branch Superseded by: https://github.com/bgkatz/motorcontrol
Dependencies: mbed-dev-f303 FastPWM3
Superseded by: https://github.com/bgkatz/motorcontrol
Config/hw_config.h
- Committer:
- benkatz
- Date:
- 2019-10-10
- Revision:
- 56:fe5056ac6740
- Parent:
- 55:c4c9fec8539c
File content as of revision 56:fe5056ac6740:
#ifndef HW_CONFIG_H #define HW_CONFIG_H #define PIN_U PA_10 #define PIN_V PA_9 #define PIN_W PA_8 #define ENABLE_PIN PA_11 // Enable gate drive pin #define LED PC_5 // LED Pin #define I_SCALE 0.02014160156f // Amps per A/D Count #define V_SCALE 0.012890625f // Bus volts per A/D Count #define DTC_MAX 0.94f // Max phase duty cycle #define DTC_MIN 0.0f // Min phase duty cycle #define PWM_ARR 0x8CA /// timer autoreload value #define DTC_COMP .000f /// deadtime compensation (100 ns / 25 us) #endif