|
|
@ -122,6 +122,7 @@ void umain() { |
|
|
|
input[6].initAsInput(ARM_SENSOR7_GPIO, ZGPIO::kMode_nopull, ZGPIO::kIRQ_noIrq, false); |
|
|
|
input[7].initAsInput(ARM_SENSOR8_GPIO, ZGPIO::kMode_nopull, ZGPIO::kIRQ_noIrq, false); |
|
|
|
|
|
|
|
#if 0
|
|
|
|
{ |
|
|
|
xyRobotCtrlModule.initialize(&motora, &motorb, &input[6], &input[7], 1.0f); |
|
|
|
XYRobotCtrlModule::run_param_t param; |
|
|
@ -151,7 +152,7 @@ void umain() { |
|
|
|
stepMotorCtrlModule.initialize(1, &motora, &input[6], NULL); |
|
|
|
zcanStepMotorCtrlModule.initialize(&zcanCmder, 1, &stepMotorCtrlModule); |
|
|
|
} |
|
|
|
|
|
|
|
#endif
|
|
|
|
extern DMA_HandleTypeDef hdma_usart2_rx; |
|
|
|
extern DMA_HandleTypeDef hdma_usart2_tx; |
|
|
|
|
|
|
|