-
Notifications
You must be signed in to change notification settings - Fork 5
Fix embedded binary parameter loading #40
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
Conversation
tfrog-motordriver/main.c
Outdated
printf("enc_rev: %d, %d\n\r", motor_param[0].enc_rev, motor_param[1].enc_rev); | ||
printf("enc_denominator: %d, %d\n\r", motor_param[0].enc_denominator, motor_param[1].enc_denominator); | ||
printf("enc_rev_raw: %d, %d\n\r", motor_param[0].enc_rev_raw, motor_param[1].enc_rev_raw); | ||
AT91C_BASE_RSTC->RSTC_RCR = 0xA5000000 | AT91C_RSTC_EXTRST | AT91C_RSTC_PROCRST | AT91C_RSTC_PERRST; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
need parameter version check. otherwise, endless reset loop occurs.
Before adding a new field.
After adding the char field at the end (deafult value 0xAA).
Size is calculated correctly even if the size() is not changed due to the trailing padding.
|
@DaikiMaekawa please take a look. sorry, this will make conflicts with your PR. |
fix #42