001/*
002 * Copyright (C) Cross The Road Electronics.  All rights reserved.
003 * License information can be found in CTRE_LICENSE.txt
004 * For support and suggestions contact support@ctr-electronics.com or file
005 * an issue tracker at https://github.com/CrossTheRoadElec/Phoenix-Releases
006 */
007package com.ctre.phoenix6.hardware.traits;
008
009import com.ctre.phoenix6.StatusCode;
010import com.ctre.phoenix6.controls.*;
011import com.ctre.phoenix6.controls.compound.*;
012
013/**
014 * Contains all control functions available for devices that support Talon
015 * controls.
016 */
017public interface HasTalonControls extends CommonDevice
018{
019    
020    
021    /**
022     * Request a specified motor duty cycle.
023     * <p>
024     * This control mode will output a proportion of the supplied voltage
025     * which is supplied by the user.
026     * <ul>
027     *   <li> <b>DutyCycleOut Parameters:</b> 
028     *   <ul>
029     *     <li> <b>Output:</b> Proportion of supply voltage to apply in fractional
030     *                         units between -1 and +1
031     *     <li> <b>EnableFOC:</b> Set to true to use FOC commutation (requires
032     *                            Phoenix Pro), which increases peak power by ~15%
033     *                            on supported devices (see {@link SupportsFOC}).
034     *                            Set to false to use trapezoidal commutation.
035     *                            <p>
036     *                            FOC improves motor performance by leveraging
037     *                            torque (current) control.  However, this may be
038     *                            inconvenient for applications that require
039     *                            specifying duty cycle or voltage.  CTR-Electronics
040     *                            has developed a hybrid method that combines the
041     *                            performances gains of FOC while still allowing
042     *                            applications to provide duty cycle or voltage
043     *                            demand.  This not to be confused with simple
044     *                            sinusoidal control or phase voltage control which
045     *                            lacks the performance gains.
046     *     <li> <b>OverrideBrakeDurNeutral:</b> Set to true to static-brake the
047     *                                          rotor when output is zero (or within
048     *                                          deadband).  Set to false to use the
049     *                                          NeutralMode configuration setting
050     *                                          (default). This flag exists to
051     *                                          provide the fundamental behavior of
052     *                                          this control when output is zero,
053     *                                          which is to provide 0V to the motor.
054     *     <li> <b>LimitForwardMotion:</b> Set to true to force forward limiting. 
055     *                                     This allows users to use other limit
056     *                                     switch sensors connected to robot
057     *                                     controller.  This also allows use of
058     *                                     active sensors that require external
059     *                                     power.
060     *     <li> <b>LimitReverseMotion:</b> Set to true to force reverse limiting. 
061     *                                     This allows users to use other limit
062     *                                     switch sensors connected to robot
063     *                                     controller.  This also allows use of
064     *                                     active sensors that require external
065     *                                     power.
066     *     <li> <b>IgnoreHardwareLimits:</b> Set to true to ignore hardware limit
067     *                                       switches and the LimitForwardMotion and
068     *                                       LimitReverseMotion parameters, instead
069     *                                       allowing motion.
070     *                                       <p>
071     *                                       This can be useful on mechanisms such
072     *                                       as an intake/feeder, where a limit
073     *                                       switch stops motion while intaking but
074     *                                       should be ignored when feeding to a
075     *                                       shooter.
076     *                                       <p>
077     *                                       The hardware limit faults and
078     *                                       Forward/ReverseLimit signals will still
079     *                                       report the values of the limit switches
080     *                                       regardless of this parameter.
081     *     <li> <b>IgnoreSoftwareLimits:</b> Set to true to ignore software limits,
082     *                                       instead allowing motion.
083     *                                       <p>
084     *                                       This can be useful when calibrating the
085     *                                       zero point of a mechanism such as an
086     *                                       elevator.
087     *                                       <p>
088     *                                       The software limit faults will still
089     *                                       report the values of the software
090     *                                       limits regardless of this parameter.
091     *     <li> <b>UseTimesync:</b> Set to true to delay applying this control
092     *                              request until a timesync boundary (requires
093     *                              Phoenix Pro and CANivore). This eliminates the
094     *                              impact of nondeterministic network delays in
095     *                              exchange for a larger but deterministic control
096     *                              latency.
097     *                              <p>
098     *                              This requires setting the ControlTimesyncFreqHz
099     *                              config in MotorOutputConfigs. Additionally, when
100     *                              this is enabled, the UpdateFreqHz of this
101     *                              request should be set to 0 Hz.
102     *   </ul>
103     * </ul>
104     *
105     * @param request Control object to request of the device
106     * @return Status code of the request
107     */
108    StatusCode setControl(DutyCycleOut request);
109    
110    /**
111     * Request a specified voltage.
112     * <p>
113     * This control mode will attempt to apply the specified voltage to
114     * the motor. If the supply voltage is below the requested voltage,
115     * the motor controller will output the supply voltage.
116     * <ul>
117     *   <li> <b>VoltageOut Parameters:</b> 
118     *   <ul>
119     *     <li> <b>Output:</b> Voltage to attempt to drive at
120     *     <li> <b>EnableFOC:</b> Set to true to use FOC commutation (requires
121     *                            Phoenix Pro), which increases peak power by ~15%
122     *                            on supported devices (see {@link SupportsFOC}).
123     *                            Set to false to use trapezoidal commutation.
124     *                            <p>
125     *                            FOC improves motor performance by leveraging
126     *                            torque (current) control.  However, this may be
127     *                            inconvenient for applications that require
128     *                            specifying duty cycle or voltage.  CTR-Electronics
129     *                            has developed a hybrid method that combines the
130     *                            performances gains of FOC while still allowing
131     *                            applications to provide duty cycle or voltage
132     *                            demand.  This not to be confused with simple
133     *                            sinusoidal control or phase voltage control which
134     *                            lacks the performance gains.
135     *     <li> <b>OverrideBrakeDurNeutral:</b> Set to true to static-brake the
136     *                                          rotor when output is zero (or within
137     *                                          deadband).  Set to false to use the
138     *                                          NeutralMode configuration setting
139     *                                          (default). This flag exists to
140     *                                          provide the fundamental behavior of
141     *                                          this control when output is zero,
142     *                                          which is to provide 0V to the motor.
143     *     <li> <b>LimitForwardMotion:</b> Set to true to force forward limiting. 
144     *                                     This allows users to use other limit
145     *                                     switch sensors connected to robot
146     *                                     controller.  This also allows use of
147     *                                     active sensors that require external
148     *                                     power.
149     *     <li> <b>LimitReverseMotion:</b> Set to true to force reverse limiting. 
150     *                                     This allows users to use other limit
151     *                                     switch sensors connected to robot
152     *                                     controller.  This also allows use of
153     *                                     active sensors that require external
154     *                                     power.
155     *     <li> <b>IgnoreHardwareLimits:</b> Set to true to ignore hardware limit
156     *                                       switches and the LimitForwardMotion and
157     *                                       LimitReverseMotion parameters, instead
158     *                                       allowing motion.
159     *                                       <p>
160     *                                       This can be useful on mechanisms such
161     *                                       as an intake/feeder, where a limit
162     *                                       switch stops motion while intaking but
163     *                                       should be ignored when feeding to a
164     *                                       shooter.
165     *                                       <p>
166     *                                       The hardware limit faults and
167     *                                       Forward/ReverseLimit signals will still
168     *                                       report the values of the limit switches
169     *                                       regardless of this parameter.
170     *     <li> <b>IgnoreSoftwareLimits:</b> Set to true to ignore software limits,
171     *                                       instead allowing motion.
172     *                                       <p>
173     *                                       This can be useful when calibrating the
174     *                                       zero point of a mechanism such as an
175     *                                       elevator.
176     *                                       <p>
177     *                                       The software limit faults will still
178     *                                       report the values of the software
179     *                                       limits regardless of this parameter.
180     *     <li> <b>UseTimesync:</b> Set to true to delay applying this control
181     *                              request until a timesync boundary (requires
182     *                              Phoenix Pro and CANivore). This eliminates the
183     *                              impact of nondeterministic network delays in
184     *                              exchange for a larger but deterministic control
185     *                              latency.
186     *                              <p>
187     *                              This requires setting the ControlTimesyncFreqHz
188     *                              config in MotorOutputConfigs. Additionally, when
189     *                              this is enabled, the UpdateFreqHz of this
190     *                              request should be set to 0 Hz.
191     *   </ul>
192     * </ul>
193     *
194     * @param request Control object to request of the device
195     * @return Status code of the request
196     */
197    StatusCode setControl(VoltageOut request);
198    
199    /**
200     * Request PID to target position with duty cycle feedforward.
201     * <p>
202     * This control mode will set the motor's position setpoint to the
203     * position specified by the user. In addition, it will apply an
204     * additional duty cycle as an arbitrary feedforward value.
205     * <ul>
206     *   <li> <b>PositionDutyCycle Parameters:</b> 
207     *   <ul>
208     *     <li> <b>Position:</b> Position to drive toward in rotations.
209     *     <li> <b>Velocity:</b> Velocity to drive toward in rotations per second.
210     *                           This is typically used for motion profiles
211     *                           generated by the robot program.
212     *     <li> <b>EnableFOC:</b> Set to true to use FOC commutation (requires
213     *                            Phoenix Pro), which increases peak power by ~15%
214     *                            on supported devices (see {@link SupportsFOC}).
215     *                            Set to false to use trapezoidal commutation.
216     *                            <p>
217     *                            FOC improves motor performance by leveraging
218     *                            torque (current) control.  However, this may be
219     *                            inconvenient for applications that require
220     *                            specifying duty cycle or voltage.  CTR-Electronics
221     *                            has developed a hybrid method that combines the
222     *                            performances gains of FOC while still allowing
223     *                            applications to provide duty cycle or voltage
224     *                            demand.  This not to be confused with simple
225     *                            sinusoidal control or phase voltage control which
226     *                            lacks the performance gains.
227     *     <li> <b>FeedForward:</b> Feedforward to apply in fractional units between
228     *                              -1 and +1. This is added to the output of the
229     *                              onboard feedforward terms.
230     *     <li> <b>Slot:</b> Select which gains are applied by selecting the slot. 
231     *                       Use the configuration api to set the gain values for
232     *                       the selected slot before enabling this feature. Slot
233     *                       must be within [0,2].
234     *     <li> <b>OverrideBrakeDurNeutral:</b> Set to true to static-brake the
235     *                                          rotor when output is zero (or within
236     *                                          deadband).  Set to false to use the
237     *                                          NeutralMode configuration setting
238     *                                          (default). This flag exists to
239     *                                          provide the fundamental behavior of
240     *                                          this control when output is zero,
241     *                                          which is to provide 0V to the motor.
242     *     <li> <b>LimitForwardMotion:</b> Set to true to force forward limiting. 
243     *                                     This allows users to use other limit
244     *                                     switch sensors connected to robot
245     *                                     controller.  This also allows use of
246     *                                     active sensors that require external
247     *                                     power.
248     *     <li> <b>LimitReverseMotion:</b> Set to true to force reverse limiting. 
249     *                                     This allows users to use other limit
250     *                                     switch sensors connected to robot
251     *                                     controller.  This also allows use of
252     *                                     active sensors that require external
253     *                                     power.
254     *     <li> <b>IgnoreHardwareLimits:</b> Set to true to ignore hardware limit
255     *                                       switches and the LimitForwardMotion and
256     *                                       LimitReverseMotion parameters, instead
257     *                                       allowing motion.
258     *                                       <p>
259     *                                       This can be useful on mechanisms such
260     *                                       as an intake/feeder, where a limit
261     *                                       switch stops motion while intaking but
262     *                                       should be ignored when feeding to a
263     *                                       shooter.
264     *                                       <p>
265     *                                       The hardware limit faults and
266     *                                       Forward/ReverseLimit signals will still
267     *                                       report the values of the limit switches
268     *                                       regardless of this parameter.
269     *     <li> <b>IgnoreSoftwareLimits:</b> Set to true to ignore software limits,
270     *                                       instead allowing motion.
271     *                                       <p>
272     *                                       This can be useful when calibrating the
273     *                                       zero point of a mechanism such as an
274     *                                       elevator.
275     *                                       <p>
276     *                                       The software limit faults will still
277     *                                       report the values of the software
278     *                                       limits regardless of this parameter.
279     *     <li> <b>UseTimesync:</b> Set to true to delay applying this control
280     *                              request until a timesync boundary (requires
281     *                              Phoenix Pro and CANivore). This eliminates the
282     *                              impact of nondeterministic network delays in
283     *                              exchange for a larger but deterministic control
284     *                              latency.
285     *                              <p>
286     *                              This requires setting the ControlTimesyncFreqHz
287     *                              config in MotorOutputConfigs. Additionally, when
288     *                              this is enabled, the UpdateFreqHz of this
289     *                              request should be set to 0 Hz.
290     *   </ul>
291     * </ul>
292     *
293     * @param request Control object to request of the device
294     * @return Status code of the request
295     */
296    StatusCode setControl(PositionDutyCycle request);
297    
298    /**
299     * Request PID to target position with voltage feedforward
300     * <p>
301     * This control mode will set the motor's position setpoint to the
302     * position specified by the user. In addition, it will apply an
303     * additional voltage as an arbitrary feedforward value.
304     * <ul>
305     *   <li> <b>PositionVoltage Parameters:</b> 
306     *   <ul>
307     *     <li> <b>Position:</b> Position to drive toward in rotations.
308     *     <li> <b>Velocity:</b> Velocity to drive toward in rotations per second.
309     *                           This is typically used for motion profiles
310     *                           generated by the robot program.
311     *     <li> <b>EnableFOC:</b> Set to true to use FOC commutation (requires
312     *                            Phoenix Pro), which increases peak power by ~15%
313     *                            on supported devices (see {@link SupportsFOC}).
314     *                            Set to false to use trapezoidal commutation.
315     *                            <p>
316     *                            FOC improves motor performance by leveraging
317     *                            torque (current) control.  However, this may be
318     *                            inconvenient for applications that require
319     *                            specifying duty cycle or voltage.  CTR-Electronics
320     *                            has developed a hybrid method that combines the
321     *                            performances gains of FOC while still allowing
322     *                            applications to provide duty cycle or voltage
323     *                            demand.  This not to be confused with simple
324     *                            sinusoidal control or phase voltage control which
325     *                            lacks the performance gains.
326     *     <li> <b>FeedForward:</b> Feedforward to apply in volts. This is added to
327     *                              the output of the onboard feedforward terms.
328     *     <li> <b>Slot:</b> Select which gains are applied by selecting the slot. 
329     *                       Use the configuration api to set the gain values for
330     *                       the selected slot before enabling this feature. Slot
331     *                       must be within [0,2].
332     *     <li> <b>OverrideBrakeDurNeutral:</b> Set to true to static-brake the
333     *                                          rotor when output is zero (or within
334     *                                          deadband).  Set to false to use the
335     *                                          NeutralMode configuration setting
336     *                                          (default). This flag exists to
337     *                                          provide the fundamental behavior of
338     *                                          this control when output is zero,
339     *                                          which is to provide 0V to the motor.
340     *     <li> <b>LimitForwardMotion:</b> Set to true to force forward limiting. 
341     *                                     This allows users to use other limit
342     *                                     switch sensors connected to robot
343     *                                     controller.  This also allows use of
344     *                                     active sensors that require external
345     *                                     power.
346     *     <li> <b>LimitReverseMotion:</b> Set to true to force reverse limiting. 
347     *                                     This allows users to use other limit
348     *                                     switch sensors connected to robot
349     *                                     controller.  This also allows use of
350     *                                     active sensors that require external
351     *                                     power.
352     *     <li> <b>IgnoreHardwareLimits:</b> Set to true to ignore hardware limit
353     *                                       switches and the LimitForwardMotion and
354     *                                       LimitReverseMotion parameters, instead
355     *                                       allowing motion.
356     *                                       <p>
357     *                                       This can be useful on mechanisms such
358     *                                       as an intake/feeder, where a limit
359     *                                       switch stops motion while intaking but
360     *                                       should be ignored when feeding to a
361     *                                       shooter.
362     *                                       <p>
363     *                                       The hardware limit faults and
364     *                                       Forward/ReverseLimit signals will still
365     *                                       report the values of the limit switches
366     *                                       regardless of this parameter.
367     *     <li> <b>IgnoreSoftwareLimits:</b> Set to true to ignore software limits,
368     *                                       instead allowing motion.
369     *                                       <p>
370     *                                       This can be useful when calibrating the
371     *                                       zero point of a mechanism such as an
372     *                                       elevator.
373     *                                       <p>
374     *                                       The software limit faults will still
375     *                                       report the values of the software
376     *                                       limits regardless of this parameter.
377     *     <li> <b>UseTimesync:</b> Set to true to delay applying this control
378     *                              request until a timesync boundary (requires
379     *                              Phoenix Pro and CANivore). This eliminates the
380     *                              impact of nondeterministic network delays in
381     *                              exchange for a larger but deterministic control
382     *                              latency.
383     *                              <p>
384     *                              This requires setting the ControlTimesyncFreqHz
385     *                              config in MotorOutputConfigs. Additionally, when
386     *                              this is enabled, the UpdateFreqHz of this
387     *                              request should be set to 0 Hz.
388     *   </ul>
389     * </ul>
390     *
391     * @param request Control object to request of the device
392     * @return Status code of the request
393     */
394    StatusCode setControl(PositionVoltage request);
395    
396    /**
397     * Request PID to target velocity with duty cycle feedforward.
398     * <p>
399     * This control mode will set the motor's velocity setpoint to the
400     * velocity specified by the user. In addition, it will apply an
401     * additional voltage as an arbitrary feedforward value.
402     * <ul>
403     *   <li> <b>VelocityDutyCycle Parameters:</b> 
404     *   <ul>
405     *     <li> <b>Velocity:</b> Velocity to drive toward in rotations per second.
406     *     <li> <b>Acceleration:</b> Acceleration to drive toward in rotations per
407     *                               second squared. This is typically used for
408     *                               motion profiles generated by the robot program.
409     *     <li> <b>EnableFOC:</b> Set to true to use FOC commutation (requires
410     *                            Phoenix Pro), which increases peak power by ~15%
411     *                            on supported devices (see {@link SupportsFOC}).
412     *                            Set to false to use trapezoidal commutation.
413     *                            <p>
414     *                            FOC improves motor performance by leveraging
415     *                            torque (current) control.  However, this may be
416     *                            inconvenient for applications that require
417     *                            specifying duty cycle or voltage.  CTR-Electronics
418     *                            has developed a hybrid method that combines the
419     *                            performances gains of FOC while still allowing
420     *                            applications to provide duty cycle or voltage
421     *                            demand.  This not to be confused with simple
422     *                            sinusoidal control or phase voltage control which
423     *                            lacks the performance gains.
424     *     <li> <b>FeedForward:</b> Feedforward to apply in fractional units between
425     *                              -1 and +1. This is added to the output of the
426     *                              onboard feedforward terms.
427     *     <li> <b>Slot:</b> Select which gains are applied by selecting the slot. 
428     *                       Use the configuration api to set the gain values for
429     *                       the selected slot before enabling this feature. Slot
430     *                       must be within [0,2].
431     *     <li> <b>OverrideBrakeDurNeutral:</b> Set to true to static-brake the
432     *                                          rotor when output is zero (or within
433     *                                          deadband).  Set to false to use the
434     *                                          NeutralMode configuration setting
435     *                                          (default). This flag exists to
436     *                                          provide the fundamental behavior of
437     *                                          this control when output is zero,
438     *                                          which is to provide 0V to the motor.
439     *     <li> <b>LimitForwardMotion:</b> Set to true to force forward limiting. 
440     *                                     This allows users to use other limit
441     *                                     switch sensors connected to robot
442     *                                     controller.  This also allows use of
443     *                                     active sensors that require external
444     *                                     power.
445     *     <li> <b>LimitReverseMotion:</b> Set to true to force reverse limiting. 
446     *                                     This allows users to use other limit
447     *                                     switch sensors connected to robot
448     *                                     controller.  This also allows use of
449     *                                     active sensors that require external
450     *                                     power.
451     *     <li> <b>IgnoreHardwareLimits:</b> Set to true to ignore hardware limit
452     *                                       switches and the LimitForwardMotion and
453     *                                       LimitReverseMotion parameters, instead
454     *                                       allowing motion.
455     *                                       <p>
456     *                                       This can be useful on mechanisms such
457     *                                       as an intake/feeder, where a limit
458     *                                       switch stops motion while intaking but
459     *                                       should be ignored when feeding to a
460     *                                       shooter.
461     *                                       <p>
462     *                                       The hardware limit faults and
463     *                                       Forward/ReverseLimit signals will still
464     *                                       report the values of the limit switches
465     *                                       regardless of this parameter.
466     *     <li> <b>IgnoreSoftwareLimits:</b> Set to true to ignore software limits,
467     *                                       instead allowing motion.
468     *                                       <p>
469     *                                       This can be useful when calibrating the
470     *                                       zero point of a mechanism such as an
471     *                                       elevator.
472     *                                       <p>
473     *                                       The software limit faults will still
474     *                                       report the values of the software
475     *                                       limits regardless of this parameter.
476     *     <li> <b>UseTimesync:</b> Set to true to delay applying this control
477     *                              request until a timesync boundary (requires
478     *                              Phoenix Pro and CANivore). This eliminates the
479     *                              impact of nondeterministic network delays in
480     *                              exchange for a larger but deterministic control
481     *                              latency.
482     *                              <p>
483     *                              This requires setting the ControlTimesyncFreqHz
484     *                              config in MotorOutputConfigs. Additionally, when
485     *                              this is enabled, the UpdateFreqHz of this
486     *                              request should be set to 0 Hz.
487     *   </ul>
488     * </ul>
489     *
490     * @param request Control object to request of the device
491     * @return Status code of the request
492     */
493    StatusCode setControl(VelocityDutyCycle request);
494    
495    /**
496     * Request PID to target velocity with voltage feedforward.
497     * <p>
498     * This control mode will set the motor's velocity setpoint to the
499     * velocity specified by the user. In addition, it will apply an
500     * additional voltage as an arbitrary feedforward value.
501     * <ul>
502     *   <li> <b>VelocityVoltage Parameters:</b> 
503     *   <ul>
504     *     <li> <b>Velocity:</b> Velocity to drive toward in rotations per second.
505     *     <li> <b>Acceleration:</b> Acceleration to drive toward in rotations per
506     *                               second squared. This is typically used for
507     *                               motion profiles generated by the robot program.
508     *     <li> <b>EnableFOC:</b> Set to true to use FOC commutation (requires
509     *                            Phoenix Pro), which increases peak power by ~15%
510     *                            on supported devices (see {@link SupportsFOC}).
511     *                            Set to false to use trapezoidal commutation.
512     *                            <p>
513     *                            FOC improves motor performance by leveraging
514     *                            torque (current) control.  However, this may be
515     *                            inconvenient for applications that require
516     *                            specifying duty cycle or voltage.  CTR-Electronics
517     *                            has developed a hybrid method that combines the
518     *                            performances gains of FOC while still allowing
519     *                            applications to provide duty cycle or voltage
520     *                            demand.  This not to be confused with simple
521     *                            sinusoidal control or phase voltage control which
522     *                            lacks the performance gains.
523     *     <li> <b>FeedForward:</b> Feedforward to apply in volts This is added to
524     *                              the output of the onboard feedforward terms.
525     *     <li> <b>Slot:</b> Select which gains are applied by selecting the slot. 
526     *                       Use the configuration api to set the gain values for
527     *                       the selected slot before enabling this feature. Slot
528     *                       must be within [0,2].
529     *     <li> <b>OverrideBrakeDurNeutral:</b> Set to true to static-brake the
530     *                                          rotor when output is zero (or within
531     *                                          deadband).  Set to false to use the
532     *                                          NeutralMode configuration setting
533     *                                          (default). This flag exists to
534     *                                          provide the fundamental behavior of
535     *                                          this control when output is zero,
536     *                                          which is to provide 0V to the motor.
537     *     <li> <b>LimitForwardMotion:</b> Set to true to force forward limiting. 
538     *                                     This allows users to use other limit
539     *                                     switch sensors connected to robot
540     *                                     controller.  This also allows use of
541     *                                     active sensors that require external
542     *                                     power.
543     *     <li> <b>LimitReverseMotion:</b> Set to true to force reverse limiting. 
544     *                                     This allows users to use other limit
545     *                                     switch sensors connected to robot
546     *                                     controller.  This also allows use of
547     *                                     active sensors that require external
548     *                                     power.
549     *     <li> <b>IgnoreHardwareLimits:</b> Set to true to ignore hardware limit
550     *                                       switches and the LimitForwardMotion and
551     *                                       LimitReverseMotion parameters, instead
552     *                                       allowing motion.
553     *                                       <p>
554     *                                       This can be useful on mechanisms such
555     *                                       as an intake/feeder, where a limit
556     *                                       switch stops motion while intaking but
557     *                                       should be ignored when feeding to a
558     *                                       shooter.
559     *                                       <p>
560     *                                       The hardware limit faults and
561     *                                       Forward/ReverseLimit signals will still
562     *                                       report the values of the limit switches
563     *                                       regardless of this parameter.
564     *     <li> <b>IgnoreSoftwareLimits:</b> Set to true to ignore software limits,
565     *                                       instead allowing motion.
566     *                                       <p>
567     *                                       This can be useful when calibrating the
568     *                                       zero point of a mechanism such as an
569     *                                       elevator.
570     *                                       <p>
571     *                                       The software limit faults will still
572     *                                       report the values of the software
573     *                                       limits regardless of this parameter.
574     *     <li> <b>UseTimesync:</b> Set to true to delay applying this control
575     *                              request until a timesync boundary (requires
576     *                              Phoenix Pro and CANivore). This eliminates the
577     *                              impact of nondeterministic network delays in
578     *                              exchange for a larger but deterministic control
579     *                              latency.
580     *                              <p>
581     *                              This requires setting the ControlTimesyncFreqHz
582     *                              config in MotorOutputConfigs. Additionally, when
583     *                              this is enabled, the UpdateFreqHz of this
584     *                              request should be set to 0 Hz.
585     *   </ul>
586     * </ul>
587     *
588     * @param request Control object to request of the device
589     * @return Status code of the request
590     */
591    StatusCode setControl(VelocityVoltage request);
592    
593    /**
594     * Requests Motion Magic® to target a final position using a motion
595     * profile.  Users can optionally provide a duty cycle feedforward.
596     * <p>
597     * Motion Magic® produces a motion profile in real-time while
598     * attempting to honor the Cruise Velocity, Acceleration, and
599     * (optional) Jerk specified via the Motion Magic® configuration
600     * values.  This control mode does not use the Expo_kV or Expo_kA
601     * configs.
602     * <p>
603     * Target position can be changed on-the-fly and Motion Magic® will do
604     * its best to adjust the profile.  This control mode is duty cycle
605     * based, so relevant closed-loop gains will use fractional duty cycle
606     * for the numerator:  +1.0 represents full forward output.
607     * <ul>
608     *   <li> <b>MotionMagicDutyCycle Parameters:</b> 
609     *   <ul>
610     *     <li> <b>Position:</b> Position to drive toward in rotations.
611     *     <li> <b>EnableFOC:</b> Set to true to use FOC commutation (requires
612     *                            Phoenix Pro), which increases peak power by ~15%
613     *                            on supported devices (see {@link SupportsFOC}).
614     *                            Set to false to use trapezoidal commutation.
615     *                            <p>
616     *                            FOC improves motor performance by leveraging
617     *                            torque (current) control.  However, this may be
618     *                            inconvenient for applications that require
619     *                            specifying duty cycle or voltage.  CTR-Electronics
620     *                            has developed a hybrid method that combines the
621     *                            performances gains of FOC while still allowing
622     *                            applications to provide duty cycle or voltage
623     *                            demand.  This not to be confused with simple
624     *                            sinusoidal control or phase voltage control which
625     *                            lacks the performance gains.
626     *     <li> <b>FeedForward:</b> Feedforward to apply in fractional units between
627     *                              -1 and +1. This is added to the output of the
628     *                              onboard feedforward terms.
629     *     <li> <b>Slot:</b> Select which gains are applied by selecting the slot. 
630     *                       Use the configuration api to set the gain values for
631     *                       the selected slot before enabling this feature. Slot
632     *                       must be within [0,2].
633     *     <li> <b>OverrideBrakeDurNeutral:</b> Set to true to static-brake the
634     *                                          rotor when output is zero (or within
635     *                                          deadband).  Set to false to use the
636     *                                          NeutralMode configuration setting
637     *                                          (default). This flag exists to
638     *                                          provide the fundamental behavior of
639     *                                          this control when output is zero,
640     *                                          which is to provide 0V to the motor.
641     *     <li> <b>LimitForwardMotion:</b> Set to true to force forward limiting. 
642     *                                     This allows users to use other limit
643     *                                     switch sensors connected to robot
644     *                                     controller.  This also allows use of
645     *                                     active sensors that require external
646     *                                     power.
647     *     <li> <b>LimitReverseMotion:</b> Set to true to force reverse limiting. 
648     *                                     This allows users to use other limit
649     *                                     switch sensors connected to robot
650     *                                     controller.  This also allows use of
651     *                                     active sensors that require external
652     *                                     power.
653     *     <li> <b>IgnoreHardwareLimits:</b> Set to true to ignore hardware limit
654     *                                       switches and the LimitForwardMotion and
655     *                                       LimitReverseMotion parameters, instead
656     *                                       allowing motion.
657     *                                       <p>
658     *                                       This can be useful on mechanisms such
659     *                                       as an intake/feeder, where a limit
660     *                                       switch stops motion while intaking but
661     *                                       should be ignored when feeding to a
662     *                                       shooter.
663     *                                       <p>
664     *                                       The hardware limit faults and
665     *                                       Forward/ReverseLimit signals will still
666     *                                       report the values of the limit switches
667     *                                       regardless of this parameter.
668     *     <li> <b>IgnoreSoftwareLimits:</b> Set to true to ignore software limits,
669     *                                       instead allowing motion.
670     *                                       <p>
671     *                                       This can be useful when calibrating the
672     *                                       zero point of a mechanism such as an
673     *                                       elevator.
674     *                                       <p>
675     *                                       The software limit faults will still
676     *                                       report the values of the software
677     *                                       limits regardless of this parameter.
678     *     <li> <b>UseTimesync:</b> Set to true to delay applying this control
679     *                              request until a timesync boundary (requires
680     *                              Phoenix Pro and CANivore). This eliminates the
681     *                              impact of nondeterministic network delays in
682     *                              exchange for a larger but deterministic control
683     *                              latency.
684     *                              <p>
685     *                              This requires setting the ControlTimesyncFreqHz
686     *                              config in MotorOutputConfigs. Additionally, when
687     *                              this is enabled, the UpdateFreqHz of this
688     *                              request should be set to 0 Hz.
689     *   </ul>
690     * </ul>
691     *
692     * @param request Control object to request of the device
693     * @return Status code of the request
694     */
695    StatusCode setControl(MotionMagicDutyCycle request);
696    
697    /**
698     * Requests Motion Magic® to target a final position using a motion
699     * profile.  Users can optionally provide a voltage feedforward.
700     * <p>
701     * Motion Magic® produces a motion profile in real-time while
702     * attempting to honor the Cruise Velocity, Acceleration, and
703     * (optional) Jerk specified via the Motion Magic® configuration
704     * values.  This control mode does not use the Expo_kV or Expo_kA
705     * configs.
706     * <p>
707     * Target position can be changed on-the-fly and Motion Magic® will do
708     * its best to adjust the profile.  This control mode is
709     * voltage-based, so relevant closed-loop gains will use Volts for the
710     * numerator.
711     * <ul>
712     *   <li> <b>MotionMagicVoltage Parameters:</b> 
713     *   <ul>
714     *     <li> <b>Position:</b> Position to drive toward in rotations.
715     *     <li> <b>EnableFOC:</b> Set to true to use FOC commutation (requires
716     *                            Phoenix Pro), which increases peak power by ~15%
717     *                            on supported devices (see {@link SupportsFOC}).
718     *                            Set to false to use trapezoidal commutation.
719     *                            <p>
720     *                            FOC improves motor performance by leveraging
721     *                            torque (current) control.  However, this may be
722     *                            inconvenient for applications that require
723     *                            specifying duty cycle or voltage.  CTR-Electronics
724     *                            has developed a hybrid method that combines the
725     *                            performances gains of FOC while still allowing
726     *                            applications to provide duty cycle or voltage
727     *                            demand.  This not to be confused with simple
728     *                            sinusoidal control or phase voltage control which
729     *                            lacks the performance gains.
730     *     <li> <b>FeedForward:</b> Feedforward to apply in volts. This is added to
731     *                              the output of the onboard feedforward terms.
732     *     <li> <b>Slot:</b> Select which gains are applied by selecting the slot. 
733     *                       Use the configuration api to set the gain values for
734     *                       the selected slot before enabling this feature. Slot
735     *                       must be within [0,2].
736     *     <li> <b>OverrideBrakeDurNeutral:</b> Set to true to static-brake the
737     *                                          rotor when output is zero (or within
738     *                                          deadband).  Set to false to use the
739     *                                          NeutralMode configuration setting
740     *                                          (default). This flag exists to
741     *                                          provide the fundamental behavior of
742     *                                          this control when output is zero,
743     *                                          which is to provide 0V to the motor.
744     *     <li> <b>LimitForwardMotion:</b> Set to true to force forward limiting. 
745     *                                     This allows users to use other limit
746     *                                     switch sensors connected to robot
747     *                                     controller.  This also allows use of
748     *                                     active sensors that require external
749     *                                     power.
750     *     <li> <b>LimitReverseMotion:</b> Set to true to force reverse limiting. 
751     *                                     This allows users to use other limit
752     *                                     switch sensors connected to robot
753     *                                     controller.  This also allows use of
754     *                                     active sensors that require external
755     *                                     power.
756     *     <li> <b>IgnoreHardwareLimits:</b> Set to true to ignore hardware limit
757     *                                       switches and the LimitForwardMotion and
758     *                                       LimitReverseMotion parameters, instead
759     *                                       allowing motion.
760     *                                       <p>
761     *                                       This can be useful on mechanisms such
762     *                                       as an intake/feeder, where a limit
763     *                                       switch stops motion while intaking but
764     *                                       should be ignored when feeding to a
765     *                                       shooter.
766     *                                       <p>
767     *                                       The hardware limit faults and
768     *                                       Forward/ReverseLimit signals will still
769     *                                       report the values of the limit switches
770     *                                       regardless of this parameter.
771     *     <li> <b>IgnoreSoftwareLimits:</b> Set to true to ignore software limits,
772     *                                       instead allowing motion.
773     *                                       <p>
774     *                                       This can be useful when calibrating the
775     *                                       zero point of a mechanism such as an
776     *                                       elevator.
777     *                                       <p>
778     *                                       The software limit faults will still
779     *                                       report the values of the software
780     *                                       limits regardless of this parameter.
781     *     <li> <b>UseTimesync:</b> Set to true to delay applying this control
782     *                              request until a timesync boundary (requires
783     *                              Phoenix Pro and CANivore). This eliminates the
784     *                              impact of nondeterministic network delays in
785     *                              exchange for a larger but deterministic control
786     *                              latency.
787     *                              <p>
788     *                              This requires setting the ControlTimesyncFreqHz
789     *                              config in MotorOutputConfigs. Additionally, when
790     *                              this is enabled, the UpdateFreqHz of this
791     *                              request should be set to 0 Hz.
792     *   </ul>
793     * </ul>
794     *
795     * @param request Control object to request of the device
796     * @return Status code of the request
797     */
798    StatusCode setControl(MotionMagicVoltage request);
799    
800    /**
801     * Requests Motion Magic® to target a final velocity using a motion
802     * profile.  This allows smooth transitions between velocity set
803     * points.  Users can optionally provide a duty cycle feedforward.
804     * <p>
805     * Motion Magic® Velocity produces a motion profile in real-time while
806     * attempting to honor the specified Acceleration and (optional) Jerk.
807     *  This control mode does not use the CruiseVelocity, Expo_kV, or
808     * Expo_kA configs.
809     * <p>
810     * If the specified acceleration is zero, the Acceleration under
811     * Motion Magic® configuration parameter is used instead.  This allows
812     * for runtime adjustment of acceleration for advanced users.  Jerk is
813     * also specified in the Motion Magic® persistent configuration
814     * values.  If Jerk is set to zero, Motion Magic® will produce a
815     * trapezoidal acceleration profile.
816     * <p>
817     * Target velocity can also be changed on-the-fly and Motion Magic®
818     * will do its best to adjust the profile.  This control mode is duty
819     * cycle based, so relevant closed-loop gains will use fractional duty
820     * cycle for the numerator:  +1.0 represents full forward output.
821     * <ul>
822     *   <li> <b>MotionMagicVelocityDutyCycle Parameters:</b> 
823     *   <ul>
824     *     <li> <b>Velocity:</b> Target velocity to drive toward in rotations per
825     *                           second.  This can be changed on-the fly.
826     *     <li> <b>Acceleration:</b> This is the absolute Acceleration to use
827     *                               generating the profile.  If this parameter is
828     *                               zero, the Acceleration persistent configuration
829     *                               parameter is used instead. Acceleration is in
830     *                               rotations per second squared.  If nonzero, the
831     *                               signage does not matter as the absolute value
832     *                               is used.
833     *     <li> <b>EnableFOC:</b> Set to true to use FOC commutation (requires
834     *                            Phoenix Pro), which increases peak power by ~15%
835     *                            on supported devices (see {@link SupportsFOC}).
836     *                            Set to false to use trapezoidal commutation.
837     *                            <p>
838     *                            FOC improves motor performance by leveraging
839     *                            torque (current) control.  However, this may be
840     *                            inconvenient for applications that require
841     *                            specifying duty cycle or voltage.  CTR-Electronics
842     *                            has developed a hybrid method that combines the
843     *                            performances gains of FOC while still allowing
844     *                            applications to provide duty cycle or voltage
845     *                            demand.  This not to be confused with simple
846     *                            sinusoidal control or phase voltage control which
847     *                            lacks the performance gains.
848     *     <li> <b>FeedForward:</b> Feedforward to apply in fractional units between
849     *                              -1 and +1. This is added to the output of the
850     *                              onboard feedforward terms.
851     *     <li> <b>Slot:</b> Select which gains are applied by selecting the slot. 
852     *                       Use the configuration api to set the gain values for
853     *                       the selected slot before enabling this feature. Slot
854     *                       must be within [0,2].
855     *     <li> <b>OverrideBrakeDurNeutral:</b> Set to true to static-brake the
856     *                                          rotor when output is zero (or within
857     *                                          deadband).  Set to false to use the
858     *                                          NeutralMode configuration setting
859     *                                          (default). This flag exists to
860     *                                          provide the fundamental behavior of
861     *                                          this control when output is zero,
862     *                                          which is to provide 0V to the motor.
863     *     <li> <b>LimitForwardMotion:</b> Set to true to force forward limiting. 
864     *                                     This allows users to use other limit
865     *                                     switch sensors connected to robot
866     *                                     controller.  This also allows use of
867     *                                     active sensors that require external
868     *                                     power.
869     *     <li> <b>LimitReverseMotion:</b> Set to true to force reverse limiting. 
870     *                                     This allows users to use other limit
871     *                                     switch sensors connected to robot
872     *                                     controller.  This also allows use of
873     *                                     active sensors that require external
874     *                                     power.
875     *     <li> <b>IgnoreHardwareLimits:</b> Set to true to ignore hardware limit
876     *                                       switches and the LimitForwardMotion and
877     *                                       LimitReverseMotion parameters, instead
878     *                                       allowing motion.
879     *                                       <p>
880     *                                       This can be useful on mechanisms such
881     *                                       as an intake/feeder, where a limit
882     *                                       switch stops motion while intaking but
883     *                                       should be ignored when feeding to a
884     *                                       shooter.
885     *                                       <p>
886     *                                       The hardware limit faults and
887     *                                       Forward/ReverseLimit signals will still
888     *                                       report the values of the limit switches
889     *                                       regardless of this parameter.
890     *     <li> <b>IgnoreSoftwareLimits:</b> Set to true to ignore software limits,
891     *                                       instead allowing motion.
892     *                                       <p>
893     *                                       This can be useful when calibrating the
894     *                                       zero point of a mechanism such as an
895     *                                       elevator.
896     *                                       <p>
897     *                                       The software limit faults will still
898     *                                       report the values of the software
899     *                                       limits regardless of this parameter.
900     *     <li> <b>UseTimesync:</b> Set to true to delay applying this control
901     *                              request until a timesync boundary (requires
902     *                              Phoenix Pro and CANivore). This eliminates the
903     *                              impact of nondeterministic network delays in
904     *                              exchange for a larger but deterministic control
905     *                              latency.
906     *                              <p>
907     *                              This requires setting the ControlTimesyncFreqHz
908     *                              config in MotorOutputConfigs. Additionally, when
909     *                              this is enabled, the UpdateFreqHz of this
910     *                              request should be set to 0 Hz.
911     *   </ul>
912     * </ul>
913     *
914     * @param request Control object to request of the device
915     * @return Status code of the request
916     */
917    StatusCode setControl(MotionMagicVelocityDutyCycle request);
918    
919    /**
920     * Requests Motion Magic® to target a final velocity using a motion
921     * profile.  This allows smooth transitions between velocity set
922     * points.  Users can optionally provide a voltage feedforward.
923     * <p>
924     * Motion Magic® Velocity produces a motion profile in real-time while
925     * attempting to honor the specified Acceleration and (optional) Jerk.
926     *  This control mode does not use the CruiseVelocity, Expo_kV, or
927     * Expo_kA configs.
928     * <p>
929     * If the specified acceleration is zero, the Acceleration under
930     * Motion Magic® configuration parameter is used instead.  This allows
931     * for runtime adjustment of acceleration for advanced users.  Jerk is
932     * also specified in the Motion Magic® persistent configuration
933     * values.  If Jerk is set to zero, Motion Magic® will produce a
934     * trapezoidal acceleration profile.
935     * <p>
936     * Target velocity can also be changed on-the-fly and Motion Magic®
937     * will do its best to adjust the profile.  This control mode is
938     * voltage-based, so relevant closed-loop gains will use Volts for the
939     * numerator.
940     * <ul>
941     *   <li> <b>MotionMagicVelocityVoltage Parameters:</b> 
942     *   <ul>
943     *     <li> <b>Velocity:</b> Target velocity to drive toward in rotations per
944     *                           second.  This can be changed on-the fly.
945     *     <li> <b>Acceleration:</b> This is the absolute Acceleration to use
946     *                               generating the profile.  If this parameter is
947     *                               zero, the Acceleration persistent configuration
948     *                               parameter is used instead. Acceleration is in
949     *                               rotations per second squared.  If nonzero, the
950     *                               signage does not matter as the absolute value
951     *                               is used.
952     *     <li> <b>EnableFOC:</b> Set to true to use FOC commutation (requires
953     *                            Phoenix Pro), which increases peak power by ~15%
954     *                            on supported devices (see {@link SupportsFOC}).
955     *                            Set to false to use trapezoidal commutation.
956     *                            <p>
957     *                            FOC improves motor performance by leveraging
958     *                            torque (current) control.  However, this may be
959     *                            inconvenient for applications that require
960     *                            specifying duty cycle or voltage.  CTR-Electronics
961     *                            has developed a hybrid method that combines the
962     *                            performances gains of FOC while still allowing
963     *                            applications to provide duty cycle or voltage
964     *                            demand.  This not to be confused with simple
965     *                            sinusoidal control or phase voltage control which
966     *                            lacks the performance gains.
967     *     <li> <b>FeedForward:</b> Feedforward to apply in volts. This is added to
968     *                              the output of the onboard feedforward terms.
969     *     <li> <b>Slot:</b> Select which gains are applied by selecting the slot. 
970     *                       Use the configuration api to set the gain values for
971     *                       the selected slot before enabling this feature. Slot
972     *                       must be within [0,2].
973     *     <li> <b>OverrideBrakeDurNeutral:</b> Set to true to static-brake the
974     *                                          rotor when output is zero (or within
975     *                                          deadband).  Set to false to use the
976     *                                          NeutralMode configuration setting
977     *                                          (default). This flag exists to
978     *                                          provide the fundamental behavior of
979     *                                          this control when output is zero,
980     *                                          which is to provide 0V to the motor.
981     *     <li> <b>LimitForwardMotion:</b> Set to true to force forward limiting. 
982     *                                     This allows users to use other limit
983     *                                     switch sensors connected to robot
984     *                                     controller.  This also allows use of
985     *                                     active sensors that require external
986     *                                     power.
987     *     <li> <b>LimitReverseMotion:</b> Set to true to force reverse limiting. 
988     *                                     This allows users to use other limit
989     *                                     switch sensors connected to robot
990     *                                     controller.  This also allows use of
991     *                                     active sensors that require external
992     *                                     power.
993     *     <li> <b>IgnoreHardwareLimits:</b> Set to true to ignore hardware limit
994     *                                       switches and the LimitForwardMotion and
995     *                                       LimitReverseMotion parameters, instead
996     *                                       allowing motion.
997     *                                       <p>
998     *                                       This can be useful on mechanisms such
999     *                                       as an intake/feeder, where a limit
1000     *                                       switch stops motion while intaking but
1001     *                                       should be ignored when feeding to a
1002     *                                       shooter.
1003     *                                       <p>
1004     *                                       The hardware limit faults and
1005     *                                       Forward/ReverseLimit signals will still
1006     *                                       report the values of the limit switches
1007     *                                       regardless of this parameter.
1008     *     <li> <b>IgnoreSoftwareLimits:</b> Set to true to ignore software limits,
1009     *                                       instead allowing motion.
1010     *                                       <p>
1011     *                                       This can be useful when calibrating the
1012     *                                       zero point of a mechanism such as an
1013     *                                       elevator.
1014     *                                       <p>
1015     *                                       The software limit faults will still
1016     *                                       report the values of the software
1017     *                                       limits regardless of this parameter.
1018     *     <li> <b>UseTimesync:</b> Set to true to delay applying this control
1019     *                              request until a timesync boundary (requires
1020     *                              Phoenix Pro and CANivore). This eliminates the
1021     *                              impact of nondeterministic network delays in
1022     *                              exchange for a larger but deterministic control
1023     *                              latency.
1024     *                              <p>
1025     *                              This requires setting the ControlTimesyncFreqHz
1026     *                              config in MotorOutputConfigs. Additionally, when
1027     *                              this is enabled, the UpdateFreqHz of this
1028     *                              request should be set to 0 Hz.
1029     *   </ul>
1030     * </ul>
1031     *
1032     * @param request Control object to request of the device
1033     * @return Status code of the request
1034     */
1035    StatusCode setControl(MotionMagicVelocityVoltage request);
1036    
1037    /**
1038     * Requests Motion Magic® to target a final position using an
1039     * exponential motion profile.  Users can optionally provide a duty
1040     * cycle feedforward.
1041     * <p>
1042     * Motion Magic® Expo produces a motion profile in real-time while
1043     * attempting to honor the Cruise Velocity (optional) and the
1044     * mechanism kV and kA, specified via the Motion Magic® configuration
1045     * values.  Note that unlike the slot gains, the Expo_kV and Expo_kA
1046     * configs are always in output units of Volts.
1047     * <p>
1048     * Setting Cruise Velocity to 0 will allow the profile to run to the
1049     * max possible velocity based on Expo_kV.  This control mode does not
1050     * use the Acceleration or Jerk configs.
1051     * <p>
1052     * Target position can be changed on-the-fly and Motion Magic® will do
1053     * its best to adjust the profile.  This control mode is duty cycle
1054     * based, so relevant closed-loop gains will use fractional duty cycle
1055     * for the numerator:  +1.0 represents full forward output.
1056     * <ul>
1057     *   <li> <b>MotionMagicExpoDutyCycle Parameters:</b> 
1058     *   <ul>
1059     *     <li> <b>Position:</b> Position to drive toward in rotations.
1060     *     <li> <b>EnableFOC:</b> Set to true to use FOC commutation (requires
1061     *                            Phoenix Pro), which increases peak power by ~15%
1062     *                            on supported devices (see {@link SupportsFOC}).
1063     *                            Set to false to use trapezoidal commutation.
1064     *                            <p>
1065     *                            FOC improves motor performance by leveraging
1066     *                            torque (current) control.  However, this may be
1067     *                            inconvenient for applications that require
1068     *                            specifying duty cycle or voltage.  CTR-Electronics
1069     *                            has developed a hybrid method that combines the
1070     *                            performances gains of FOC while still allowing
1071     *                            applications to provide duty cycle or voltage
1072     *                            demand.  This not to be confused with simple
1073     *                            sinusoidal control or phase voltage control which
1074     *                            lacks the performance gains.
1075     *     <li> <b>FeedForward:</b> Feedforward to apply in fractional units between
1076     *                              -1 and +1. This is added to the output of the
1077     *                              onboard feedforward terms.
1078     *     <li> <b>Slot:</b> Select which gains are applied by selecting the slot. 
1079     *                       Use the configuration api to set the gain values for
1080     *                       the selected slot before enabling this feature. Slot
1081     *                       must be within [0,2].
1082     *     <li> <b>OverrideBrakeDurNeutral:</b> Set to true to static-brake the
1083     *                                          rotor when output is zero (or within
1084     *                                          deadband).  Set to false to use the
1085     *                                          NeutralMode configuration setting
1086     *                                          (default). This flag exists to
1087     *                                          provide the fundamental behavior of
1088     *                                          this control when output is zero,
1089     *                                          which is to provide 0V to the motor.
1090     *     <li> <b>LimitForwardMotion:</b> Set to true to force forward limiting. 
1091     *                                     This allows users to use other limit
1092     *                                     switch sensors connected to robot
1093     *                                     controller.  This also allows use of
1094     *                                     active sensors that require external
1095     *                                     power.
1096     *     <li> <b>LimitReverseMotion:</b> Set to true to force reverse limiting. 
1097     *                                     This allows users to use other limit
1098     *                                     switch sensors connected to robot
1099     *                                     controller.  This also allows use of
1100     *                                     active sensors that require external
1101     *                                     power.
1102     *     <li> <b>IgnoreHardwareLimits:</b> Set to true to ignore hardware limit
1103     *                                       switches and the LimitForwardMotion and
1104     *                                       LimitReverseMotion parameters, instead
1105     *                                       allowing motion.
1106     *                                       <p>
1107     *                                       This can be useful on mechanisms such
1108     *                                       as an intake/feeder, where a limit
1109     *                                       switch stops motion while intaking but
1110     *                                       should be ignored when feeding to a
1111     *                                       shooter.
1112     *                                       <p>
1113     *                                       The hardware limit faults and
1114     *                                       Forward/ReverseLimit signals will still
1115     *                                       report the values of the limit switches
1116     *                                       regardless of this parameter.
1117     *     <li> <b>IgnoreSoftwareLimits:</b> Set to true to ignore software limits,
1118     *                                       instead allowing motion.
1119     *                                       <p>
1120     *                                       This can be useful when calibrating the
1121     *                                       zero point of a mechanism such as an
1122     *                                       elevator.
1123     *                                       <p>
1124     *                                       The software limit faults will still
1125     *                                       report the values of the software
1126     *                                       limits regardless of this parameter.
1127     *     <li> <b>UseTimesync:</b> Set to true to delay applying this control
1128     *                              request until a timesync boundary (requires
1129     *                              Phoenix Pro and CANivore). This eliminates the
1130     *                              impact of nondeterministic network delays in
1131     *                              exchange for a larger but deterministic control
1132     *                              latency.
1133     *                              <p>
1134     *                              This requires setting the ControlTimesyncFreqHz
1135     *                              config in MotorOutputConfigs. Additionally, when
1136     *                              this is enabled, the UpdateFreqHz of this
1137     *                              request should be set to 0 Hz.
1138     *   </ul>
1139     * </ul>
1140     *
1141     * @param request Control object to request of the device
1142     * @return Status code of the request
1143     */
1144    StatusCode setControl(MotionMagicExpoDutyCycle request);
1145    
1146    /**
1147     * Requests Motion Magic® to target a final position using an
1148     * exponential motion profile.  Users can optionally provide a voltage
1149     * feedforward.
1150     * <p>
1151     * Motion Magic® Expo produces a motion profile in real-time while
1152     * attempting to honor the Cruise Velocity (optional) and the
1153     * mechanism kV and kA, specified via the Motion Magic® configuration
1154     * values.  Note that unlike the slot gains, the Expo_kV and Expo_kA
1155     * configs are always in output units of Volts.
1156     * <p>
1157     * Setting Cruise Velocity to 0 will allow the profile to run to the
1158     * max possible velocity based on Expo_kV.  This control mode does not
1159     * use the Acceleration or Jerk configs.
1160     * <p>
1161     * Target position can be changed on-the-fly and Motion Magic® will do
1162     * its best to adjust the profile.  This control mode is
1163     * voltage-based, so relevant closed-loop gains will use Volts for the
1164     * numerator.
1165     * <ul>
1166     *   <li> <b>MotionMagicExpoVoltage Parameters:</b> 
1167     *   <ul>
1168     *     <li> <b>Position:</b> Position to drive toward in rotations.
1169     *     <li> <b>EnableFOC:</b> Set to true to use FOC commutation (requires
1170     *                            Phoenix Pro), which increases peak power by ~15%
1171     *                            on supported devices (see {@link SupportsFOC}).
1172     *                            Set to false to use trapezoidal commutation.
1173     *                            <p>
1174     *                            FOC improves motor performance by leveraging
1175     *                            torque (current) control.  However, this may be
1176     *                            inconvenient for applications that require
1177     *                            specifying duty cycle or voltage.  CTR-Electronics
1178     *                            has developed a hybrid method that combines the
1179     *                            performances gains of FOC while still allowing
1180     *                            applications to provide duty cycle or voltage
1181     *                            demand.  This not to be confused with simple
1182     *                            sinusoidal control or phase voltage control which
1183     *                            lacks the performance gains.
1184     *     <li> <b>FeedForward:</b> Feedforward to apply in volts. This is added to
1185     *                              the output of the onboard feedforward terms.
1186     *     <li> <b>Slot:</b> Select which gains are applied by selecting the slot. 
1187     *                       Use the configuration api to set the gain values for
1188     *                       the selected slot before enabling this feature. Slot
1189     *                       must be within [0,2].
1190     *     <li> <b>OverrideBrakeDurNeutral:</b> Set to true to static-brake the
1191     *                                          rotor when output is zero (or within
1192     *                                          deadband).  Set to false to use the
1193     *                                          NeutralMode configuration setting
1194     *                                          (default). This flag exists to
1195     *                                          provide the fundamental behavior of
1196     *                                          this control when output is zero,
1197     *                                          which is to provide 0V to the motor.
1198     *     <li> <b>LimitForwardMotion:</b> Set to true to force forward limiting. 
1199     *                                     This allows users to use other limit
1200     *                                     switch sensors connected to robot
1201     *                                     controller.  This also allows use of
1202     *                                     active sensors that require external
1203     *                                     power.
1204     *     <li> <b>LimitReverseMotion:</b> Set to true to force reverse limiting. 
1205     *                                     This allows users to use other limit
1206     *                                     switch sensors connected to robot
1207     *                                     controller.  This also allows use of
1208     *                                     active sensors that require external
1209     *                                     power.
1210     *     <li> <b>IgnoreHardwareLimits:</b> Set to true to ignore hardware limit
1211     *                                       switches and the LimitForwardMotion and
1212     *                                       LimitReverseMotion parameters, instead
1213     *                                       allowing motion.
1214     *                                       <p>
1215     *                                       This can be useful on mechanisms such
1216     *                                       as an intake/feeder, where a limit
1217     *                                       switch stops motion while intaking but
1218     *                                       should be ignored when feeding to a
1219     *                                       shooter.
1220     *                                       <p>
1221     *                                       The hardware limit faults and
1222     *                                       Forward/ReverseLimit signals will still
1223     *                                       report the values of the limit switches
1224     *                                       regardless of this parameter.
1225     *     <li> <b>IgnoreSoftwareLimits:</b> Set to true to ignore software limits,
1226     *                                       instead allowing motion.
1227     *                                       <p>
1228     *                                       This can be useful when calibrating the
1229     *                                       zero point of a mechanism such as an
1230     *                                       elevator.
1231     *                                       <p>
1232     *                                       The software limit faults will still
1233     *                                       report the values of the software
1234     *                                       limits regardless of this parameter.
1235     *     <li> <b>UseTimesync:</b> Set to true to delay applying this control
1236     *                              request until a timesync boundary (requires
1237     *                              Phoenix Pro and CANivore). This eliminates the
1238     *                              impact of nondeterministic network delays in
1239     *                              exchange for a larger but deterministic control
1240     *                              latency.
1241     *                              <p>
1242     *                              This requires setting the ControlTimesyncFreqHz
1243     *                              config in MotorOutputConfigs. Additionally, when
1244     *                              this is enabled, the UpdateFreqHz of this
1245     *                              request should be set to 0 Hz.
1246     *   </ul>
1247     * </ul>
1248     *
1249     * @param request Control object to request of the device
1250     * @return Status code of the request
1251     */
1252    StatusCode setControl(MotionMagicExpoVoltage request);
1253    
1254    /**
1255     * Requests Motion Magic® to target a final position using a motion
1256     * profile.  This dynamic request allows runtime changes to Cruise
1257     * Velocity, Acceleration, and (optional) Jerk.  Users can optionally
1258     * provide a duty cycle feedforward.
1259     * <p>
1260     * Motion Magic® produces a motion profile in real-time while
1261     * attempting to honor the specified Cruise Velocity, Acceleration,
1262     * and (optional) Jerk.  This control mode does not use the Expo_kV or
1263     * Expo_kA configs.
1264     * <p>
1265     * Target position can be changed on-the-fly and Motion Magic® will do
1266     * its best to adjust the profile. This control mode is duty cycle
1267     * based, so relevant closed-loop gains will use fractional duty cycle
1268     * for the numerator:  +1.0 represents full forward output.
1269     * <ul>
1270     *   <li> <b>DynamicMotionMagicDutyCycle Parameters:</b> 
1271     *   <ul>
1272     *     <li> <b>Position:</b> Position to drive toward in rotations.
1273     *     <li> <b>Velocity:</b> Cruise velocity for profiling.  The signage does
1274     *                           not matter as the device will use the absolute
1275     *                           value for profile generation.
1276     *     <li> <b>Acceleration:</b> Acceleration for profiling.  The signage does
1277     *                               not matter as the device will use the absolute
1278     *                               value for profile generation
1279     *     <li> <b>Jerk:</b> Jerk for profiling.  The signage does not matter as the
1280     *                       device will use the absolute value for profile
1281     *                       generation.
1282     *                       <p>
1283     *                       Jerk is optional; if this is set to zero, then Motion
1284     *                       Magic® will not apply a Jerk limit.
1285     *     <li> <b>EnableFOC:</b> Set to true to use FOC commutation (requires
1286     *                            Phoenix Pro), which increases peak power by ~15%
1287     *                            on supported devices (see {@link SupportsFOC}).
1288     *                            Set to false to use trapezoidal commutation.
1289     *                            <p>
1290     *                            FOC improves motor performance by leveraging
1291     *                            torque (current) control.  However, this may be
1292     *                            inconvenient for applications that require
1293     *                            specifying duty cycle or voltage.  CTR-Electronics
1294     *                            has developed a hybrid method that combines the
1295     *                            performances gains of FOC while still allowing
1296     *                            applications to provide duty cycle or voltage
1297     *                            demand.  This not to be confused with simple
1298     *                            sinusoidal control or phase voltage control which
1299     *                            lacks the performance gains.
1300     *     <li> <b>FeedForward:</b> Feedforward to apply in fractional units between
1301     *                              -1 and +1. This is added to the output of the
1302     *                              onboard feedforward terms.
1303     *     <li> <b>Slot:</b> Select which gains are applied by selecting the slot. 
1304     *                       Use the configuration api to set the gain values for
1305     *                       the selected slot before enabling this feature. Slot
1306     *                       must be within [0,2].
1307     *     <li> <b>OverrideBrakeDurNeutral:</b> Set to true to static-brake the
1308     *                                          rotor when output is zero (or within
1309     *                                          deadband).  Set to false to use the
1310     *                                          NeutralMode configuration setting
1311     *                                          (default). This flag exists to
1312     *                                          provide the fundamental behavior of
1313     *                                          this control when output is zero,
1314     *                                          which is to provide 0V to the motor.
1315     *     <li> <b>LimitForwardMotion:</b> Set to true to force forward limiting. 
1316     *                                     This allows users to use other limit
1317     *                                     switch sensors connected to robot
1318     *                                     controller.  This also allows use of
1319     *                                     active sensors that require external
1320     *                                     power.
1321     *     <li> <b>LimitReverseMotion:</b> Set to true to force reverse limiting. 
1322     *                                     This allows users to use other limit
1323     *                                     switch sensors connected to robot
1324     *                                     controller.  This also allows use of
1325     *                                     active sensors that require external
1326     *                                     power.
1327     *     <li> <b>IgnoreHardwareLimits:</b> Set to true to ignore hardware limit
1328     *                                       switches and the LimitForwardMotion and
1329     *                                       LimitReverseMotion parameters, instead
1330     *                                       allowing motion.
1331     *                                       <p>
1332     *                                       This can be useful on mechanisms such
1333     *                                       as an intake/feeder, where a limit
1334     *                                       switch stops motion while intaking but
1335     *                                       should be ignored when feeding to a
1336     *                                       shooter.
1337     *                                       <p>
1338     *                                       The hardware limit faults and
1339     *                                       Forward/ReverseLimit signals will still
1340     *                                       report the values of the limit switches
1341     *                                       regardless of this parameter.
1342     *     <li> <b>IgnoreSoftwareLimits:</b> Set to true to ignore software limits,
1343     *                                       instead allowing motion.
1344     *                                       <p>
1345     *                                       This can be useful when calibrating the
1346     *                                       zero point of a mechanism such as an
1347     *                                       elevator.
1348     *                                       <p>
1349     *                                       The software limit faults will still
1350     *                                       report the values of the software
1351     *                                       limits regardless of this parameter.
1352     *     <li> <b>UseTimesync:</b> Set to true to delay applying this control
1353     *                              request until a timesync boundary (requires
1354     *                              Phoenix Pro and CANivore). This eliminates the
1355     *                              impact of nondeterministic network delays in
1356     *                              exchange for a larger but deterministic control
1357     *                              latency.
1358     *                              <p>
1359     *                              This requires setting the ControlTimesyncFreqHz
1360     *                              config in MotorOutputConfigs. Additionally, when
1361     *                              this is enabled, the UpdateFreqHz of this
1362     *                              request should be set to 0 Hz.
1363     *   </ul>
1364     * </ul>
1365     *
1366     * @param request Control object to request of the device
1367     * @return Status code of the request
1368     */
1369    StatusCode setControl(DynamicMotionMagicDutyCycle request);
1370    
1371    /**
1372     * Requests Motion Magic® to target a final position using a motion
1373     * profile.  This dynamic request allows runtime changes to Cruise
1374     * Velocity, Acceleration, and (optional) Jerk.  Users can optionally
1375     * provide a voltage feedforward.
1376     * <p>
1377     * Motion Magic® produces a motion profile in real-time while
1378     * attempting to honor the specified Cruise Velocity, Acceleration,
1379     * and (optional) Jerk.  This control mode does not use the Expo_kV or
1380     * Expo_kA configs.
1381     * <p>
1382     * Target position can be changed on-the-fly and Motion Magic® will do
1383     * its best to adjust the profile.  This control mode is
1384     * voltage-based, so relevant closed-loop gains will use Volts for the
1385     * numerator.
1386     * <ul>
1387     *   <li> <b>DynamicMotionMagicVoltage Parameters:</b> 
1388     *   <ul>
1389     *     <li> <b>Position:</b> Position to drive toward in rotations.
1390     *     <li> <b>Velocity:</b> Cruise velocity for profiling.  The signage does
1391     *                           not matter as the device will use the absolute
1392     *                           value for profile generation.
1393     *     <li> <b>Acceleration:</b> Acceleration for profiling.  The signage does
1394     *                               not matter as the device will use the absolute
1395     *                               value for profile generation.
1396     *     <li> <b>Jerk:</b> Jerk for profiling.  The signage does not matter as the
1397     *                       device will use the absolute value for profile
1398     *                       generation.
1399     *                       <p>
1400     *                       Jerk is optional; if this is set to zero, then Motion
1401     *                       Magic® will not apply a Jerk limit.
1402     *     <li> <b>EnableFOC:</b> Set to true to use FOC commutation (requires
1403     *                            Phoenix Pro), which increases peak power by ~15%
1404     *                            on supported devices (see {@link SupportsFOC}).
1405     *                            Set to false to use trapezoidal commutation.
1406     *                            <p>
1407     *                            FOC improves motor performance by leveraging
1408     *                            torque (current) control.  However, this may be
1409     *                            inconvenient for applications that require
1410     *                            specifying duty cycle or voltage.  CTR-Electronics
1411     *                            has developed a hybrid method that combines the
1412     *                            performances gains of FOC while still allowing
1413     *                            applications to provide duty cycle or voltage
1414     *                            demand.  This not to be confused with simple
1415     *                            sinusoidal control or phase voltage control which
1416     *                            lacks the performance gains.
1417     *     <li> <b>FeedForward:</b> Feedforward to apply in volts. This is added to
1418     *                              the output of the onboard feedforward terms.
1419     *     <li> <b>Slot:</b> Select which gains are applied by selecting the slot. 
1420     *                       Use the configuration api to set the gain values for
1421     *                       the selected slot before enabling this feature. Slot
1422     *                       must be within [0,2].
1423     *     <li> <b>OverrideBrakeDurNeutral:</b> Set to true to static-brake the
1424     *                                          rotor when output is zero (or within
1425     *                                          deadband).  Set to false to use the
1426     *                                          NeutralMode configuration setting
1427     *                                          (default). This flag exists to
1428     *                                          provide the fundamental behavior of
1429     *                                          this control when output is zero,
1430     *                                          which is to provide 0V to the motor.
1431     *     <li> <b>LimitForwardMotion:</b> Set to true to force forward limiting. 
1432     *                                     This allows users to use other limit
1433     *                                     switch sensors connected to robot
1434     *                                     controller.  This also allows use of
1435     *                                     active sensors that require external
1436     *                                     power.
1437     *     <li> <b>LimitReverseMotion:</b> Set to true to force reverse limiting. 
1438     *                                     This allows users to use other limit
1439     *                                     switch sensors connected to robot
1440     *                                     controller.  This also allows use of
1441     *                                     active sensors that require external
1442     *                                     power.
1443     *     <li> <b>IgnoreHardwareLimits:</b> Set to true to ignore hardware limit
1444     *                                       switches and the LimitForwardMotion and
1445     *                                       LimitReverseMotion parameters, instead
1446     *                                       allowing motion.
1447     *                                       <p>
1448     *                                       This can be useful on mechanisms such
1449     *                                       as an intake/feeder, where a limit
1450     *                                       switch stops motion while intaking but
1451     *                                       should be ignored when feeding to a
1452     *                                       shooter.
1453     *                                       <p>
1454     *                                       The hardware limit faults and
1455     *                                       Forward/ReverseLimit signals will still
1456     *                                       report the values of the limit switches
1457     *                                       regardless of this parameter.
1458     *     <li> <b>IgnoreSoftwareLimits:</b> Set to true to ignore software limits,
1459     *                                       instead allowing motion.
1460     *                                       <p>
1461     *                                       This can be useful when calibrating the
1462     *                                       zero point of a mechanism such as an
1463     *                                       elevator.
1464     *                                       <p>
1465     *                                       The software limit faults will still
1466     *                                       report the values of the software
1467     *                                       limits regardless of this parameter.
1468     *     <li> <b>UseTimesync:</b> Set to true to delay applying this control
1469     *                              request until a timesync boundary (requires
1470     *                              Phoenix Pro and CANivore). This eliminates the
1471     *                              impact of nondeterministic network delays in
1472     *                              exchange for a larger but deterministic control
1473     *                              latency.
1474     *                              <p>
1475     *                              This requires setting the ControlTimesyncFreqHz
1476     *                              config in MotorOutputConfigs. Additionally, when
1477     *                              this is enabled, the UpdateFreqHz of this
1478     *                              request should be set to 0 Hz.
1479     *   </ul>
1480     * </ul>
1481     *
1482     * @param request Control object to request of the device
1483     * @return Status code of the request
1484     */
1485    StatusCode setControl(DynamicMotionMagicVoltage request);
1486    
1487    /**
1488     * Requests Motion Magic® Expo to target a final position using an
1489     * exponential motion profile.  This dynamic request allows runtime
1490     * changes to the profile kV, kA, and (optional) Cruise Velocity. 
1491     * Users can optionally provide a duty cycle feedforward.
1492     * <p>
1493     * Motion Magic® Expo produces a motion profile in real-time while
1494     * attempting to honor the specified Cruise Velocity (optional) and
1495     * the mechanism kV and kA.  Note that unlike the slot gains, the
1496     * Expo_kV and Expo_kA parameters are always in output units of Volts.
1497     * <p>
1498     * Setting the Cruise Velocity to 0 will allow the profile to run to
1499     * the max possible velocity based on Expo_kV.  This control mode does
1500     * not use the Acceleration or Jerk configs.
1501     * <p>
1502     * Target position can be changed on-the-fly and Motion Magic® will do
1503     * its best to adjust the profile. This control mode is duty cycle
1504     * based, so relevant closed-loop gains will use fractional duty cycle
1505     * for the numerator:  +1.0 represents full forward output.
1506     * <ul>
1507     *   <li> <b>DynamicMotionMagicExpoDutyCycle Parameters:</b> 
1508     *   <ul>
1509     *     <li> <b>Position:</b> Position to drive toward in rotations.
1510     *     <li> <b>kV:</b> Mechanism kV for profiling.  Unlike the kV slot gain,
1511     *                     this is always in units of V/rps.
1512     *                     <p>
1513     *                     This represents the amount of voltage necessary to hold a
1514     *                     velocity.  In terms of the Motion Magic® Expo profile, a
1515     *                     higher kV results in a slower maximum velocity.
1516     *     <li> <b>kA:</b> Mechanism kA for profiling.  Unlike the kA slot gain,
1517     *                     this is always in units of V/rps².
1518     *                     <p>
1519     *                     This represents the amount of voltage necessary to
1520     *                     achieve an acceleration.  In terms of the Motion Magic®
1521     *                     Expo profile, a higher kA results in a slower
1522     *                     acceleration.
1523     *     <li> <b>Velocity:</b> Cruise velocity for profiling.  The signage does
1524     *                           not matter as the device will use the absolute
1525     *                           value for profile generation.  Setting this to 0
1526     *                           will allow the profile to run to the max possible
1527     *                           velocity based on Expo_kV.
1528     *     <li> <b>EnableFOC:</b> Set to true to use FOC commutation (requires
1529     *                            Phoenix Pro), which increases peak power by ~15%
1530     *                            on supported devices (see {@link SupportsFOC}).
1531     *                            Set to false to use trapezoidal commutation.
1532     *                            <p>
1533     *                            FOC improves motor performance by leveraging
1534     *                            torque (current) control.  However, this may be
1535     *                            inconvenient for applications that require
1536     *                            specifying duty cycle or voltage.  CTR-Electronics
1537     *                            has developed a hybrid method that combines the
1538     *                            performances gains of FOC while still allowing
1539     *                            applications to provide duty cycle or voltage
1540     *                            demand.  This not to be confused with simple
1541     *                            sinusoidal control or phase voltage control which
1542     *                            lacks the performance gains.
1543     *     <li> <b>FeedForward:</b> Feedforward to apply in fractional units between
1544     *                              -1 and +1. This is added to the output of the
1545     *                              onboard feedforward terms.
1546     *     <li> <b>Slot:</b> Select which gains are applied by selecting the slot. 
1547     *                       Use the configuration api to set the gain values for
1548     *                       the selected slot before enabling this feature. Slot
1549     *                       must be within [0,2].
1550     *     <li> <b>OverrideBrakeDurNeutral:</b> Set to true to static-brake the
1551     *                                          rotor when output is zero (or within
1552     *                                          deadband).  Set to false to use the
1553     *                                          NeutralMode configuration setting
1554     *                                          (default). This flag exists to
1555     *                                          provide the fundamental behavior of
1556     *                                          this control when output is zero,
1557     *                                          which is to provide 0V to the motor.
1558     *     <li> <b>LimitForwardMotion:</b> Set to true to force forward limiting. 
1559     *                                     This allows users to use other limit
1560     *                                     switch sensors connected to robot
1561     *                                     controller.  This also allows use of
1562     *                                     active sensors that require external
1563     *                                     power.
1564     *     <li> <b>LimitReverseMotion:</b> Set to true to force reverse limiting. 
1565     *                                     This allows users to use other limit
1566     *                                     switch sensors connected to robot
1567     *                                     controller.  This also allows use of
1568     *                                     active sensors that require external
1569     *                                     power.
1570     *     <li> <b>IgnoreHardwareLimits:</b> Set to true to ignore hardware limit
1571     *                                       switches and the LimitForwardMotion and
1572     *                                       LimitReverseMotion parameters, instead
1573     *                                       allowing motion.
1574     *                                       <p>
1575     *                                       This can be useful on mechanisms such
1576     *                                       as an intake/feeder, where a limit
1577     *                                       switch stops motion while intaking but
1578     *                                       should be ignored when feeding to a
1579     *                                       shooter.
1580     *                                       <p>
1581     *                                       The hardware limit faults and
1582     *                                       Forward/ReverseLimit signals will still
1583     *                                       report the values of the limit switches
1584     *                                       regardless of this parameter.
1585     *     <li> <b>IgnoreSoftwareLimits:</b> Set to true to ignore software limits,
1586     *                                       instead allowing motion.
1587     *                                       <p>
1588     *                                       This can be useful when calibrating the
1589     *                                       zero point of a mechanism such as an
1590     *                                       elevator.
1591     *                                       <p>
1592     *                                       The software limit faults will still
1593     *                                       report the values of the software
1594     *                                       limits regardless of this parameter.
1595     *     <li> <b>UseTimesync:</b> Set to true to delay applying this control
1596     *                              request until a timesync boundary (requires
1597     *                              Phoenix Pro and CANivore). This eliminates the
1598     *                              impact of nondeterministic network delays in
1599     *                              exchange for a larger but deterministic control
1600     *                              latency.
1601     *                              <p>
1602     *                              This requires setting the ControlTimesyncFreqHz
1603     *                              config in MotorOutputConfigs. Additionally, when
1604     *                              this is enabled, the UpdateFreqHz of this
1605     *                              request should be set to 0 Hz.
1606     *   </ul>
1607     * </ul>
1608     *
1609     * @param request Control object to request of the device
1610     * @return Status code of the request
1611     */
1612    StatusCode setControl(DynamicMotionMagicExpoDutyCycle request);
1613    
1614    /**
1615     * Requests Motion Magic® Expo to target a final position using an
1616     * exponential motion profile.  This dynamic request allows runtime
1617     * changes to the profile kV, kA, and (optional) Cruise Velocity. 
1618     * Users can optionally provide a voltage feedforward.
1619     * <p>
1620     * Motion Magic® Expo produces a motion profile in real-time while
1621     * attempting to honor the specified Cruise Velocity (optional) and
1622     * the mechanism kV and kA.  Note that unlike the slot gains, the
1623     * Expo_kV and Expo_kA parameters are always in output units of Volts.
1624     * <p>
1625     * Setting the Cruise Velocity to 0 will allow the profile to run to
1626     * the max possible velocity based on Expo_kV.  This control mode does
1627     * not use the Acceleration or Jerk configs.
1628     * <p>
1629     * Target position can be changed on-the-fly and Motion Magic® will do
1630     * its best to adjust the profile.  This control mode is
1631     * voltage-based, so relevant closed-loop gains will use Volts for the
1632     * numerator.
1633     * <ul>
1634     *   <li> <b>DynamicMotionMagicExpoVoltage Parameters:</b> 
1635     *   <ul>
1636     *     <li> <b>Position:</b> Position to drive toward in rotations.
1637     *     <li> <b>kV:</b> Mechanism kV for profiling.  Unlike the kV slot gain,
1638     *                     this is always in units of V/rps.
1639     *                     <p>
1640     *                     This represents the amount of voltage necessary to hold a
1641     *                     velocity.  In terms of the Motion Magic® Expo profile, a
1642     *                     higher kV results in a slower maximum velocity.
1643     *     <li> <b>kA:</b> Mechanism kA for profiling.  Unlike the kA slot gain,
1644     *                     this is always in units of V/rps².
1645     *                     <p>
1646     *                     This represents the amount of voltage necessary to
1647     *                     achieve an acceleration.  In terms of the Motion Magic®
1648     *                     Expo profile, a higher kA results in a slower
1649     *                     acceleration.
1650     *     <li> <b>Velocity:</b> Cruise velocity for profiling.  The signage does
1651     *                           not matter as the device will use the absolute
1652     *                           value for profile generation.  Setting this to 0
1653     *                           will allow the profile to run to the max possible
1654     *                           velocity based on Expo_kV.
1655     *     <li> <b>EnableFOC:</b> Set to true to use FOC commutation (requires
1656     *                            Phoenix Pro), which increases peak power by ~15%
1657     *                            on supported devices (see {@link SupportsFOC}).
1658     *                            Set to false to use trapezoidal commutation.
1659     *                            <p>
1660     *                            FOC improves motor performance by leveraging
1661     *                            torque (current) control.  However, this may be
1662     *                            inconvenient for applications that require
1663     *                            specifying duty cycle or voltage.  CTR-Electronics
1664     *                            has developed a hybrid method that combines the
1665     *                            performances gains of FOC while still allowing
1666     *                            applications to provide duty cycle or voltage
1667     *                            demand.  This not to be confused with simple
1668     *                            sinusoidal control or phase voltage control which
1669     *                            lacks the performance gains.
1670     *     <li> <b>FeedForward:</b> Feedforward to apply in volts. This is added to
1671     *                              the output of the onboard feedforward terms.
1672     *     <li> <b>Slot:</b> Select which gains are applied by selecting the slot. 
1673     *                       Use the configuration api to set the gain values for
1674     *                       the selected slot before enabling this feature. Slot
1675     *                       must be within [0,2].
1676     *     <li> <b>OverrideBrakeDurNeutral:</b> Set to true to static-brake the
1677     *                                          rotor when output is zero (or within
1678     *                                          deadband).  Set to false to use the
1679     *                                          NeutralMode configuration setting
1680     *                                          (default). This flag exists to
1681     *                                          provide the fundamental behavior of
1682     *                                          this control when output is zero,
1683     *                                          which is to provide 0V to the motor.
1684     *     <li> <b>LimitForwardMotion:</b> Set to true to force forward limiting. 
1685     *                                     This allows users to use other limit
1686     *                                     switch sensors connected to robot
1687     *                                     controller.  This also allows use of
1688     *                                     active sensors that require external
1689     *                                     power.
1690     *     <li> <b>LimitReverseMotion:</b> Set to true to force reverse limiting. 
1691     *                                     This allows users to use other limit
1692     *                                     switch sensors connected to robot
1693     *                                     controller.  This also allows use of
1694     *                                     active sensors that require external
1695     *                                     power.
1696     *     <li> <b>IgnoreHardwareLimits:</b> Set to true to ignore hardware limit
1697     *                                       switches and the LimitForwardMotion and
1698     *                                       LimitReverseMotion parameters, instead
1699     *                                       allowing motion.
1700     *                                       <p>
1701     *                                       This can be useful on mechanisms such
1702     *                                       as an intake/feeder, where a limit
1703     *                                       switch stops motion while intaking but
1704     *                                       should be ignored when feeding to a
1705     *                                       shooter.
1706     *                                       <p>
1707     *                                       The hardware limit faults and
1708     *                                       Forward/ReverseLimit signals will still
1709     *                                       report the values of the limit switches
1710     *                                       regardless of this parameter.
1711     *     <li> <b>IgnoreSoftwareLimits:</b> Set to true to ignore software limits,
1712     *                                       instead allowing motion.
1713     *                                       <p>
1714     *                                       This can be useful when calibrating the
1715     *                                       zero point of a mechanism such as an
1716     *                                       elevator.
1717     *                                       <p>
1718     *                                       The software limit faults will still
1719     *                                       report the values of the software
1720     *                                       limits regardless of this parameter.
1721     *     <li> <b>UseTimesync:</b> Set to true to delay applying this control
1722     *                              request until a timesync boundary (requires
1723     *                              Phoenix Pro and CANivore). This eliminates the
1724     *                              impact of nondeterministic network delays in
1725     *                              exchange for a larger but deterministic control
1726     *                              latency.
1727     *                              <p>
1728     *                              This requires setting the ControlTimesyncFreqHz
1729     *                              config in MotorOutputConfigs. Additionally, when
1730     *                              this is enabled, the UpdateFreqHz of this
1731     *                              request should be set to 0 Hz.
1732     *   </ul>
1733     * </ul>
1734     *
1735     * @param request Control object to request of the device
1736     * @return Status code of the request
1737     */
1738    StatusCode setControl(DynamicMotionMagicExpoVoltage request);
1739    
1740    /**
1741     * Request a specified motor duty cycle with a differential position
1742     * closed-loop.
1743     * <p>
1744     * This control mode will output a proportion of the supplied voltage
1745     * which is supplied by the user. It will also set the motor's
1746     * differential position setpoint to the specified position.
1747     * <ul>
1748     *   <li> <b>DifferentialDutyCycle Parameters:</b> 
1749     *   <ul>
1750     *     <li> <b>AverageOutput:</b> Proportion of supply voltage to apply on the
1751     *                                Average axis in fractional units between -1
1752     *                                and +1.
1753     *     <li> <b>DifferentialPosition:</b> Differential position to drive towards
1754     *                                       in rotations.
1755     *     <li> <b>EnableFOC:</b> Set to true to use FOC commutation (requires
1756     *                            Phoenix Pro), which increases peak power by ~15%
1757     *                            on supported devices (see {@link SupportsFOC}).
1758     *                            Set to false to use trapezoidal commutation.
1759     *                            <p>
1760     *                            FOC improves motor performance by leveraging
1761     *                            torque (current) control.  However, this may be
1762     *                            inconvenient for applications that require
1763     *                            specifying duty cycle or voltage.  CTR-Electronics
1764     *                            has developed a hybrid method that combines the
1765     *                            performances gains of FOC while still allowing
1766     *                            applications to provide duty cycle or voltage
1767     *                            demand.  This not to be confused with simple
1768     *                            sinusoidal control or phase voltage control which
1769     *                            lacks the performance gains.
1770     *     <li> <b>DifferentialSlot:</b> Select which gains are applied to the
1771     *                                   differential controller by selecting the
1772     *                                   slot.  Use the configuration api to set the
1773     *                                   gain values for the selected slot before
1774     *                                   enabling this feature. Slot must be within
1775     *                                   [0,2].
1776     *     <li> <b>OverrideBrakeDurNeutral:</b> Set to true to static-brake the
1777     *                                          rotor when output is zero (or within
1778     *                                          deadband).  Set to false to use the
1779     *                                          NeutralMode configuration setting
1780     *                                          (default). This flag exists to
1781     *                                          provide the fundamental behavior of
1782     *                                          this control when output is zero,
1783     *                                          which is to provide 0V to the motor.
1784     *     <li> <b>LimitForwardMotion:</b> Set to true to force forward limiting. 
1785     *                                     This allows users to use other limit
1786     *                                     switch sensors connected to robot
1787     *                                     controller.  This also allows use of
1788     *                                     active sensors that require external
1789     *                                     power.
1790     *     <li> <b>LimitReverseMotion:</b> Set to true to force reverse limiting. 
1791     *                                     This allows users to use other limit
1792     *                                     switch sensors connected to robot
1793     *                                     controller.  This also allows use of
1794     *                                     active sensors that require external
1795     *                                     power.
1796     *     <li> <b>IgnoreHardwareLimits:</b> Set to true to ignore hardware limit
1797     *                                       switches and the LimitForwardMotion and
1798     *                                       LimitReverseMotion parameters, instead
1799     *                                       allowing motion.
1800     *                                       <p>
1801     *                                       This can be useful on mechanisms such
1802     *                                       as an intake/feeder, where a limit
1803     *                                       switch stops motion while intaking but
1804     *                                       should be ignored when feeding to a
1805     *                                       shooter.
1806     *                                       <p>
1807     *                                       The hardware limit faults and
1808     *                                       Forward/ReverseLimit signals will still
1809     *                                       report the values of the limit switches
1810     *                                       regardless of this parameter.
1811     *     <li> <b>IgnoreSoftwareLimits:</b> Set to true to ignore software limits,
1812     *                                       instead allowing motion.
1813     *                                       <p>
1814     *                                       This can be useful when calibrating the
1815     *                                       zero point of a mechanism such as an
1816     *                                       elevator.
1817     *                                       <p>
1818     *                                       The software limit faults will still
1819     *                                       report the values of the software
1820     *                                       limits regardless of this parameter.
1821     *     <li> <b>UseTimesync:</b> Set to true to delay applying this control
1822     *                              request until a timesync boundary (requires
1823     *                              Phoenix Pro and CANivore). This eliminates the
1824     *                              impact of nondeterministic network delays in
1825     *                              exchange for a larger but deterministic control
1826     *                              latency.
1827     *                              <p>
1828     *                              This requires setting the ControlTimesyncFreqHz
1829     *                              config in MotorOutputConfigs. Additionally, when
1830     *                              this is enabled, the UpdateFreqHz of this
1831     *                              request should be set to 0 Hz.
1832     *   </ul>
1833     * </ul>
1834     *
1835     * @param request Control object to request of the device
1836     * @return Status code of the request
1837     */
1838    StatusCode setControl(DifferentialDutyCycle request);
1839    
1840    /**
1841     * Request a specified voltage with a differential position
1842     * closed-loop.
1843     * <p>
1844     * This control mode will attempt to apply the specified voltage to
1845     * the motor. If the supply voltage is below the requested voltage,
1846     * the motor controller will output the supply voltage. It will also
1847     * set the motor's differential position setpoint to the specified
1848     * position.
1849     * <ul>
1850     *   <li> <b>DifferentialVoltage Parameters:</b> 
1851     *   <ul>
1852     *     <li> <b>AverageOutput:</b> Voltage to attempt to drive at on the Average
1853     *                                axis.
1854     *     <li> <b>DifferentialPosition:</b> Differential position to drive towards
1855     *                                       in rotations.
1856     *     <li> <b>EnableFOC:</b> Set to true to use FOC commutation (requires
1857     *                            Phoenix Pro), which increases peak power by ~15%
1858     *                            on supported devices (see {@link SupportsFOC}).
1859     *                            Set to false to use trapezoidal commutation.
1860     *                            <p>
1861     *                            FOC improves motor performance by leveraging
1862     *                            torque (current) control.  However, this may be
1863     *                            inconvenient for applications that require
1864     *                            specifying duty cycle or voltage.  CTR-Electronics
1865     *                            has developed a hybrid method that combines the
1866     *                            performances gains of FOC while still allowing
1867     *                            applications to provide duty cycle or voltage
1868     *                            demand.  This not to be confused with simple
1869     *                            sinusoidal control or phase voltage control which
1870     *                            lacks the performance gains.
1871     *     <li> <b>DifferentialSlot:</b> Select which gains are applied to the
1872     *                                   differential controller by selecting the
1873     *                                   slot.  Use the configuration api to set the
1874     *                                   gain values for the selected slot before
1875     *                                   enabling this feature. Slot must be within
1876     *                                   [0,2].
1877     *     <li> <b>OverrideBrakeDurNeutral:</b> Set to true to static-brake the
1878     *                                          rotor when output is zero (or within
1879     *                                          deadband).  Set to false to use the
1880     *                                          NeutralMode configuration setting
1881     *                                          (default). This flag exists to
1882     *                                          provide the fundamental behavior of
1883     *                                          this control when output is zero,
1884     *                                          which is to provide 0V to the motor.
1885     *     <li> <b>LimitForwardMotion:</b> Set to true to force forward limiting. 
1886     *                                     This allows users to use other limit
1887     *                                     switch sensors connected to robot
1888     *                                     controller.  This also allows use of
1889     *                                     active sensors that require external
1890     *                                     power.
1891     *     <li> <b>LimitReverseMotion:</b> Set to true to force reverse limiting. 
1892     *                                     This allows users to use other limit
1893     *                                     switch sensors connected to robot
1894     *                                     controller.  This also allows use of
1895     *                                     active sensors that require external
1896     *                                     power.
1897     *     <li> <b>IgnoreHardwareLimits:</b> Set to true to ignore hardware limit
1898     *                                       switches and the LimitForwardMotion and
1899     *                                       LimitReverseMotion parameters, instead
1900     *                                       allowing motion.
1901     *                                       <p>
1902     *                                       This can be useful on mechanisms such
1903     *                                       as an intake/feeder, where a limit
1904     *                                       switch stops motion while intaking but
1905     *                                       should be ignored when feeding to a
1906     *                                       shooter.
1907     *                                       <p>
1908     *                                       The hardware limit faults and
1909     *                                       Forward/ReverseLimit signals will still
1910     *                                       report the values of the limit switches
1911     *                                       regardless of this parameter.
1912     *     <li> <b>IgnoreSoftwareLimits:</b> Set to true to ignore software limits,
1913     *                                       instead allowing motion.
1914     *                                       <p>
1915     *                                       This can be useful when calibrating the
1916     *                                       zero point of a mechanism such as an
1917     *                                       elevator.
1918     *                                       <p>
1919     *                                       The software limit faults will still
1920     *                                       report the values of the software
1921     *                                       limits regardless of this parameter.
1922     *     <li> <b>UseTimesync:</b> Set to true to delay applying this control
1923     *                              request until a timesync boundary (requires
1924     *                              Phoenix Pro and CANivore). This eliminates the
1925     *                              impact of nondeterministic network delays in
1926     *                              exchange for a larger but deterministic control
1927     *                              latency.
1928     *                              <p>
1929     *                              This requires setting the ControlTimesyncFreqHz
1930     *                              config in MotorOutputConfigs. Additionally, when
1931     *                              this is enabled, the UpdateFreqHz of this
1932     *                              request should be set to 0 Hz.
1933     *   </ul>
1934     * </ul>
1935     *
1936     * @param request Control object to request of the device
1937     * @return Status code of the request
1938     */
1939    StatusCode setControl(DifferentialVoltage request);
1940    
1941    /**
1942     * Request PID to target position with a differential position
1943     * setpoint.
1944     * <p>
1945     * This control mode will set the motor's position setpoint to the
1946     * position specified by the user. It will also set the motor's
1947     * differential position setpoint to the specified position.
1948     * <ul>
1949     *   <li> <b>DifferentialPositionDutyCycle Parameters:</b> 
1950     *   <ul>
1951     *     <li> <b>AveragePosition:</b> Average position to drive toward in
1952     *                                  rotations.
1953     *     <li> <b>DifferentialPosition:</b> Differential position to drive toward
1954     *                                       in rotations.
1955     *     <li> <b>EnableFOC:</b> Set to true to use FOC commutation (requires
1956     *                            Phoenix Pro), which increases peak power by ~15%
1957     *                            on supported devices (see {@link SupportsFOC}).
1958     *                            Set to false to use trapezoidal commutation.
1959     *                            <p>
1960     *                            FOC improves motor performance by leveraging
1961     *                            torque (current) control.  However, this may be
1962     *                            inconvenient for applications that require
1963     *                            specifying duty cycle or voltage.  CTR-Electronics
1964     *                            has developed a hybrid method that combines the
1965     *                            performances gains of FOC while still allowing
1966     *                            applications to provide duty cycle or voltage
1967     *                            demand.  This not to be confused with simple
1968     *                            sinusoidal control or phase voltage control which
1969     *                            lacks the performance gains.
1970     *     <li> <b>AverageSlot:</b> Select which gains are applied to the average
1971     *                              controller by selecting the slot.  Use the
1972     *                              configuration api to set the gain values for the
1973     *                              selected slot before enabling this feature. Slot
1974     *                              must be within [0,2].
1975     *     <li> <b>DifferentialSlot:</b> Select which gains are applied to the
1976     *                                   differential controller by selecting the
1977     *                                   slot.  Use the configuration api to set the
1978     *                                   gain values for the selected slot before
1979     *                                   enabling this feature. Slot must be within
1980     *                                   [0,2].
1981     *     <li> <b>OverrideBrakeDurNeutral:</b> Set to true to static-brake the
1982     *                                          rotor when output is zero (or within
1983     *                                          deadband).  Set to false to use the
1984     *                                          NeutralMode configuration setting
1985     *                                          (default). This flag exists to
1986     *                                          provide the fundamental behavior of
1987     *                                          this control when output is zero,
1988     *                                          which is to provide 0V to the motor.
1989     *     <li> <b>LimitForwardMotion:</b> Set to true to force forward limiting. 
1990     *                                     This allows users to use other limit
1991     *                                     switch sensors connected to robot
1992     *                                     controller.  This also allows use of
1993     *                                     active sensors that require external
1994     *                                     power.
1995     *     <li> <b>LimitReverseMotion:</b> Set to true to force reverse limiting. 
1996     *                                     This allows users to use other limit
1997     *                                     switch sensors connected to robot
1998     *                                     controller.  This also allows use of
1999     *                                     active sensors that require external
2000     *                                     power.
2001     *     <li> <b>IgnoreHardwareLimits:</b> Set to true to ignore hardware limit
2002     *                                       switches and the LimitForwardMotion and
2003     *                                       LimitReverseMotion parameters, instead
2004     *                                       allowing motion.
2005     *                                       <p>
2006     *                                       This can be useful on mechanisms such
2007     *                                       as an intake/feeder, where a limit
2008     *                                       switch stops motion while intaking but
2009     *                                       should be ignored when feeding to a
2010     *                                       shooter.
2011     *                                       <p>
2012     *                                       The hardware limit faults and
2013     *                                       Forward/ReverseLimit signals will still
2014     *                                       report the values of the limit switches
2015     *                                       regardless of this parameter.
2016     *     <li> <b>IgnoreSoftwareLimits:</b> Set to true to ignore software limits,
2017     *                                       instead allowing motion.
2018     *                                       <p>
2019     *                                       This can be useful when calibrating the
2020     *                                       zero point of a mechanism such as an
2021     *                                       elevator.
2022     *                                       <p>
2023     *                                       The software limit faults will still
2024     *                                       report the values of the software
2025     *                                       limits regardless of this parameter.
2026     *     <li> <b>UseTimesync:</b> Set to true to delay applying this control
2027     *                              request until a timesync boundary (requires
2028     *                              Phoenix Pro and CANivore). This eliminates the
2029     *                              impact of nondeterministic network delays in
2030     *                              exchange for a larger but deterministic control
2031     *                              latency.
2032     *                              <p>
2033     *                              This requires setting the ControlTimesyncFreqHz
2034     *                              config in MotorOutputConfigs. Additionally, when
2035     *                              this is enabled, the UpdateFreqHz of this
2036     *                              request should be set to 0 Hz.
2037     *   </ul>
2038     * </ul>
2039     *
2040     * @param request Control object to request of the device
2041     * @return Status code of the request
2042     */
2043    StatusCode setControl(DifferentialPositionDutyCycle request);
2044    
2045    /**
2046     * Request PID to target position with a differential position
2047     * setpoint
2048     * <p>
2049     * This control mode will set the motor's position setpoint to the
2050     * position specified by the user. It will also set the motor's
2051     * differential position setpoint to the specified position.
2052     * <ul>
2053     *   <li> <b>DifferentialPositionVoltage Parameters:</b> 
2054     *   <ul>
2055     *     <li> <b>AveragePosition:</b> Average position to drive toward in
2056     *                                  rotations.
2057     *     <li> <b>DifferentialPosition:</b> Differential position to drive toward
2058     *                                       in rotations.
2059     *     <li> <b>EnableFOC:</b> Set to true to use FOC commutation (requires
2060     *                            Phoenix Pro), which increases peak power by ~15%
2061     *                            on supported devices (see {@link SupportsFOC}).
2062     *                            Set to false to use trapezoidal commutation.
2063     *                            <p>
2064     *                            FOC improves motor performance by leveraging
2065     *                            torque (current) control.  However, this may be
2066     *                            inconvenient for applications that require
2067     *                            specifying duty cycle or voltage.  CTR-Electronics
2068     *                            has developed a hybrid method that combines the
2069     *                            performances gains of FOC while still allowing
2070     *                            applications to provide duty cycle or voltage
2071     *                            demand.  This not to be confused with simple
2072     *                            sinusoidal control or phase voltage control which
2073     *                            lacks the performance gains.
2074     *     <li> <b>AverageSlot:</b> Select which gains are applied to the average
2075     *                              controller by selecting the slot.  Use the
2076     *                              configuration api to set the gain values for the
2077     *                              selected slot before enabling this feature. Slot
2078     *                              must be within [0,2].
2079     *     <li> <b>DifferentialSlot:</b> Select which gains are applied to the
2080     *                                   differential controller by selecting the
2081     *                                   slot.  Use the configuration api to set the
2082     *                                   gain values for the selected slot before
2083     *                                   enabling this feature. Slot must be within
2084     *                                   [0,2].
2085     *     <li> <b>OverrideBrakeDurNeutral:</b> Set to true to static-brake the
2086     *                                          rotor when output is zero (or within
2087     *                                          deadband).  Set to false to use the
2088     *                                          NeutralMode configuration setting
2089     *                                          (default). This flag exists to
2090     *                                          provide the fundamental behavior of
2091     *                                          this control when output is zero,
2092     *                                          which is to provide 0V to the motor.
2093     *     <li> <b>LimitForwardMotion:</b> Set to true to force forward limiting. 
2094     *                                     This allows users to use other limit
2095     *                                     switch sensors connected to robot
2096     *                                     controller.  This also allows use of
2097     *                                     active sensors that require external
2098     *                                     power.
2099     *     <li> <b>LimitReverseMotion:</b> Set to true to force reverse limiting. 
2100     *                                     This allows users to use other limit
2101     *                                     switch sensors connected to robot
2102     *                                     controller.  This also allows use of
2103     *                                     active sensors that require external
2104     *                                     power.
2105     *     <li> <b>IgnoreHardwareLimits:</b> Set to true to ignore hardware limit
2106     *                                       switches and the LimitForwardMotion and
2107     *                                       LimitReverseMotion parameters, instead
2108     *                                       allowing motion.
2109     *                                       <p>
2110     *                                       This can be useful on mechanisms such
2111     *                                       as an intake/feeder, where a limit
2112     *                                       switch stops motion while intaking but
2113     *                                       should be ignored when feeding to a
2114     *                                       shooter.
2115     *                                       <p>
2116     *                                       The hardware limit faults and
2117     *                                       Forward/ReverseLimit signals will still
2118     *                                       report the values of the limit switches
2119     *                                       regardless of this parameter.
2120     *     <li> <b>IgnoreSoftwareLimits:</b> Set to true to ignore software limits,
2121     *                                       instead allowing motion.
2122     *                                       <p>
2123     *                                       This can be useful when calibrating the
2124     *                                       zero point of a mechanism such as an
2125     *                                       elevator.
2126     *                                       <p>
2127     *                                       The software limit faults will still
2128     *                                       report the values of the software
2129     *                                       limits regardless of this parameter.
2130     *     <li> <b>UseTimesync:</b> Set to true to delay applying this control
2131     *                              request until a timesync boundary (requires
2132     *                              Phoenix Pro and CANivore). This eliminates the
2133     *                              impact of nondeterministic network delays in
2134     *                              exchange for a larger but deterministic control
2135     *                              latency.
2136     *                              <p>
2137     *                              This requires setting the ControlTimesyncFreqHz
2138     *                              config in MotorOutputConfigs. Additionally, when
2139     *                              this is enabled, the UpdateFreqHz of this
2140     *                              request should be set to 0 Hz.
2141     *   </ul>
2142     * </ul>
2143     *
2144     * @param request Control object to request of the device
2145     * @return Status code of the request
2146     */
2147    StatusCode setControl(DifferentialPositionVoltage request);
2148    
2149    /**
2150     * Request PID to target velocity with a differential position
2151     * setpoint.
2152     * <p>
2153     * This control mode will set the motor's velocity setpoint to the
2154     * velocity specified by the user. It will also set the motor's
2155     * differential position setpoint to the specified position.
2156     * <ul>
2157     *   <li> <b>DifferentialVelocityDutyCycle Parameters:</b> 
2158     *   <ul>
2159     *     <li> <b>AverageVelocity:</b> Average velocity to drive toward in
2160     *                                  rotations per second.
2161     *     <li> <b>DifferentialPosition:</b> Differential position to drive toward
2162     *                                       in rotations.
2163     *     <li> <b>EnableFOC:</b> Set to true to use FOC commutation (requires
2164     *                            Phoenix Pro), which increases peak power by ~15%
2165     *                            on supported devices (see {@link SupportsFOC}).
2166     *                            Set to false to use trapezoidal commutation.
2167     *                            <p>
2168     *                            FOC improves motor performance by leveraging
2169     *                            torque (current) control.  However, this may be
2170     *                            inconvenient for applications that require
2171     *                            specifying duty cycle or voltage.  CTR-Electronics
2172     *                            has developed a hybrid method that combines the
2173     *                            performances gains of FOC while still allowing
2174     *                            applications to provide duty cycle or voltage
2175     *                            demand.  This not to be confused with simple
2176     *                            sinusoidal control or phase voltage control which
2177     *                            lacks the performance gains.
2178     *     <li> <b>AverageSlot:</b> Select which gains are applied to the average
2179     *                              controller by selecting the slot.  Use the
2180     *                              configuration api to set the gain values for the
2181     *                              selected slot before enabling this feature. Slot
2182     *                              must be within [0,2].
2183     *     <li> <b>DifferentialSlot:</b> Select which gains are applied to the
2184     *                                   differential controller by selecting the
2185     *                                   slot.  Use the configuration api to set the
2186     *                                   gain values for the selected slot before
2187     *                                   enabling this feature. Slot must be within
2188     *                                   [0,2].
2189     *     <li> <b>OverrideBrakeDurNeutral:</b> Set to true to static-brake the
2190     *                                          rotor when output is zero (or within
2191     *                                          deadband).  Set to false to use the
2192     *                                          NeutralMode configuration setting
2193     *                                          (default). This flag exists to
2194     *                                          provide the fundamental behavior of
2195     *                                          this control when output is zero,
2196     *                                          which is to provide 0V to the motor.
2197     *     <li> <b>LimitForwardMotion:</b> Set to true to force forward limiting. 
2198     *                                     This allows users to use other limit
2199     *                                     switch sensors connected to robot
2200     *                                     controller.  This also allows use of
2201     *                                     active sensors that require external
2202     *                                     power.
2203     *     <li> <b>LimitReverseMotion:</b> Set to true to force reverse limiting. 
2204     *                                     This allows users to use other limit
2205     *                                     switch sensors connected to robot
2206     *                                     controller.  This also allows use of
2207     *                                     active sensors that require external
2208     *                                     power.
2209     *     <li> <b>IgnoreHardwareLimits:</b> Set to true to ignore hardware limit
2210     *                                       switches and the LimitForwardMotion and
2211     *                                       LimitReverseMotion parameters, instead
2212     *                                       allowing motion.
2213     *                                       <p>
2214     *                                       This can be useful on mechanisms such
2215     *                                       as an intake/feeder, where a limit
2216     *                                       switch stops motion while intaking but
2217     *                                       should be ignored when feeding to a
2218     *                                       shooter.
2219     *                                       <p>
2220     *                                       The hardware limit faults and
2221     *                                       Forward/ReverseLimit signals will still
2222     *                                       report the values of the limit switches
2223     *                                       regardless of this parameter.
2224     *     <li> <b>IgnoreSoftwareLimits:</b> Set to true to ignore software limits,
2225     *                                       instead allowing motion.
2226     *                                       <p>
2227     *                                       This can be useful when calibrating the
2228     *                                       zero point of a mechanism such as an
2229     *                                       elevator.
2230     *                                       <p>
2231     *                                       The software limit faults will still
2232     *                                       report the values of the software
2233     *                                       limits regardless of this parameter.
2234     *     <li> <b>UseTimesync:</b> Set to true to delay applying this control
2235     *                              request until a timesync boundary (requires
2236     *                              Phoenix Pro and CANivore). This eliminates the
2237     *                              impact of nondeterministic network delays in
2238     *                              exchange for a larger but deterministic control
2239     *                              latency.
2240     *                              <p>
2241     *                              This requires setting the ControlTimesyncFreqHz
2242     *                              config in MotorOutputConfigs. Additionally, when
2243     *                              this is enabled, the UpdateFreqHz of this
2244     *                              request should be set to 0 Hz.
2245     *   </ul>
2246     * </ul>
2247     *
2248     * @param request Control object to request of the device
2249     * @return Status code of the request
2250     */
2251    StatusCode setControl(DifferentialVelocityDutyCycle request);
2252    
2253    /**
2254     * Request PID to target velocity with a differential position
2255     * setpoint.
2256     * <p>
2257     * This control mode will set the motor's velocity setpoint to the
2258     * velocity specified by the user. It will also set the motor's
2259     * differential position setpoint to the specified position.
2260     * <ul>
2261     *   <li> <b>DifferentialVelocityVoltage Parameters:</b> 
2262     *   <ul>
2263     *     <li> <b>AverageVelocity:</b> Average velocity to drive toward in
2264     *                                  rotations per second.
2265     *     <li> <b>DifferentialPosition:</b> Differential position to drive toward
2266     *                                       in rotations.
2267     *     <li> <b>EnableFOC:</b> Set to true to use FOC commutation (requires
2268     *                            Phoenix Pro), which increases peak power by ~15%
2269     *                            on supported devices (see {@link SupportsFOC}).
2270     *                            Set to false to use trapezoidal commutation.
2271     *                            <p>
2272     *                            FOC improves motor performance by leveraging
2273     *                            torque (current) control.  However, this may be
2274     *                            inconvenient for applications that require
2275     *                            specifying duty cycle or voltage.  CTR-Electronics
2276     *                            has developed a hybrid method that combines the
2277     *                            performances gains of FOC while still allowing
2278     *                            applications to provide duty cycle or voltage
2279     *                            demand.  This not to be confused with simple
2280     *                            sinusoidal control or phase voltage control which
2281     *                            lacks the performance gains.
2282     *     <li> <b>AverageSlot:</b> Select which gains are applied to the average
2283     *                              controller by selecting the slot.  Use the
2284     *                              configuration api to set the gain values for the
2285     *                              selected slot before enabling this feature. Slot
2286     *                              must be within [0,2].
2287     *     <li> <b>DifferentialSlot:</b> Select which gains are applied to the
2288     *                                   differential controller by selecting the
2289     *                                   slot.  Use the configuration api to set the
2290     *                                   gain values for the selected slot before
2291     *                                   enabling this feature. Slot must be within
2292     *                                   [0,2].
2293     *     <li> <b>OverrideBrakeDurNeutral:</b> Set to true to static-brake the
2294     *                                          rotor when output is zero (or within
2295     *                                          deadband).  Set to false to use the
2296     *                                          NeutralMode configuration setting
2297     *                                          (default). This flag exists to
2298     *                                          provide the fundamental behavior of
2299     *                                          this control when output is zero,
2300     *                                          which is to provide 0V to the motor.
2301     *     <li> <b>LimitForwardMotion:</b> Set to true to force forward limiting. 
2302     *                                     This allows users to use other limit
2303     *                                     switch sensors connected to robot
2304     *                                     controller.  This also allows use of
2305     *                                     active sensors that require external
2306     *                                     power.
2307     *     <li> <b>LimitReverseMotion:</b> Set to true to force reverse limiting. 
2308     *                                     This allows users to use other limit
2309     *                                     switch sensors connected to robot
2310     *                                     controller.  This also allows use of
2311     *                                     active sensors that require external
2312     *                                     power.
2313     *     <li> <b>IgnoreHardwareLimits:</b> Set to true to ignore hardware limit
2314     *                                       switches and the LimitForwardMotion and
2315     *                                       LimitReverseMotion parameters, instead
2316     *                                       allowing motion.
2317     *                                       <p>
2318     *                                       This can be useful on mechanisms such
2319     *                                       as an intake/feeder, where a limit
2320     *                                       switch stops motion while intaking but
2321     *                                       should be ignored when feeding to a
2322     *                                       shooter.
2323     *                                       <p>
2324     *                                       The hardware limit faults and
2325     *                                       Forward/ReverseLimit signals will still
2326     *                                       report the values of the limit switches
2327     *                                       regardless of this parameter.
2328     *     <li> <b>IgnoreSoftwareLimits:</b> Set to true to ignore software limits,
2329     *                                       instead allowing motion.
2330     *                                       <p>
2331     *                                       This can be useful when calibrating the
2332     *                                       zero point of a mechanism such as an
2333     *                                       elevator.
2334     *                                       <p>
2335     *                                       The software limit faults will still
2336     *                                       report the values of the software
2337     *                                       limits regardless of this parameter.
2338     *     <li> <b>UseTimesync:</b> Set to true to delay applying this control
2339     *                              request until a timesync boundary (requires
2340     *                              Phoenix Pro and CANivore). This eliminates the
2341     *                              impact of nondeterministic network delays in
2342     *                              exchange for a larger but deterministic control
2343     *                              latency.
2344     *                              <p>
2345     *                              This requires setting the ControlTimesyncFreqHz
2346     *                              config in MotorOutputConfigs. Additionally, when
2347     *                              this is enabled, the UpdateFreqHz of this
2348     *                              request should be set to 0 Hz.
2349     *   </ul>
2350     * </ul>
2351     *
2352     * @param request Control object to request of the device
2353     * @return Status code of the request
2354     */
2355    StatusCode setControl(DifferentialVelocityVoltage request);
2356    
2357    /**
2358     * Requests Motion Magic® to target a final position using a motion
2359     * profile, and PID to a differential position setpoint.
2360     * <p>
2361     * Motion Magic® produces a motion profile in real-time while
2362     * attempting to honor the Cruise Velocity, Acceleration, and
2363     * (optional) Jerk specified via the Motion Magic® configuration
2364     * values.  This control mode does not use the Expo_kV or Expo_kA
2365     * configs.
2366     * <p>
2367     * Target position can be changed on-the-fly and Motion Magic® will do
2368     * its best to adjust the profile.  This control mode is duty cycle
2369     * based, so relevant closed-loop gains will use fractional duty cycle
2370     * for the numerator:  +1.0 represents full forward output.
2371     * <ul>
2372     *   <li> <b>DifferentialMotionMagicDutyCycle Parameters:</b> 
2373     *   <ul>
2374     *     <li> <b>AveragePosition:</b> Average position to drive toward in
2375     *                                  rotations.
2376     *     <li> <b>DifferentialPosition:</b> Differential position to drive toward
2377     *                                       in rotations.
2378     *     <li> <b>EnableFOC:</b> Set to true to use FOC commutation (requires
2379     *                            Phoenix Pro), which increases peak power by ~15%
2380     *                            on supported devices (see {@link SupportsFOC}).
2381     *                            Set to false to use trapezoidal commutation.
2382     *                            <p>
2383     *                            FOC improves motor performance by leveraging
2384     *                            torque (current) control.  However, this may be
2385     *                            inconvenient for applications that require
2386     *                            specifying duty cycle or voltage.  CTR-Electronics
2387     *                            has developed a hybrid method that combines the
2388     *                            performances gains of FOC while still allowing
2389     *                            applications to provide duty cycle or voltage
2390     *                            demand.  This not to be confused with simple
2391     *                            sinusoidal control or phase voltage control which
2392     *                            lacks the performance gains.
2393     *     <li> <b>AverageSlot:</b> Select which gains are applied to the average
2394     *                              controller by selecting the slot.  Use the
2395     *                              configuration api to set the gain values for the
2396     *                              selected slot before enabling this feature. Slot
2397     *                              must be within [0,2].
2398     *     <li> <b>DifferentialSlot:</b> Select which gains are applied to the
2399     *                                   differential controller by selecting the
2400     *                                   slot.  Use the configuration api to set the
2401     *                                   gain values for the selected slot before
2402     *                                   enabling this feature. Slot must be within
2403     *                                   [0,2].
2404     *     <li> <b>OverrideBrakeDurNeutral:</b> Set to true to static-brake the
2405     *                                          rotor when output is zero (or within
2406     *                                          deadband).  Set to false to use the
2407     *                                          NeutralMode configuration setting
2408     *                                          (default). This flag exists to
2409     *                                          provide the fundamental behavior of
2410     *                                          this control when output is zero,
2411     *                                          which is to provide 0V to the motor.
2412     *     <li> <b>LimitForwardMotion:</b> Set to true to force forward limiting. 
2413     *                                     This allows users to use other limit
2414     *                                     switch sensors connected to robot
2415     *                                     controller.  This also allows use of
2416     *                                     active sensors that require external
2417     *                                     power.
2418     *     <li> <b>LimitReverseMotion:</b> Set to true to force reverse limiting. 
2419     *                                     This allows users to use other limit
2420     *                                     switch sensors connected to robot
2421     *                                     controller.  This also allows use of
2422     *                                     active sensors that require external
2423     *                                     power.
2424     *     <li> <b>IgnoreHardwareLimits:</b> Set to true to ignore hardware limit
2425     *                                       switches and the LimitForwardMotion and
2426     *                                       LimitReverseMotion parameters, instead
2427     *                                       allowing motion.
2428     *                                       <p>
2429     *                                       This can be useful on mechanisms such
2430     *                                       as an intake/feeder, where a limit
2431     *                                       switch stops motion while intaking but
2432     *                                       should be ignored when feeding to a
2433     *                                       shooter.
2434     *                                       <p>
2435     *                                       The hardware limit faults and
2436     *                                       Forward/ReverseLimit signals will still
2437     *                                       report the values of the limit switches
2438     *                                       regardless of this parameter.
2439     *     <li> <b>IgnoreSoftwareLimits:</b> Set to true to ignore software limits,
2440     *                                       instead allowing motion.
2441     *                                       <p>
2442     *                                       This can be useful when calibrating the
2443     *                                       zero point of a mechanism such as an
2444     *                                       elevator.
2445     *                                       <p>
2446     *                                       The software limit faults will still
2447     *                                       report the values of the software
2448     *                                       limits regardless of this parameter.
2449     *     <li> <b>UseTimesync:</b> Set to true to delay applying this control
2450     *                              request until a timesync boundary (requires
2451     *                              Phoenix Pro and CANivore). This eliminates the
2452     *                              impact of nondeterministic network delays in
2453     *                              exchange for a larger but deterministic control
2454     *                              latency.
2455     *                              <p>
2456     *                              This requires setting the ControlTimesyncFreqHz
2457     *                              config in MotorOutputConfigs. Additionally, when
2458     *                              this is enabled, the UpdateFreqHz of this
2459     *                              request should be set to 0 Hz.
2460     *   </ul>
2461     * </ul>
2462     *
2463     * @param request Control object to request of the device
2464     * @return Status code of the request
2465     */
2466    StatusCode setControl(DifferentialMotionMagicDutyCycle request);
2467    
2468    /**
2469     * Requests Motion Magic® to target a final position using a motion
2470     * profile, and PID to a differential position setpoint.
2471     * <p>
2472     * Motion Magic® produces a motion profile in real-time while
2473     * attempting to honor the Cruise Velocity, Acceleration, and
2474     * (optional) Jerk specified via the Motion Magic® configuration
2475     * values.  This control mode does not use the Expo_kV or Expo_kA
2476     * configs.
2477     * <p>
2478     * Target position can be changed on-the-fly and Motion Magic® will do
2479     * its best to adjust the profile.  This control mode is
2480     * voltage-based, so relevant closed-loop gains will use Volts for the
2481     * numerator.
2482     * <ul>
2483     *   <li> <b>DifferentialMotionMagicVoltage Parameters:</b> 
2484     *   <ul>
2485     *     <li> <b>AveragePosition:</b> Average position to drive toward in
2486     *                                  rotations.
2487     *     <li> <b>DifferentialPosition:</b> Differential position to drive toward
2488     *                                       in rotations.
2489     *     <li> <b>EnableFOC:</b> Set to true to use FOC commutation (requires
2490     *                            Phoenix Pro), which increases peak power by ~15%
2491     *                            on supported devices (see {@link SupportsFOC}).
2492     *                            Set to false to use trapezoidal commutation.
2493     *                            <p>
2494     *                            FOC improves motor performance by leveraging
2495     *                            torque (current) control.  However, this may be
2496     *                            inconvenient for applications that require
2497     *                            specifying duty cycle or voltage.  CTR-Electronics
2498     *                            has developed a hybrid method that combines the
2499     *                            performances gains of FOC while still allowing
2500     *                            applications to provide duty cycle or voltage
2501     *                            demand.  This not to be confused with simple
2502     *                            sinusoidal control or phase voltage control which
2503     *                            lacks the performance gains.
2504     *     <li> <b>AverageSlot:</b> Select which gains are applied to the average
2505     *                              controller by selecting the slot.  Use the
2506     *                              configuration api to set the gain values for the
2507     *                              selected slot before enabling this feature. Slot
2508     *                              must be within [0,2].
2509     *     <li> <b>DifferentialSlot:</b> Select which gains are applied to the
2510     *                                   differential controller by selecting the
2511     *                                   slot.  Use the configuration api to set the
2512     *                                   gain values for the selected slot before
2513     *                                   enabling this feature. Slot must be within
2514     *                                   [0,2].
2515     *     <li> <b>OverrideBrakeDurNeutral:</b> Set to true to static-brake the
2516     *                                          rotor when output is zero (or within
2517     *                                          deadband).  Set to false to use the
2518     *                                          NeutralMode configuration setting
2519     *                                          (default). This flag exists to
2520     *                                          provide the fundamental behavior of
2521     *                                          this control when output is zero,
2522     *                                          which is to provide 0V to the motor.
2523     *     <li> <b>LimitForwardMotion:</b> Set to true to force forward limiting. 
2524     *                                     This allows users to use other limit
2525     *                                     switch sensors connected to robot
2526     *                                     controller.  This also allows use of
2527     *                                     active sensors that require external
2528     *                                     power.
2529     *     <li> <b>LimitReverseMotion:</b> Set to true to force reverse limiting. 
2530     *                                     This allows users to use other limit
2531     *                                     switch sensors connected to robot
2532     *                                     controller.  This also allows use of
2533     *                                     active sensors that require external
2534     *                                     power.
2535     *     <li> <b>IgnoreHardwareLimits:</b> Set to true to ignore hardware limit
2536     *                                       switches and the LimitForwardMotion and
2537     *                                       LimitReverseMotion parameters, instead
2538     *                                       allowing motion.
2539     *                                       <p>
2540     *                                       This can be useful on mechanisms such
2541     *                                       as an intake/feeder, where a limit
2542     *                                       switch stops motion while intaking but
2543     *                                       should be ignored when feeding to a
2544     *                                       shooter.
2545     *                                       <p>
2546     *                                       The hardware limit faults and
2547     *                                       Forward/ReverseLimit signals will still
2548     *                                       report the values of the limit switches
2549     *                                       regardless of this parameter.
2550     *     <li> <b>IgnoreSoftwareLimits:</b> Set to true to ignore software limits,
2551     *                                       instead allowing motion.
2552     *                                       <p>
2553     *                                       This can be useful when calibrating the
2554     *                                       zero point of a mechanism such as an
2555     *                                       elevator.
2556     *                                       <p>
2557     *                                       The software limit faults will still
2558     *                                       report the values of the software
2559     *                                       limits regardless of this parameter.
2560     *     <li> <b>UseTimesync:</b> Set to true to delay applying this control
2561     *                              request until a timesync boundary (requires
2562     *                              Phoenix Pro and CANivore). This eliminates the
2563     *                              impact of nondeterministic network delays in
2564     *                              exchange for a larger but deterministic control
2565     *                              latency.
2566     *                              <p>
2567     *                              This requires setting the ControlTimesyncFreqHz
2568     *                              config in MotorOutputConfigs. Additionally, when
2569     *                              this is enabled, the UpdateFreqHz of this
2570     *                              request should be set to 0 Hz.
2571     *   </ul>
2572     * </ul>
2573     *
2574     * @param request Control object to request of the device
2575     * @return Status code of the request
2576     */
2577    StatusCode setControl(DifferentialMotionMagicVoltage request);
2578    
2579    /**
2580     * Requests Motion Magic® to target a final position using an
2581     * exponential motion profile, and PID to a differential position
2582     * setpoint.
2583     * <p>
2584     * Motion Magic® Expo produces a motion profile in real-time while
2585     * attempting to honor the Cruise Velocity (optional) and the
2586     * mechanism kV and kA, specified via the Motion Magic® configuration
2587     * values.  Note that unlike the slot gains, the Expo_kV and Expo_kA
2588     * configs are always in output units of Volts.
2589     * <p>
2590     * Setting Cruise Velocity to 0 will allow the profile to run to the
2591     * max possible velocity based on Expo_kV.  This control mode does not
2592     * use the Acceleration or Jerk configs.
2593     * <p>
2594     * Target position can be changed on-the-fly and Motion Magic® will do
2595     * its best to adjust the profile.  This control mode is duty cycle
2596     * based, so relevant closed-loop gains will use fractional duty cycle
2597     * for the numerator:  +1.0 represents full forward output.
2598     * <ul>
2599     *   <li> <b>DifferentialMotionMagicExpoDutyCycle Parameters:</b> 
2600     *   <ul>
2601     *     <li> <b>AveragePosition:</b> Average position to drive toward in
2602     *                                  rotations.
2603     *     <li> <b>DifferentialPosition:</b> Differential position to drive toward
2604     *                                       in rotations.
2605     *     <li> <b>EnableFOC:</b> Set to true to use FOC commutation (requires
2606     *                            Phoenix Pro), which increases peak power by ~15%
2607     *                            on supported devices (see {@link SupportsFOC}).
2608     *                            Set to false to use trapezoidal commutation.
2609     *                            <p>
2610     *                            FOC improves motor performance by leveraging
2611     *                            torque (current) control.  However, this may be
2612     *                            inconvenient for applications that require
2613     *                            specifying duty cycle or voltage.  CTR-Electronics
2614     *                            has developed a hybrid method that combines the
2615     *                            performances gains of FOC while still allowing
2616     *                            applications to provide duty cycle or voltage
2617     *                            demand.  This not to be confused with simple
2618     *                            sinusoidal control or phase voltage control which
2619     *                            lacks the performance gains.
2620     *     <li> <b>AverageSlot:</b> Select which gains are applied to the average
2621     *                              controller by selecting the slot.  Use the
2622     *                              configuration api to set the gain values for the
2623     *                              selected slot before enabling this feature. Slot
2624     *                              must be within [0,2].
2625     *     <li> <b>DifferentialSlot:</b> Select which gains are applied to the
2626     *                                   differential controller by selecting the
2627     *                                   slot.  Use the configuration api to set the
2628     *                                   gain values for the selected slot before
2629     *                                   enabling this feature. Slot must be within
2630     *                                   [0,2].
2631     *     <li> <b>OverrideBrakeDurNeutral:</b> Set to true to static-brake the
2632     *                                          rotor when output is zero (or within
2633     *                                          deadband).  Set to false to use the
2634     *                                          NeutralMode configuration setting
2635     *                                          (default). This flag exists to
2636     *                                          provide the fundamental behavior of
2637     *                                          this control when output is zero,
2638     *                                          which is to provide 0V to the motor.
2639     *     <li> <b>LimitForwardMotion:</b> Set to true to force forward limiting. 
2640     *                                     This allows users to use other limit
2641     *                                     switch sensors connected to robot
2642     *                                     controller.  This also allows use of
2643     *                                     active sensors that require external
2644     *                                     power.
2645     *     <li> <b>LimitReverseMotion:</b> Set to true to force reverse limiting. 
2646     *                                     This allows users to use other limit
2647     *                                     switch sensors connected to robot
2648     *                                     controller.  This also allows use of
2649     *                                     active sensors that require external
2650     *                                     power.
2651     *     <li> <b>IgnoreHardwareLimits:</b> Set to true to ignore hardware limit
2652     *                                       switches and the LimitForwardMotion and
2653     *                                       LimitReverseMotion parameters, instead
2654     *                                       allowing motion.
2655     *                                       <p>
2656     *                                       This can be useful on mechanisms such
2657     *                                       as an intake/feeder, where a limit
2658     *                                       switch stops motion while intaking but
2659     *                                       should be ignored when feeding to a
2660     *                                       shooter.
2661     *                                       <p>
2662     *                                       The hardware limit faults and
2663     *                                       Forward/ReverseLimit signals will still
2664     *                                       report the values of the limit switches
2665     *                                       regardless of this parameter.
2666     *     <li> <b>IgnoreSoftwareLimits:</b> Set to true to ignore software limits,
2667     *                                       instead allowing motion.
2668     *                                       <p>
2669     *                                       This can be useful when calibrating the
2670     *                                       zero point of a mechanism such as an
2671     *                                       elevator.
2672     *                                       <p>
2673     *                                       The software limit faults will still
2674     *                                       report the values of the software
2675     *                                       limits regardless of this parameter.
2676     *     <li> <b>UseTimesync:</b> Set to true to delay applying this control
2677     *                              request until a timesync boundary (requires
2678     *                              Phoenix Pro and CANivore). This eliminates the
2679     *                              impact of nondeterministic network delays in
2680     *                              exchange for a larger but deterministic control
2681     *                              latency.
2682     *                              <p>
2683     *                              This requires setting the ControlTimesyncFreqHz
2684     *                              config in MotorOutputConfigs. Additionally, when
2685     *                              this is enabled, the UpdateFreqHz of this
2686     *                              request should be set to 0 Hz.
2687     *   </ul>
2688     * </ul>
2689     *
2690     * @param request Control object to request of the device
2691     * @return Status code of the request
2692     */
2693    StatusCode setControl(DifferentialMotionMagicExpoDutyCycle request);
2694    
2695    /**
2696     * Requests Motion Magic® to target a final position using an
2697     * exponential motion profile, and PID to a differential position
2698     * setpoint.
2699     * <p>
2700     * Motion Magic® Expo produces a motion profile in real-time while
2701     * attempting to honor the Cruise Velocity (optional) and the
2702     * mechanism kV and kA, specified via the Motion Magic® configuration
2703     * values.  Note that unlike the slot gains, the Expo_kV and Expo_kA
2704     * configs are always in output units of Volts.
2705     * <p>
2706     * Setting Cruise Velocity to 0 will allow the profile to run to the
2707     * max possible velocity based on Expo_kV.  This control mode does not
2708     * use the Acceleration or Jerk configs.
2709     * <p>
2710     * Target position can be changed on-the-fly and Motion Magic® will do
2711     * its best to adjust the profile.  This control mode is
2712     * voltage-based, so relevant closed-loop gains will use Volts for the
2713     * numerator.
2714     * <ul>
2715     *   <li> <b>DifferentialMotionMagicExpoVoltage Parameters:</b> 
2716     *   <ul>
2717     *     <li> <b>AveragePosition:</b> Average position to drive toward in
2718     *                                  rotations.
2719     *     <li> <b>DifferentialPosition:</b> Differential position to drive toward
2720     *                                       in rotations.
2721     *     <li> <b>EnableFOC:</b> Set to true to use FOC commutation (requires
2722     *                            Phoenix Pro), which increases peak power by ~15%
2723     *                            on supported devices (see {@link SupportsFOC}).
2724     *                            Set to false to use trapezoidal commutation.
2725     *                            <p>
2726     *                            FOC improves motor performance by leveraging
2727     *                            torque (current) control.  However, this may be
2728     *                            inconvenient for applications that require
2729     *                            specifying duty cycle or voltage.  CTR-Electronics
2730     *                            has developed a hybrid method that combines the
2731     *                            performances gains of FOC while still allowing
2732     *                            applications to provide duty cycle or voltage
2733     *                            demand.  This not to be confused with simple
2734     *                            sinusoidal control or phase voltage control which
2735     *                            lacks the performance gains.
2736     *     <li> <b>AverageSlot:</b> Select which gains are applied to the average
2737     *                              controller by selecting the slot.  Use the
2738     *                              configuration api to set the gain values for the
2739     *                              selected slot before enabling this feature. Slot
2740     *                              must be within [0,2].
2741     *     <li> <b>DifferentialSlot:</b> Select which gains are applied to the
2742     *                                   differential controller by selecting the
2743     *                                   slot.  Use the configuration api to set the
2744     *                                   gain values for the selected slot before
2745     *                                   enabling this feature. Slot must be within
2746     *                                   [0,2].
2747     *     <li> <b>OverrideBrakeDurNeutral:</b> Set to true to static-brake the
2748     *                                          rotor when output is zero (or within
2749     *                                          deadband).  Set to false to use the
2750     *                                          NeutralMode configuration setting
2751     *                                          (default). This flag exists to
2752     *                                          provide the fundamental behavior of
2753     *                                          this control when output is zero,
2754     *                                          which is to provide 0V to the motor.
2755     *     <li> <b>LimitForwardMotion:</b> Set to true to force forward limiting. 
2756     *                                     This allows users to use other limit
2757     *                                     switch sensors connected to robot
2758     *                                     controller.  This also allows use of
2759     *                                     active sensors that require external
2760     *                                     power.
2761     *     <li> <b>LimitReverseMotion:</b> Set to true to force reverse limiting. 
2762     *                                     This allows users to use other limit
2763     *                                     switch sensors connected to robot
2764     *                                     controller.  This also allows use of
2765     *                                     active sensors that require external
2766     *                                     power.
2767     *     <li> <b>IgnoreHardwareLimits:</b> Set to true to ignore hardware limit
2768     *                                       switches and the LimitForwardMotion and
2769     *                                       LimitReverseMotion parameters, instead
2770     *                                       allowing motion.
2771     *                                       <p>
2772     *                                       This can be useful on mechanisms such
2773     *                                       as an intake/feeder, where a limit
2774     *                                       switch stops motion while intaking but
2775     *                                       should be ignored when feeding to a
2776     *                                       shooter.
2777     *                                       <p>
2778     *                                       The hardware limit faults and
2779     *                                       Forward/ReverseLimit signals will still
2780     *                                       report the values of the limit switches
2781     *                                       regardless of this parameter.
2782     *     <li> <b>IgnoreSoftwareLimits:</b> Set to true to ignore software limits,
2783     *                                       instead allowing motion.
2784     *                                       <p>
2785     *                                       This can be useful when calibrating the
2786     *                                       zero point of a mechanism such as an
2787     *                                       elevator.
2788     *                                       <p>
2789     *                                       The software limit faults will still
2790     *                                       report the values of the software
2791     *                                       limits regardless of this parameter.
2792     *     <li> <b>UseTimesync:</b> Set to true to delay applying this control
2793     *                              request until a timesync boundary (requires
2794     *                              Phoenix Pro and CANivore). This eliminates the
2795     *                              impact of nondeterministic network delays in
2796     *                              exchange for a larger but deterministic control
2797     *                              latency.
2798     *                              <p>
2799     *                              This requires setting the ControlTimesyncFreqHz
2800     *                              config in MotorOutputConfigs. Additionally, when
2801     *                              this is enabled, the UpdateFreqHz of this
2802     *                              request should be set to 0 Hz.
2803     *   </ul>
2804     * </ul>
2805     *
2806     * @param request Control object to request of the device
2807     * @return Status code of the request
2808     */
2809    StatusCode setControl(DifferentialMotionMagicExpoVoltage request);
2810    
2811    /**
2812     * Requests Motion Magic® to target a final velocity using a motion
2813     * profile, and PID to a differential position setpoint.  This allows
2814     * smooth transitions between velocity set points.
2815     * <p>
2816     * Motion Magic® Velocity produces a motion profile in real-time while
2817     * attempting to honor the specified Acceleration and (optional) Jerk.
2818     *  This control mode does not use the CruiseVelocity, Expo_kV, or
2819     * Expo_kA configs.
2820     * <p>
2821     * Acceleration and jerk are specified in the Motion Magic® persistent
2822     * configuration values.  If Jerk is set to zero, Motion Magic® will
2823     * produce a trapezoidal acceleration profile.
2824     * <p>
2825     * Target velocity can also be changed on-the-fly and Motion Magic®
2826     * will do its best to adjust the profile.  This control mode is duty
2827     * cycle based, so relevant closed-loop gains will use fractional duty
2828     * cycle for the numerator:  +1.0 represents full forward output.
2829     * <ul>
2830     *   <li> <b>DifferentialMotionMagicVelocityDutyCycle Parameters:</b> 
2831     *   <ul>
2832     *     <li> <b>AverageVelocity:</b> Average velocity to drive toward in
2833     *                                  rotations per second.
2834     *     <li> <b>DifferentialPosition:</b> Differential position to drive toward
2835     *                                       in rotations.
2836     *     <li> <b>EnableFOC:</b> Set to true to use FOC commutation (requires
2837     *                            Phoenix Pro), which increases peak power by ~15%
2838     *                            on supported devices (see {@link SupportsFOC}).
2839     *                            Set to false to use trapezoidal commutation.
2840     *                            <p>
2841     *                            FOC improves motor performance by leveraging
2842     *                            torque (current) control.  However, this may be
2843     *                            inconvenient for applications that require
2844     *                            specifying duty cycle or voltage.  CTR-Electronics
2845     *                            has developed a hybrid method that combines the
2846     *                            performances gains of FOC while still allowing
2847     *                            applications to provide duty cycle or voltage
2848     *                            demand.  This not to be confused with simple
2849     *                            sinusoidal control or phase voltage control which
2850     *                            lacks the performance gains.
2851     *     <li> <b>AverageSlot:</b> Select which gains are applied to the average
2852     *                              controller by selecting the slot.  Use the
2853     *                              configuration api to set the gain values for the
2854     *                              selected slot before enabling this feature. Slot
2855     *                              must be within [0,2].
2856     *     <li> <b>DifferentialSlot:</b> Select which gains are applied to the
2857     *                                   differential controller by selecting the
2858     *                                   slot.  Use the configuration api to set the
2859     *                                   gain values for the selected slot before
2860     *                                   enabling this feature. Slot must be within
2861     *                                   [0,2].
2862     *     <li> <b>OverrideBrakeDurNeutral:</b> Set to true to static-brake the
2863     *                                          rotor when output is zero (or within
2864     *                                          deadband).  Set to false to use the
2865     *                                          NeutralMode configuration setting
2866     *                                          (default). This flag exists to
2867     *                                          provide the fundamental behavior of
2868     *                                          this control when output is zero,
2869     *                                          which is to provide 0V to the motor.
2870     *     <li> <b>LimitForwardMotion:</b> Set to true to force forward limiting. 
2871     *                                     This allows users to use other limit
2872     *                                     switch sensors connected to robot
2873     *                                     controller.  This also allows use of
2874     *                                     active sensors that require external
2875     *                                     power.
2876     *     <li> <b>LimitReverseMotion:</b> Set to true to force reverse limiting. 
2877     *                                     This allows users to use other limit
2878     *                                     switch sensors connected to robot
2879     *                                     controller.  This also allows use of
2880     *                                     active sensors that require external
2881     *                                     power.
2882     *     <li> <b>IgnoreHardwareLimits:</b> Set to true to ignore hardware limit
2883     *                                       switches and the LimitForwardMotion and
2884     *                                       LimitReverseMotion parameters, instead
2885     *                                       allowing motion.
2886     *                                       <p>
2887     *                                       This can be useful on mechanisms such
2888     *                                       as an intake/feeder, where a limit
2889     *                                       switch stops motion while intaking but
2890     *                                       should be ignored when feeding to a
2891     *                                       shooter.
2892     *                                       <p>
2893     *                                       The hardware limit faults and
2894     *                                       Forward/ReverseLimit signals will still
2895     *                                       report the values of the limit switches
2896     *                                       regardless of this parameter.
2897     *     <li> <b>IgnoreSoftwareLimits:</b> Set to true to ignore software limits,
2898     *                                       instead allowing motion.
2899     *                                       <p>
2900     *                                       This can be useful when calibrating the
2901     *                                       zero point of a mechanism such as an
2902     *                                       elevator.
2903     *                                       <p>
2904     *                                       The software limit faults will still
2905     *                                       report the values of the software
2906     *                                       limits regardless of this parameter.
2907     *     <li> <b>UseTimesync:</b> Set to true to delay applying this control
2908     *                              request until a timesync boundary (requires
2909     *                              Phoenix Pro and CANivore). This eliminates the
2910     *                              impact of nondeterministic network delays in
2911     *                              exchange for a larger but deterministic control
2912     *                              latency.
2913     *                              <p>
2914     *                              This requires setting the ControlTimesyncFreqHz
2915     *                              config in MotorOutputConfigs. Additionally, when
2916     *                              this is enabled, the UpdateFreqHz of this
2917     *                              request should be set to 0 Hz.
2918     *   </ul>
2919     * </ul>
2920     *
2921     * @param request Control object to request of the device
2922     * @return Status code of the request
2923     */
2924    StatusCode setControl(DifferentialMotionMagicVelocityDutyCycle request);
2925    
2926    /**
2927     * Requests Motion Magic® to target a final velocity using a motion
2928     * profile, and PID to a differential position setpoint.  This allows
2929     * smooth transitions between velocity set points.
2930     * <p>
2931     * Motion Magic® Velocity produces a motion profile in real-time while
2932     * attempting to honor the specified Acceleration and (optional) Jerk.
2933     *  This control mode does not use the CruiseVelocity, Expo_kV, or
2934     * Expo_kA configs.
2935     * <p>
2936     * Acceleration and jerk are specified in the Motion Magic® persistent
2937     * configuration values.  If Jerk is set to zero, Motion Magic® will
2938     * produce a trapezoidal acceleration profile.
2939     * <p>
2940     * Target velocity can also be changed on-the-fly and Motion Magic®
2941     * will do its best to adjust the profile.  This control mode is
2942     * voltage-based, so relevant closed-loop gains will use Volts for the
2943     * numerator.
2944     * <ul>
2945     *   <li> <b>DifferentialMotionMagicVelocityVoltage Parameters:</b> 
2946     *   <ul>
2947     *     <li> <b>AverageVelocity:</b> Average velocity to drive toward in
2948     *                                  rotations per second.
2949     *     <li> <b>DifferentialPosition:</b> Differential position to drive toward
2950     *                                       in rotations.
2951     *     <li> <b>EnableFOC:</b> Set to true to use FOC commutation (requires
2952     *                            Phoenix Pro), which increases peak power by ~15%
2953     *                            on supported devices (see {@link SupportsFOC}).
2954     *                            Set to false to use trapezoidal commutation.
2955     *                            <p>
2956     *                            FOC improves motor performance by leveraging
2957     *                            torque (current) control.  However, this may be
2958     *                            inconvenient for applications that require
2959     *                            specifying duty cycle or voltage.  CTR-Electronics
2960     *                            has developed a hybrid method that combines the
2961     *                            performances gains of FOC while still allowing
2962     *                            applications to provide duty cycle or voltage
2963     *                            demand.  This not to be confused with simple
2964     *                            sinusoidal control or phase voltage control which
2965     *                            lacks the performance gains.
2966     *     <li> <b>AverageSlot:</b> Select which gains are applied to the average
2967     *                              controller by selecting the slot.  Use the
2968     *                              configuration api to set the gain values for the
2969     *                              selected slot before enabling this feature. Slot
2970     *                              must be within [0,2].
2971     *     <li> <b>DifferentialSlot:</b> Select which gains are applied to the
2972     *                                   differential controller by selecting the
2973     *                                   slot.  Use the configuration api to set the
2974     *                                   gain values for the selected slot before
2975     *                                   enabling this feature. Slot must be within
2976     *                                   [0,2].
2977     *     <li> <b>OverrideBrakeDurNeutral:</b> Set to true to static-brake the
2978     *                                          rotor when output is zero (or within
2979     *                                          deadband).  Set to false to use the
2980     *                                          NeutralMode configuration setting
2981     *                                          (default). This flag exists to
2982     *                                          provide the fundamental behavior of
2983     *                                          this control when output is zero,
2984     *                                          which is to provide 0V to the motor.
2985     *     <li> <b>LimitForwardMotion:</b> Set to true to force forward limiting. 
2986     *                                     This allows users to use other limit
2987     *                                     switch sensors connected to robot
2988     *                                     controller.  This also allows use of
2989     *                                     active sensors that require external
2990     *                                     power.
2991     *     <li> <b>LimitReverseMotion:</b> Set to true to force reverse limiting. 
2992     *                                     This allows users to use other limit
2993     *                                     switch sensors connected to robot
2994     *                                     controller.  This also allows use of
2995     *                                     active sensors that require external
2996     *                                     power.
2997     *     <li> <b>IgnoreHardwareLimits:</b> Set to true to ignore hardware limit
2998     *                                       switches and the LimitForwardMotion and
2999     *                                       LimitReverseMotion parameters, instead
3000     *                                       allowing motion.
3001     *                                       <p>
3002     *                                       This can be useful on mechanisms such
3003     *                                       as an intake/feeder, where a limit
3004     *                                       switch stops motion while intaking but
3005     *                                       should be ignored when feeding to a
3006     *                                       shooter.
3007     *                                       <p>
3008     *                                       The hardware limit faults and
3009     *                                       Forward/ReverseLimit signals will still
3010     *                                       report the values of the limit switches
3011     *                                       regardless of this parameter.
3012     *     <li> <b>IgnoreSoftwareLimits:</b> Set to true to ignore software limits,
3013     *                                       instead allowing motion.
3014     *                                       <p>
3015     *                                       This can be useful when calibrating the
3016     *                                       zero point of a mechanism such as an
3017     *                                       elevator.
3018     *                                       <p>
3019     *                                       The software limit faults will still
3020     *                                       report the values of the software
3021     *                                       limits regardless of this parameter.
3022     *     <li> <b>UseTimesync:</b> Set to true to delay applying this control
3023     *                              request until a timesync boundary (requires
3024     *                              Phoenix Pro and CANivore). This eliminates the
3025     *                              impact of nondeterministic network delays in
3026     *                              exchange for a larger but deterministic control
3027     *                              latency.
3028     *                              <p>
3029     *                              This requires setting the ControlTimesyncFreqHz
3030     *                              config in MotorOutputConfigs. Additionally, when
3031     *                              this is enabled, the UpdateFreqHz of this
3032     *                              request should be set to 0 Hz.
3033     *   </ul>
3034     * </ul>
3035     *
3036     * @param request Control object to request of the device
3037     * @return Status code of the request
3038     */
3039    StatusCode setControl(DifferentialMotionMagicVelocityVoltage request);
3040    
3041    /**
3042     * Follow the motor output of another Talon.
3043     * <p>
3044     * The follower will atomically change its output type when it
3045     * receives the leader's latest output status signal (DutyCycle,
3046     * MotorVoltage, TorqueCurrent). If Talon is in torque control, the
3047     * torque is copied - which will increase the total torque applied. If
3048     * Talon is in duty cycle output control, the duty cycle is matched.
3049     * If Talon is in voltage output control, the motor voltage is
3050     * matched. Motor direction either matches the leader's configured
3051     * direction or opposes it based on the MotorAlignment.
3052     * <p>
3053     * The leader must ensure the status signal corresponding to its
3054     * control output type (DutyCycle, MotorVoltage, TorqueCurrent) is
3055     * enabled. The update rate of the status signal determines the update
3056     * rate of the follower's output and should be no slower than 20 Hz.
3057     * <ul>
3058     *   <li> <b>Follower Parameters:</b> 
3059     *   <ul>
3060     *     <li> <b>LeaderID:</b> Device ID of the leader to follow.
3061     *     <li> <b>MotorAlignment:</b> Set to Aligned for motor invert to match the
3062     *                                 leader's configured Invert - which is typical
3063     *                                 when leader and follower are mechanically
3064     *                                 linked and spin in the same direction.  Set
3065     *                                 to Opposed for motor invert to oppose the
3066     *                                 leader's configured Invert - this is typical
3067     *                                 where the leader and follower mechanically
3068     *                                 spin in opposite directions.
3069     *   </ul>
3070     * </ul>
3071     *
3072     * @param request Control object to request of the device
3073     * @return Status code of the request
3074     */
3075    StatusCode setControl(Follower request);
3076    
3077    /**
3078     * Follow the motor output of another Talon while ignoring the
3079     * leader's invert setting.
3080     * <p>
3081     * The follower will atomically change its output type when it
3082     * receives the leader's latest output status signal (DutyCycle,
3083     * MotorVoltage, TorqueCurrent). If Talon is in torque control, the
3084     * torque is copied - which will increase the total torque applied. If
3085     * Talon is in duty cycle output control, the duty cycle is matched.
3086     * If Talon is in voltage output control, the motor voltage is
3087     * matched. Motor direction is strictly determined by the configured
3088     * invert and not the leader. If you want motor direction to match or
3089     * oppose the leader, use Follower instead.
3090     * <p>
3091     * The leader must ensure the status signal corresponding to its
3092     * control output type (DutyCycle, MotorVoltage, TorqueCurrent) is
3093     * enabled. The update rate of the status signal determines the update
3094     * rate of the follower's output and should be no slower than 20 Hz.
3095     * <ul>
3096     *   <li> <b>StrictFollower Parameters:</b> 
3097     *   <ul>
3098     *     <li> <b>LeaderID:</b> Device ID of the leader to follow.
3099     *   </ul>
3100     * </ul>
3101     *
3102     * @param request Control object to request of the device
3103     * @return Status code of the request
3104     */
3105    StatusCode setControl(StrictFollower request);
3106    
3107    /**
3108     * Follow the differential motor output of another Talon.
3109     * <p>
3110     * If Talon is in torque control, the differential torque is copied -
3111     * which will increase the total torque applied. If Talon is in duty
3112     * cycle output control, the differential duty cycle is matched. If
3113     * Talon is in voltage output control, the differential motor voltage
3114     * is matched. Motor direction either matches leader's configured
3115     * direction or opposes it based on the MotorAlignment.
3116     * <p>
3117     * The leader must enable its DifferentialOutput status signal. The
3118     * update rate of the status signal determines the update rate of the
3119     * follower's output and should be no slower than 20 Hz.
3120     * <ul>
3121     *   <li> <b>DifferentialFollower Parameters:</b> 
3122     *   <ul>
3123     *     <li> <b>LeaderID:</b> Device ID of the differential leader to follow.
3124     *     <li> <b>MotorAlignment:</b> Set to Aligned for motor invert to match the
3125     *                                 leader's configured Invert - which is typical
3126     *                                 when leader and follower are mechanically
3127     *                                 linked and spin in the same direction.  Set
3128     *                                 to Opposed for motor invert to oppose the
3129     *                                 leader's configured Invert - this is typical
3130     *                                 where the leader and follower mechanically
3131     *                                 spin in opposite directions.
3132     *   </ul>
3133     * </ul>
3134     *
3135     * @param request Control object to request of the device
3136     * @return Status code of the request
3137     */
3138    StatusCode setControl(DifferentialFollower request);
3139    
3140    /**
3141     * Follow the differential motor output of another Talon while
3142     * ignoring the leader's invert setting.
3143     * <p>
3144     * If Talon is in torque control, the differential torque is copied -
3145     * which will increase the total torque applied. If Talon is in duty
3146     * cycle output control, the differential duty cycle is matched. If
3147     * Talon is in voltage output control, the differential motor voltage
3148     * is matched. Motor direction is strictly determined by the
3149     * configured invert and not the leader. If you want motor direction
3150     * to match or oppose the leader, use DifferentialFollower instead.
3151     * <p>
3152     * The leader must enable its DifferentialOutput status signal. The
3153     * update rate of the status signal determines the update rate of the
3154     * follower's output and should be no slower than 20 Hz.
3155     * <ul>
3156     *   <li> <b>DifferentialStrictFollower Parameters:</b> 
3157     *   <ul>
3158     *     <li> <b>LeaderID:</b> Device ID of the differential leader to follow.
3159     *   </ul>
3160     * </ul>
3161     *
3162     * @param request Control object to request of the device
3163     * @return Status code of the request
3164     */
3165    StatusCode setControl(DifferentialStrictFollower request);
3166    
3167    /**
3168     * Applies full neutral-brake by shorting motor leads together.
3169     * <ul>
3170     *   <li> <b>StaticBrake Parameters:</b> 
3171     *   <ul>
3172     *     <li> <b>UseTimesync:</b> Set to true to delay applying this control
3173     *                              request until a timesync boundary (requires
3174     *                              Phoenix Pro and CANivore). This eliminates the
3175     *                              impact of nondeterministic network delays in
3176     *                              exchange for a larger but deterministic control
3177     *                              latency.
3178     *                              <p>
3179     *                              This requires setting the ControlTimesyncFreqHz
3180     *                              config in MotorOutputConfigs. Additionally, when
3181     *                              this is enabled, the UpdateFreqHz of this
3182     *                              request should be set to 0 Hz.
3183     *   </ul>
3184     * </ul>
3185     *
3186     * @param request Control object to request of the device
3187     * @return Status code of the request
3188     */
3189    StatusCode setControl(StaticBrake request);
3190    
3191    /**
3192     * Request neutral output of actuator. The applied brake type is
3193     * determined by the NeutralMode configuration.
3194     * <ul>
3195     *   <li> <b>NeutralOut Parameters:</b> 
3196     *   <ul>
3197     *     <li> <b>UseTimesync:</b> Set to true to delay applying this control
3198     *                              request until a timesync boundary (requires
3199     *                              Phoenix Pro and CANivore). This eliminates the
3200     *                              impact of nondeterministic network delays in
3201     *                              exchange for a larger but deterministic control
3202     *                              latency.
3203     *                              <p>
3204     *                              This requires setting the ControlTimesyncFreqHz
3205     *                              config in MotorOutputConfigs. Additionally, when
3206     *                              this is enabled, the UpdateFreqHz of this
3207     *                              request should be set to 0 Hz.
3208     *   </ul>
3209     * </ul>
3210     *
3211     * @param request Control object to request of the device
3212     * @return Status code of the request
3213     */
3214    StatusCode setControl(NeutralOut request);
3215    
3216    /**
3217     * Request coast neutral output of actuator.  The bridge is disabled
3218     * and the rotor is allowed to coast.
3219     * <ul>
3220     *   <li> <b>CoastOut Parameters:</b> 
3221     *   <ul>
3222     *     <li> <b>UseTimesync:</b> Set to true to delay applying this control
3223     *                              request until a timesync boundary (requires
3224     *                              Phoenix Pro and CANivore). This eliminates the
3225     *                              impact of nondeterministic network delays in
3226     *                              exchange for a larger but deterministic control
3227     *                              latency.
3228     *                              <p>
3229     *                              This requires setting the ControlTimesyncFreqHz
3230     *                              config in MotorOutputConfigs. Additionally, when
3231     *                              this is enabled, the UpdateFreqHz of this
3232     *                              request should be set to 0 Hz.
3233     *   </ul>
3234     * </ul>
3235     *
3236     * @param request Control object to request of the device
3237     * @return Status code of the request
3238     */
3239    StatusCode setControl(CoastOut request);
3240    
3241    /**
3242     * Differential control with duty cycle average target and position
3243     * difference target.
3244     * <ul>
3245     *   <li> <b>Diff_DutyCycleOut_Position Parameters:</b> 
3246     *   <ul>
3247     *     <li> <b>AverageRequest:</b> Average DutyCycleOut request of the
3248     *                                 mechanism.
3249     *     <li> <b>DifferentialRequest:</b> Differential PositionDutyCycle request
3250     *                                      of the mechanism.
3251     *   </ul>
3252     * </ul>
3253     *
3254     * @param request Control object to request of the device
3255     * @return Status code of the request
3256     */
3257    StatusCode setControl(Diff_DutyCycleOut_Position request);
3258    
3259    /**
3260     * Differential control with position average target and position
3261     * difference target using duty cycle control.
3262     * <ul>
3263     *   <li> <b>Diff_PositionDutyCycle_Position Parameters:</b> 
3264     *   <ul>
3265     *     <li> <b>AverageRequest:</b> Average PositionDutyCycle request of the
3266     *                                 mechanism.
3267     *     <li> <b>DifferentialRequest:</b> Differential PositionDutyCycle request
3268     *                                      of the mechanism.
3269     *   </ul>
3270     * </ul>
3271     *
3272     * @param request Control object to request of the device
3273     * @return Status code of the request
3274     */
3275    StatusCode setControl(Diff_PositionDutyCycle_Position request);
3276    
3277    /**
3278     * Differential control with velocity average target and position
3279     * difference target using duty cycle control.
3280     * <ul>
3281     *   <li> <b>Diff_VelocityDutyCycle_Position Parameters:</b> 
3282     *   <ul>
3283     *     <li> <b>AverageRequest:</b> Average VelocityDutyCYcle request of the
3284     *                                 mechanism.
3285     *     <li> <b>DifferentialRequest:</b> Differential PositionDutyCycle request
3286     *                                      of the mechanism.
3287     *   </ul>
3288     * </ul>
3289     *
3290     * @param request Control object to request of the device
3291     * @return Status code of the request
3292     */
3293    StatusCode setControl(Diff_VelocityDutyCycle_Position request);
3294    
3295    /**
3296     * Differential control with Motion Magic® average target and position
3297     * difference target using duty cycle control.
3298     * <ul>
3299     *   <li> <b>Diff_MotionMagicDutyCycle_Position Parameters:</b> 
3300     *   <ul>
3301     *     <li> <b>AverageRequest:</b> Average MotionMagicDutyCycle request of the
3302     *                                 mechanism.
3303     *     <li> <b>DifferentialRequest:</b> Differential PositionDutyCycle request
3304     *                                      of the mechanism.
3305     *   </ul>
3306     * </ul>
3307     *
3308     * @param request Control object to request of the device
3309     * @return Status code of the request
3310     */
3311    StatusCode setControl(Diff_MotionMagicDutyCycle_Position request);
3312    
3313    /**
3314     * Differential control with Motion Magic® Expo average target and
3315     * position difference target using duty cycle control.
3316     * <ul>
3317     *   <li> <b>Diff_MotionMagicExpoDutyCycle_Position Parameters:</b> 
3318     *   <ul>
3319     *     <li> <b>AverageRequest:</b> Average MotionMagicExpoDutyCycle request of
3320     *                                 the mechanism.
3321     *     <li> <b>DifferentialRequest:</b> Differential PositionDutyCycle request
3322     *                                      of the mechanism.
3323     *   </ul>
3324     * </ul>
3325     *
3326     * @param request Control object to request of the device
3327     * @return Status code of the request
3328     */
3329    StatusCode setControl(Diff_MotionMagicExpoDutyCycle_Position request);
3330    
3331    /**
3332     * Differential control with Motion Magic® Velocity average target and
3333     * position difference target using duty cycle control.
3334     * <ul>
3335     *   <li> <b>Diff_MotionMagicVelocityDutyCycle_Position Parameters:</b> 
3336     *   <ul>
3337     *     <li> <b>AverageRequest:</b> Average MotionMagicVelocityDutyCycle request
3338     *                                 of the mechanism.
3339     *     <li> <b>DifferentialRequest:</b> Differential PositionDutyCycle request
3340     *                                      of the mechanism.
3341     *   </ul>
3342     * </ul>
3343     *
3344     * @param request Control object to request of the device
3345     * @return Status code of the request
3346     */
3347    StatusCode setControl(Diff_MotionMagicVelocityDutyCycle_Position request);
3348    
3349    /**
3350     * Differential control with duty cycle average target and velocity
3351     * difference target.
3352     * <ul>
3353     *   <li> <b>Diff_DutyCycleOut_Velocity Parameters:</b> 
3354     *   <ul>
3355     *     <li> <b>AverageRequest:</b> Average DutyCycleOut request of the
3356     *                                 mechanism.
3357     *     <li> <b>DifferentialRequest:</b> Differential VelocityDutyCycle request
3358     *                                      of the mechanism.
3359     *   </ul>
3360     * </ul>
3361     *
3362     * @param request Control object to request of the device
3363     * @return Status code of the request
3364     */
3365    StatusCode setControl(Diff_DutyCycleOut_Velocity request);
3366    
3367    /**
3368     * Differential control with position average target and velocity
3369     * difference target using duty cycle control.
3370     * <ul>
3371     *   <li> <b>Diff_PositionDutyCycle_Velocity Parameters:</b> 
3372     *   <ul>
3373     *     <li> <b>AverageRequest:</b> Average PositionDutyCycle request of the
3374     *                                 mechanism.
3375     *     <li> <b>DifferentialRequest:</b> Differential VelocityDutyCycle request
3376     *                                      of the mechanism.
3377     *   </ul>
3378     * </ul>
3379     *
3380     * @param request Control object to request of the device
3381     * @return Status code of the request
3382     */
3383    StatusCode setControl(Diff_PositionDutyCycle_Velocity request);
3384    
3385    /**
3386     * Differential control with velocity average target and velocity
3387     * difference target using duty cycle control.
3388     * <ul>
3389     *   <li> <b>Diff_VelocityDutyCycle_Velocity Parameters:</b> 
3390     *   <ul>
3391     *     <li> <b>AverageRequest:</b> Average VelocityDutyCycle request of the
3392     *                                 mechanism.
3393     *     <li> <b>DifferentialRequest:</b> Differential VelocityDutyCycle request
3394     *                                      of the mechanism.
3395     *   </ul>
3396     * </ul>
3397     *
3398     * @param request Control object to request of the device
3399     * @return Status code of the request
3400     */
3401    StatusCode setControl(Diff_VelocityDutyCycle_Velocity request);
3402    
3403    /**
3404     * Differential control with Motion Magic® average target and velocity
3405     * difference target using duty cycle control.
3406     * <ul>
3407     *   <li> <b>Diff_MotionMagicDutyCycle_Velocity Parameters:</b> 
3408     *   <ul>
3409     *     <li> <b>AverageRequest:</b> Average MotionMagicDutyCycle request of the
3410     *                                 mechanism.
3411     *     <li> <b>DifferentialRequest:</b> Differential VelocityDutyCycle request
3412     *                                      of the mechanism.
3413     *   </ul>
3414     * </ul>
3415     *
3416     * @param request Control object to request of the device
3417     * @return Status code of the request
3418     */
3419    StatusCode setControl(Diff_MotionMagicDutyCycle_Velocity request);
3420    
3421    /**
3422     * Differential control with Motion Magic® Expo average target and
3423     * velocity difference target using duty cycle control.
3424     * <ul>
3425     *   <li> <b>Diff_MotionMagicExpoDutyCycle_Velocity Parameters:</b> 
3426     *   <ul>
3427     *     <li> <b>AverageRequest:</b> Average MotionMagicExpoDutyCycle request of
3428     *                                 the mechanism.
3429     *     <li> <b>DifferentialRequest:</b> Differential VelocityDutyCycle request
3430     *                                      of the mechanism.
3431     *   </ul>
3432     * </ul>
3433     *
3434     * @param request Control object to request of the device
3435     * @return Status code of the request
3436     */
3437    StatusCode setControl(Diff_MotionMagicExpoDutyCycle_Velocity request);
3438    
3439    /**
3440     * Differential control with Motion Magic® Velocity average target and
3441     * velocity difference target using duty cycle control.
3442     * <ul>
3443     *   <li> <b>Diff_MotionMagicVelocityDutyCycle_Velocity Parameters:</b> 
3444     *   <ul>
3445     *     <li> <b>AverageRequest:</b> Average MotionMagicVelocityDutyCycle request
3446     *                                 of the mechanism.
3447     *     <li> <b>DifferentialRequest:</b> Differential VelocityDutyCycle request
3448     *                                      of the mechanism.
3449     *   </ul>
3450     * </ul>
3451     *
3452     * @param request Control object to request of the device
3453     * @return Status code of the request
3454     */
3455    StatusCode setControl(Diff_MotionMagicVelocityDutyCycle_Velocity request);
3456    
3457    /**
3458     * Differential control with duty cycle average target and duty cycle
3459     * difference target.
3460     * <ul>
3461     *   <li> <b>Diff_DutyCycleOut_Open Parameters:</b> 
3462     *   <ul>
3463     *     <li> <b>AverageRequest:</b> Average DutyCycleOut request of the
3464     *                                 mechanism.
3465     *     <li> <b>DifferentialRequest:</b> Differential DutyCycleOut request of the
3466     *                                      mechanism.
3467     *   </ul>
3468     * </ul>
3469     *
3470     * @param request Control object to request of the device
3471     * @return Status code of the request
3472     */
3473    StatusCode setControl(Diff_DutyCycleOut_Open request);
3474    
3475    /**
3476     * Differential control with position average target and duty cycle
3477     * difference target.
3478     * <ul>
3479     *   <li> <b>Diff_PositionDutyCycle_Open Parameters:</b> 
3480     *   <ul>
3481     *     <li> <b>AverageRequest:</b> Average PositionDutyCycle request of the
3482     *                                 mechanism.
3483     *     <li> <b>DifferentialRequest:</b> Differential DutyCycleOut request of the
3484     *                                      mechanism.
3485     *   </ul>
3486     * </ul>
3487     *
3488     * @param request Control object to request of the device
3489     * @return Status code of the request
3490     */
3491    StatusCode setControl(Diff_PositionDutyCycle_Open request);
3492    
3493    /**
3494     * Differential control with velocity average target and duty cycle
3495     * difference target.
3496     * <ul>
3497     *   <li> <b>Diff_VelocityDutyCycle_Open Parameters:</b> 
3498     *   <ul>
3499     *     <li> <b>AverageRequest:</b> Average VelocityDutyCYcle request of the
3500     *                                 mechanism.
3501     *     <li> <b>DifferentialRequest:</b> Differential DutyCycleOut request of the
3502     *                                      mechanism.
3503     *   </ul>
3504     * </ul>
3505     *
3506     * @param request Control object to request of the device
3507     * @return Status code of the request
3508     */
3509    StatusCode setControl(Diff_VelocityDutyCycle_Open request);
3510    
3511    /**
3512     * Differential control with Motion Magic® average target and duty
3513     * cycle difference target.
3514     * <ul>
3515     *   <li> <b>Diff_MotionMagicDutyCycle_Open Parameters:</b> 
3516     *   <ul>
3517     *     <li> <b>AverageRequest:</b> Average MotionMagicDutyCycle request of the
3518     *                                 mechanism.
3519     *     <li> <b>DifferentialRequest:</b> Differential DutyCycleOut request of the
3520     *                                      mechanism.
3521     *   </ul>
3522     * </ul>
3523     *
3524     * @param request Control object to request of the device
3525     * @return Status code of the request
3526     */
3527    StatusCode setControl(Diff_MotionMagicDutyCycle_Open request);
3528    
3529    /**
3530     * Differential control with Motion Magic® Expo average target and
3531     * duty cycle difference target.
3532     * <ul>
3533     *   <li> <b>Diff_MotionMagicExpoDutyCycle_Open Parameters:</b> 
3534     *   <ul>
3535     *     <li> <b>AverageRequest:</b> Average MotionMagicExpoDutyCycle request of
3536     *                                 the mechanism.
3537     *     <li> <b>DifferentialRequest:</b> Differential DutyCycleOut request of the
3538     *                                      mechanism.
3539     *   </ul>
3540     * </ul>
3541     *
3542     * @param request Control object to request of the device
3543     * @return Status code of the request
3544     */
3545    StatusCode setControl(Diff_MotionMagicExpoDutyCycle_Open request);
3546    
3547    /**
3548     * Differential control with Motion Magic® Velocity average target and
3549     * duty cycle difference target.
3550     * <ul>
3551     *   <li> <b>Diff_MotionMagicVelocityDutyCycle_Open Parameters:</b> 
3552     *   <ul>
3553     *     <li> <b>AverageRequest:</b> Average MotionMagicVelocityDutyCycle request
3554     *                                 of the mechanism.
3555     *     <li> <b>DifferentialRequest:</b> Differential DutyCycleOut request of the
3556     *                                      mechanism.
3557     *   </ul>
3558     * </ul>
3559     *
3560     * @param request Control object to request of the device
3561     * @return Status code of the request
3562     */
3563    StatusCode setControl(Diff_MotionMagicVelocityDutyCycle_Open request);
3564    
3565    /**
3566     * Differential control with voltage average target and position
3567     * difference target.
3568     * <ul>
3569     *   <li> <b>Diff_VoltageOut_Position Parameters:</b> 
3570     *   <ul>
3571     *     <li> <b>AverageRequest:</b> Average VoltageOut request of the mechanism.
3572     *     <li> <b>DifferentialRequest:</b> Differential PositionVoltage request of
3573     *                                      the mechanism.
3574     *   </ul>
3575     * </ul>
3576     *
3577     * @param request Control object to request of the device
3578     * @return Status code of the request
3579     */
3580    StatusCode setControl(Diff_VoltageOut_Position request);
3581    
3582    /**
3583     * Differential control with position average target and position
3584     * difference target using voltage control.
3585     * <ul>
3586     *   <li> <b>Diff_PositionVoltage_Position Parameters:</b> 
3587     *   <ul>
3588     *     <li> <b>AverageRequest:</b> Average PositionVoltage request of the
3589     *                                 mechanism.
3590     *     <li> <b>DifferentialRequest:</b> Differential PositionVoltage request of
3591     *                                      the mechanism.
3592     *   </ul>
3593     * </ul>
3594     *
3595     * @param request Control object to request of the device
3596     * @return Status code of the request
3597     */
3598    StatusCode setControl(Diff_PositionVoltage_Position request);
3599    
3600    /**
3601     * Differential control with velocity average target and position
3602     * difference target using voltage control.
3603     * <ul>
3604     *   <li> <b>Diff_VelocityVoltage_Position Parameters:</b> 
3605     *   <ul>
3606     *     <li> <b>AverageRequest:</b> Average VelocityVoltage request of the
3607     *                                 mechanism.
3608     *     <li> <b>DifferentialRequest:</b> Differential PositionVoltage request of
3609     *                                      the mechanism.
3610     *   </ul>
3611     * </ul>
3612     *
3613     * @param request Control object to request of the device
3614     * @return Status code of the request
3615     */
3616    StatusCode setControl(Diff_VelocityVoltage_Position request);
3617    
3618    /**
3619     * Differential control with Motion Magic® average target and position
3620     * difference target using voltage control.
3621     * <ul>
3622     *   <li> <b>Diff_MotionMagicVoltage_Position Parameters:</b> 
3623     *   <ul>
3624     *     <li> <b>AverageRequest:</b> Average MotionMagicVoltage request of the
3625     *                                 mechanism.
3626     *     <li> <b>DifferentialRequest:</b> Differential PositionVoltage request of
3627     *                                      the mechanism.
3628     *   </ul>
3629     * </ul>
3630     *
3631     * @param request Control object to request of the device
3632     * @return Status code of the request
3633     */
3634    StatusCode setControl(Diff_MotionMagicVoltage_Position request);
3635    
3636    /**
3637     * Differential control with Motion Magic® Expo average target and
3638     * position difference target using voltage control.
3639     * <ul>
3640     *   <li> <b>Diff_MotionMagicExpoVoltage_Position Parameters:</b> 
3641     *   <ul>
3642     *     <li> <b>AverageRequest:</b> Average MotionMagicExpoVoltage request of the
3643     *                                 mechanism.
3644     *     <li> <b>DifferentialRequest:</b> Differential PositionVoltage request of
3645     *                                      the mechanism.
3646     *   </ul>
3647     * </ul>
3648     *
3649     * @param request Control object to request of the device
3650     * @return Status code of the request
3651     */
3652    StatusCode setControl(Diff_MotionMagicExpoVoltage_Position request);
3653    
3654    /**
3655     * Differential control with Motion Magic® Velocity average target and
3656     * position difference target using voltage control.
3657     * <ul>
3658     *   <li> <b>Diff_MotionMagicVelocityVoltage_Position Parameters:</b> 
3659     *   <ul>
3660     *     <li> <b>AverageRequest:</b> Average MotionMagicVelocityVoltage request of
3661     *                                 the mechanism.
3662     *     <li> <b>DifferentialRequest:</b> Differential PositionVoltage request of
3663     *                                      the mechanism.
3664     *   </ul>
3665     * </ul>
3666     *
3667     * @param request Control object to request of the device
3668     * @return Status code of the request
3669     */
3670    StatusCode setControl(Diff_MotionMagicVelocityVoltage_Position request);
3671    
3672    /**
3673     * Differential control with voltage average target and velocity
3674     * difference target.
3675     * <ul>
3676     *   <li> <b>Diff_VoltageOut_Velocity Parameters:</b> 
3677     *   <ul>
3678     *     <li> <b>AverageRequest:</b> Average VoltageOut request of the mechanism.
3679     *     <li> <b>DifferentialRequest:</b> Differential VelocityVoltage request of
3680     *                                      the mechanism.
3681     *   </ul>
3682     * </ul>
3683     *
3684     * @param request Control object to request of the device
3685     * @return Status code of the request
3686     */
3687    StatusCode setControl(Diff_VoltageOut_Velocity request);
3688    
3689    /**
3690     * Differential control with position average target and velocity
3691     * difference target using voltage control.
3692     * <ul>
3693     *   <li> <b>Diff_PositionVoltage_Velocity Parameters:</b> 
3694     *   <ul>
3695     *     <li> <b>AverageRequest:</b> Average PositionVoltage request of the
3696     *                                 mechanism.
3697     *     <li> <b>DifferentialRequest:</b> Differential VelocityVoltage request of
3698     *                                      the mechanism.
3699     *   </ul>
3700     * </ul>
3701     *
3702     * @param request Control object to request of the device
3703     * @return Status code of the request
3704     */
3705    StatusCode setControl(Diff_PositionVoltage_Velocity request);
3706    
3707    /**
3708     * Differential control with velocity average target and velocity
3709     * difference target using voltage control.
3710     * <ul>
3711     *   <li> <b>Diff_VelocityVoltage_Velocity Parameters:</b> 
3712     *   <ul>
3713     *     <li> <b>AverageRequest:</b> Average VelocityVoltage request of the
3714     *                                 mechanism.
3715     *     <li> <b>DifferentialRequest:</b> Differential VelocityVoltage request of
3716     *                                      the mechanism.
3717     *   </ul>
3718     * </ul>
3719     *
3720     * @param request Control object to request of the device
3721     * @return Status code of the request
3722     */
3723    StatusCode setControl(Diff_VelocityVoltage_Velocity request);
3724    
3725    /**
3726     * Differential control with Motion Magic® average target and velocity
3727     * difference target using voltage control.
3728     * <ul>
3729     *   <li> <b>Diff_MotionMagicVoltage_Velocity Parameters:</b> 
3730     *   <ul>
3731     *     <li> <b>AverageRequest:</b> Average MotionMagicVoltage request of the
3732     *                                 mechanism.
3733     *     <li> <b>DifferentialRequest:</b> Differential VelocityVoltage request of
3734     *                                      the mechanism.
3735     *   </ul>
3736     * </ul>
3737     *
3738     * @param request Control object to request of the device
3739     * @return Status code of the request
3740     */
3741    StatusCode setControl(Diff_MotionMagicVoltage_Velocity request);
3742    
3743    /**
3744     * Differential control with Motion Magic® Expo average target and
3745     * velocity difference target using voltage control.
3746     * <ul>
3747     *   <li> <b>Diff_MotionMagicExpoVoltage_Velocity Parameters:</b> 
3748     *   <ul>
3749     *     <li> <b>AverageRequest:</b> Average MotionMagicExpoVoltage request of the
3750     *                                 mechanism.
3751     *     <li> <b>DifferentialRequest:</b> Differential VelocityVoltage request of
3752     *                                      the mechanism.
3753     *   </ul>
3754     * </ul>
3755     *
3756     * @param request Control object to request of the device
3757     * @return Status code of the request
3758     */
3759    StatusCode setControl(Diff_MotionMagicExpoVoltage_Velocity request);
3760    
3761    /**
3762     * Differential control with Motion Magic® Velocity average target and
3763     * velocity difference target using voltage control.
3764     * <ul>
3765     *   <li> <b>Diff_MotionMagicVelocityVoltage_Velocity Parameters:</b> 
3766     *   <ul>
3767     *     <li> <b>AverageRequest:</b> Average MotionMagicVelocityVoltage request of
3768     *                                 the mechanism.
3769     *     <li> <b>DifferentialRequest:</b> Differential VelocityVoltage request of
3770     *                                      the mechanism.
3771     *   </ul>
3772     * </ul>
3773     *
3774     * @param request Control object to request of the device
3775     * @return Status code of the request
3776     */
3777    StatusCode setControl(Diff_MotionMagicVelocityVoltage_Velocity request);
3778    
3779    /**
3780     * Differential control with voltage average target and voltage
3781     * difference target.
3782     * <ul>
3783     *   <li> <b>Diff_VoltageOut_Open Parameters:</b> 
3784     *   <ul>
3785     *     <li> <b>AverageRequest:</b> Average VoltageOut request of the mechanism.
3786     *     <li> <b>DifferentialRequest:</b> Differential VoltageOut request of the
3787     *                                      mechanism.
3788     *   </ul>
3789     * </ul>
3790     *
3791     * @param request Control object to request of the device
3792     * @return Status code of the request
3793     */
3794    StatusCode setControl(Diff_VoltageOut_Open request);
3795    
3796    /**
3797     * Differential control with position average target and voltage
3798     * difference target.
3799     * <ul>
3800     *   <li> <b>Diff_PositionVoltage_Open Parameters:</b> 
3801     *   <ul>
3802     *     <li> <b>AverageRequest:</b> Average PositionVoltage request of the
3803     *                                 mechanism.
3804     *     <li> <b>DifferentialRequest:</b> Differential VoltageOut request of the
3805     *                                      mechanism.
3806     *   </ul>
3807     * </ul>
3808     *
3809     * @param request Control object to request of the device
3810     * @return Status code of the request
3811     */
3812    StatusCode setControl(Diff_PositionVoltage_Open request);
3813    
3814    /**
3815     * Differential control with velocity average target and voltage
3816     * difference target.
3817     * <ul>
3818     *   <li> <b>Diff_VelocityVoltage_Open Parameters:</b> 
3819     *   <ul>
3820     *     <li> <b>AverageRequest:</b> Average VelocityVoltage request of the
3821     *                                 mechanism.
3822     *     <li> <b>DifferentialRequest:</b> Differential VoltageOut request of the
3823     *                                      mechanism.
3824     *   </ul>
3825     * </ul>
3826     *
3827     * @param request Control object to request of the device
3828     * @return Status code of the request
3829     */
3830    StatusCode setControl(Diff_VelocityVoltage_Open request);
3831    
3832    /**
3833     * Differential control with Motion Magic® average target and voltage
3834     * difference target.
3835     * <ul>
3836     *   <li> <b>Diff_MotionMagicVoltage_Open Parameters:</b> 
3837     *   <ul>
3838     *     <li> <b>AverageRequest:</b> Average MotionMagicVoltage request of the
3839     *                                 mechanism.
3840     *     <li> <b>DifferentialRequest:</b> Differential VoltageOut request of the
3841     *                                      mechanism.
3842     *   </ul>
3843     * </ul>
3844     *
3845     * @param request Control object to request of the device
3846     * @return Status code of the request
3847     */
3848    StatusCode setControl(Diff_MotionMagicVoltage_Open request);
3849    
3850    /**
3851     * Differential control with Motion Magic® Expo average target and
3852     * voltage difference target.
3853     * <ul>
3854     *   <li> <b>Diff_MotionMagicExpoVoltage_Open Parameters:</b> 
3855     *   <ul>
3856     *     <li> <b>AverageRequest:</b> Average MotionMagicExpoVoltage request of the
3857     *                                 mechanism.
3858     *     <li> <b>DifferentialRequest:</b> Differential VoltageOut request of the
3859     *                                      mechanism.
3860     *   </ul>
3861     * </ul>
3862     *
3863     * @param request Control object to request of the device
3864     * @return Status code of the request
3865     */
3866    StatusCode setControl(Diff_MotionMagicExpoVoltage_Open request);
3867    
3868    /**
3869     * Differential control with Motion Magic® Velocity average target and
3870     * voltage difference target.
3871     * <ul>
3872     *   <li> <b>Diff_MotionMagicVelocityVoltage_Open Parameters:</b> 
3873     *   <ul>
3874     *     <li> <b>AverageRequest:</b> Average MotionMagicVelocityVoltage request of
3875     *                                 the mechanism.
3876     *     <li> <b>DifferentialRequest:</b> Differential VoltageOut request of the
3877     *                                      mechanism.
3878     *   </ul>
3879     * </ul>
3880     *
3881     * @param request Control object to request of the device
3882     * @return Status code of the request
3883     */
3884    StatusCode setControl(Diff_MotionMagicVelocityVoltage_Open request);
3885
3886    /**
3887     * Apply a generic empty control used to do nothing.
3888     *
3889     * @param request Control object to request of the device
3890     * @return Status code of the request
3891     */
3892    StatusCode setControl(EmptyControl request);
3893
3894    /**
3895     * Control device with generic control request object.
3896     * <p>
3897     * User must make sure the specified object is castable to a valid control request,
3898     * otherwise this function will fail at run-time and return the NotSupported StatusCode
3899     *
3900     * @param request Control object to request of the device
3901     * @return Status code of the request
3902     */
3903    StatusCode setControl(ControlRequest request);
3904    
3905}
3906