This part is for members
Membership opens soon. Leave your email and we'll tell you the day it does. Founding members get the launch price.
Keep watching the free partsWhen the next point is late
In 26a every point came on time; this one is what happens when it doesn't. One mechanism: on every update flag CspTrajectoryPlanningHandle sets the planner's clock x0_sum to zero (app_trajectory.c:121), which assumes the point came exactly one ip after the last one. Running example: 26a's move and the point 131,071 due at 150 ms. On EtherCAT the flag comes from the board's own sync lock: board.c's position-loop interrupt, bsp_adaptive_pl_period_config and the EXTI callback are cut out unchanged and compiled into the bench; after 50 SYNC0 pulses in a row it locks at 10 ticks a period and takes the point on tick 7, the tick the frame came after (ticks 1497, 1507, 1517), counting ticks without looking at the data. On CANopen the bench raises the flag as drv_can_app.c does on a SYNC frame. Eight stops: who says a point arrived; the clock's rule (zeroed, carrying on along stretch 1 from 1 to 2 ms, slot 3 from 2 ip on); 0.3 ms late (back 262, then forward 525); a missing point (back 1179, a millisecond replayed, 1415 rpm to catch up; with no SYNC again, +1311 to slot 3 at tick 1511, one tick late because of float32); the same point again (an EtherCAT frame lost, the lock raises the flag anyway, the old 129,760 repeated, makima dips between two equal points and the command runs backwards at −450 rpm; with the master gone it stops dead in under 1 ms, 6.5 A, overshooting 1108); one SYNC0 pulse missing (the lock lets go and needs 50 pulses again: 52 ms without a flag, then up to 9289 counts a tick and 3585 rpm, with the following error over the window for 15.5 ms, under the 20 ms it waits); the wrong 0x60C2 (a −2359 sawtooth and 1200 rpm of feedforward, or +722 and 300 rpm); why reset to zero (a patched-copy experiment: keeping the late time removes the jumps, but the feedforward, always from stretch 0's formula, swings, and a wrong 0x60C2 runs away to 102,061). Your turn: 0.7 ms late gives 786 back and 1049 forward.