Lines Matching refs:segmentIdx
298 void constructActiveDefaults(std::ostringstream &pwleBuilder, const int &segmentIdx) { in constructActiveDefaults() argument
299 pwleBuilder << ",C" << segmentIdx << ":1"; in constructActiveDefaults()
300 pwleBuilder << ",B" << segmentIdx << ":0"; in constructActiveDefaults()
301 pwleBuilder << ",AR" << segmentIdx << ":0"; in constructActiveDefaults()
302 pwleBuilder << ",V" << segmentIdx << ":0"; in constructActiveDefaults()
305 void constructActiveSegment(std::ostringstream &pwleBuilder, const int &segmentIdx, int duration, in constructActiveSegment() argument
307 pwleBuilder << ",T" << segmentIdx << ":" << duration; in constructActiveSegment()
308 pwleBuilder << ",L" << segmentIdx << ":" << amplitude; in constructActiveSegment()
309 pwleBuilder << ",F" << segmentIdx << ":" << frequency; in constructActiveSegment()
310 constructActiveDefaults(pwleBuilder, segmentIdx); in constructActiveSegment()
313 void constructBrakingSegment(std::ostringstream &pwleBuilder, const int &segmentIdx, int duration, in constructBrakingSegment() argument
315 pwleBuilder << ",T" << segmentIdx << ":" << duration; in constructBrakingSegment()
316 pwleBuilder << ",L" << segmentIdx << ":" << 0; in constructBrakingSegment()
317 pwleBuilder << ",F" << segmentIdx << ":" << 0; in constructBrakingSegment()
318 pwleBuilder << ",C" << segmentIdx << ":0"; in constructBrakingSegment()
319 pwleBuilder << ",B" << segmentIdx << ":" in constructBrakingSegment()
321 pwleBuilder << ",AR" << segmentIdx << ":0"; in constructBrakingSegment()
322 pwleBuilder << ",V" << segmentIdx << ":0"; in constructBrakingSegment()
340 int segmentIdx = 0; in composePwle() local
367 constructActiveSegment(pwleBuilder, segmentIdx, 0, active.startAmplitude, in composePwle()
369 incrementIndex(segmentIdx); in composePwle()
372 constructActiveSegment(pwleBuilder, segmentIdx, active.duration, in composePwle()
374 incrementIndex(segmentIdx); in composePwle()
390 constructBrakingSegment(pwleBuilder, segmentIdx, 0, braking.braking); in composePwle()
391 incrementIndex(segmentIdx); in composePwle()
393 constructBrakingSegment(pwleBuilder, segmentIdx, braking.duration, braking.braking); in composePwle()
394 incrementIndex(segmentIdx); in composePwle()