That's roughly the idea, at least for arc blending. The geometry is set when the new segment is added to the queue. The TP creates a new position in 2 main steps:
1. Plan motion in 1 dimension (distance along the motion segments). This is done in tpCalculateTrapezoidalAccel and tpUpdateDistFromAccel. These functions (among other things) update the "progress" and "currentvel" fields of the current segment. 2. Convert from path length to a 9D position using the geometry defined for the current segment. The poorly-named tcUpdateCycle handles this by calculating the 9D position before and after the last update, and adding the difference to the current TP position. We calculate the position difference (rather than just setting the position directly) because of parabolic blending, where two segments can be active. In this case, the actual displacement is the sum of the two displacements. -Rob On Sun, Nov 22, 2015, 12:39 AM Jullian <[email protected]> wrote: > To my comprehension, if there's no feedback in TP, i think that when the > TCs are finalized, their trajectorys are also determined , although we > calculate the current position every TP cycle time of 1ms. > > Am i right? > > Can Rob or any others familiar with this reply? > > Thanks, > Jullian. > > On Thu, Nov 19, 2015 at 8:38 AM, Jullian <[email protected]> wrote: > > > Thanks,Eric, > > > > What i mean using feedback is also including the current position. > > Where or how is the current position handled in TP? > > > > On Wed, Nov 18, 2015 at 9:18 PM, Eric Keller <[email protected]> wrote: > > > >> feedback isn't handled in the TP, but it needs to know the current > >> position so that it can plan where to go. > >> > >> On Wed, Nov 18, 2015 at 3:53 AM, Jullian <[email protected]> wrote: > >> > Hi, > >> > Recently i'm reading the code in emcmotcontroller() especially the > TP. > >> > There's always a doubt puzzling me that: > >> > > >> > is the feedback processed in tpRunCycle() ? or it's not ? > >> > > >> > or when a TC is finalized, the TC's trajectory is also finalized ? if > >> so, > >> > why is it done to the TP every 1ms? > >> > > >> > if the feedback is not processed in TP,where is it handled in > >> > emcmotcontroller()? related to "pos_fb"? > >> > > >> > Thanks. > >> > Julian. > >> > > >> > ------------------------------------------------------------------------------ > >> > _______________________________________________ > >> > Emc-developers mailing list > >> > [email protected] > >> > https://lists.sourceforge.net/lists/listinfo/emc-developers > >> > >> > >> > ------------------------------------------------------------------------------ > >> _______________________________________________ > >> Emc-developers mailing list > >> [email protected] > >> https://lists.sourceforge.net/lists/listinfo/emc-developers > >> > > > > > > ------------------------------------------------------------------------------ > _______________________________________________ > Emc-developers mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/emc-developers > ------------------------------------------------------------------------------ _______________________________________________ Emc-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-developers
