-
Notifications
You must be signed in to change notification settings - Fork 11
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
Prestonr reverting platinum prof cmds to gold #140
Prestonr reverting platinum prof cmds to gold #140
Conversation
Needed to switch to normal jsd
Putting back in jsd inspect context call
src/jsd/platinum_actuator.cc
Outdated
jsd_cmd.profile_decel = | ||
EuToCnts(last_cmd_.actuator_prof_vel_cmd.profile_accel); | ||
} | ||
double pos_eu, vel; |
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.
Nit, initialize variables to some default value. Don't rely on fastcat_trap_update_vel to initialize the values for you
double pos_eu = 0.0;
double vel = 0.0;
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.
@kwehage This is how it was done in multiple locations previously. I agree with this nit and have changed it in multiple locations :)
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.
Other than the minor nit, this looks good to me.
Modified the profile commands in platinum to mimic the way the gold driver performs it. This means it sends CSP/CSV/CST commands based on a software-generated trapezoidal trajectory.