updated slave to match master bldc and type def

This commit is contained in:
Nicolas Trimborn
2021-08-30 12:34:01 +02:00
parent 02162af995
commit bb7413ec60
13 changed files with 115 additions and 240 deletions

View File

@@ -78,7 +78,7 @@ int8_t TIMER_0_init()
hri_tccount8_write_CC_reg(TC0, 0, 0x75); /* Compare/Capture Value: 0x75 */
hri_tccount8_write_CC_reg(TC0, 1, 0xb4); /* Compare/Capture Value: 0xb4 */
hri_tccount8_write_CC_reg(TC0, 1, 0xc4); /* Compare/Capture Value: 0xb4 */
// hri_tccount8_write_COUNT_reg(TC0,0x0); /* Counter Value: 0x0 */

View File

@@ -91,11 +91,11 @@ void APPLICATION_StateMachine(void)
case SYSTEM_INIT:
/* Toggle driver reset Latch */
gpio_set_pin_level(M1_RST, true);
delay_us(100);
delay_ms(1);
gpio_set_pin_level(M1_RST, false);
delay_us(100);
delay_ms(1);
gpio_set_pin_level(M2_RST, true);
delay_us(100);
delay_ms(1);
gpio_set_pin_level(M2_RST, false);
/* Update State Variables */
applicationStatus.previousstate = applicationStatus.currentstate;

View File

@@ -156,7 +156,7 @@ const static BLDCMotor_param_t FH_22mm24BXTR = {
//.controller_param.Pid_Speed.Ki = 0.0000001f,
.controller_param.Pi_Pos.Kp = 50.0f,
.controller_param.Pi_Pos.Ki = 0.0f,
.motor_MaxPWM = 800.0,
.motor_MaxPWM = 600.0,
};