Skip to content

George's Submission#4

Open
GeorgeBerdovskiy wants to merge 2 commits intojishnusen:masterfrom
GeorgeBerdovskiy:first-submission
Open

George's Submission#4
GeorgeBerdovskiy wants to merge 2 commits intojishnusen:masterfrom
GeorgeBerdovskiy:first-submission

Conversation

@GeorgeBerdovskiy
Copy link

I tried to understand this problem and the calculations involved the best I could, but I'm still not quite clear on some concepts. If anything seems wrong in my code, or the calculations are incorrectly used, please feel free to tell me. Thank you!

d_constant_velocity = p_goal - d_accelerating - d_decelerating;
t_constant_velocity = d_constant_velocity / v_max;

t_total = t_accelerating + t_constant_velocity + t_decelerating;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What happens if there isn't time to reach the max velocity before reaching the goal?

const double Profile::GetTime() {
return 0.0;
// NOTE - This is a very rough draft, and not a finished product. These are just some of the calculations I will be using
const double Profile::GetTime(ProfilePoint current, ProfilePoint goal, bool use_max_velocity) {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should just use the member variables

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