Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AMC-BLDC: use HAsQuadEnc flag in motor configuration #9

Merged
merged 1 commit into from
Feb 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified boards/amcbldc/supervisor/SupervisorFSM_RX.slx
Binary file not shown.
2 changes: 1 addition & 1 deletion boards/amcbldc/supervisor/custom_code/rtw_motor_config.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
//put here specific include files
#endif /* STM32HAL_BOARD_AMCBLDC */

void rtw_configMotor(int16_t rotor_enc_resolution, uint8_t pole_pairs,
void rtw_configMotor(uint8_t has_quad_enc, int16_t rotor_enc_resolution, uint8_t pole_pairs,
uint8_t has_hall_sens, uint8_t swapBC,
uint16_t hall_sens_offset)
{
Expand Down
2 changes: 1 addition & 1 deletion boards/amcbldc/supervisor/custom_code/rtw_motor_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
/*inizialize the motor encoder using the data read in the configuration files (yarprobotinterface)
swapBC = 1
hall_sens_offset = 120 *65536/360 ; icubDeg*/
void rtw_configMotor(int16_t rotor_enc_resolution, uint8_t pole_pairs,
void rtw_configMotor(uint8_t has_quad_enc, int16_t rotor_enc_resolution, uint8_t pole_pairs,
uint8_t has_hall_sens, uint8_t swapBC,
uint16_t hall_sens_offset);

Expand Down