Skip to content

Error of PositionThirdOrderStep2::time_acc0_acc1 #235

@Ydaos

Description

@Ydaos

Hello,
When a0 = af = 0, the formula for calculating 't2' is incorrect

const double jf = h2 / h1;
profile.t[0] = aMax / jf;
//profile.t[1] = (-2 * aMax * h1 + aMin * aMin * g2) / h2;
profile.t[1] = (-2 * aMax * h1 + aMin * aMin * g2 + aMax * aMax * (aMin * tf * tf - 2 * vf * tf + 2 * pd)) / h2;
profile.t[2] = profile.t[0];
profile.t[3] = 0;
profile.t[4] = -aMin / jf;
profile.t[5] = tf - (2 * profile.t[0] + profile.t[1] + 2 * profile.t[4]);
profile.t[6] = profile.t[4];

And I can't understand why comment code 'Profile UDDU, Solution 1'. Does this mean when (a0 != 0 || af != 0), the true profile is UDUD ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions