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

Prestonr reverting platinum prof cmds to gold #140

Merged
merged 10 commits into from
Oct 3, 2024

Conversation

preston-rogers
Copy link
Contributor

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.

preston-rogers and others added 3 commits September 13, 2024 15:34
Needed to switch to normal jsd
Putting back in jsd inspect context call
jsd_cmd.profile_decel =
EuToCnts(last_cmd_.actuator_prof_vel_cmd.profile_accel);
}
double pos_eu, vel;
Copy link
Collaborator

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;

Copy link
Contributor Author

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 :)

Copy link
Collaborator

@kwehage kwehage left a 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.

@preston-rogers preston-rogers merged commit e4ddfc8 into master Oct 3, 2024
@preston-rogers preston-rogers deleted the prestonr-reverting-platinum-prof-cmds-to-gold branch October 3, 2024 18:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants