-
Notifications
You must be signed in to change notification settings - Fork 14
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
Add parameters to specify maximum allowd time jump #202
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -940,6 +940,36 @@ int set_paramptr(FILE* paramfile) | |||||
g_P_changed[YP_PARAM_TORQUE_UNIT][j] = ischanged_p(YP_PARAM_TORQUE_FINENESS, j); | ||||||
} | ||||||
|
||||||
if (g_P_set[YP_PARAM_MAX_TIME_JUMP][0]) | ||||||
{ | ||||||
if (g_P_set[YP_PARAM_MAX_TIME_JUMP][0] <= 0) | ||||||
{ | ||||||
yprintf(OUTPUT_LV_ERROR, "ERROR: MAX_TIME_JUMP must be > 0.0.\n"); | ||||||
param_error = 1; | ||||||
} | ||||||
} | ||||||
else | ||||||
{ | ||||||
g_P[YP_PARAM_MAX_TIME_JUMP][0] = g_P[YP_PARAM_CYCLE][0]; | ||||||
} | ||||||
if (g_P_set[YP_PARAM_MAX_TIME_JUMP_NEG][0]) | ||||||
{ | ||||||
if (g_P_set[YP_PARAM_MAX_TIME_JUMP_NEG][0] <= 0) | ||||||
{ | ||||||
yprintf(OUTPUT_LV_ERROR, "ERROR: -MAX_TIME_JUMP must be > 0.0.\n"); | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I understand now. |
||||||
param_error = 1; | ||||||
} | ||||||
} | ||||||
else | ||||||
{ | ||||||
g_P[YP_PARAM_MAX_TIME_JUMP_NEG][j] = g_P[YP_PARAM_CYCLE][j]; | ||||||
} | ||||||
|
||||||
if (param_error) | ||||||
{ | ||||||
return 0; | ||||||
} | ||||||
|
||||||
// パラメータの指定によって自動的に求まるパラメータの計算 | ||||||
calc_param_inertia2ff(); | ||||||
|
||||||
|
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.