コード例 #1
0
        public static string ToString(SensorTerm value)
        {
            switch (value)
            {
            case SensorTerm.SensorTerm_Sum0: return("SensorTerm.SensorTerm_Sum0");

            case SensorTerm.SensorTerm_Sum1: return("SensorTerm.SensorTerm_Sum1");

            case SensorTerm.SensorTerm_Diff0: return("SensorTerm.SensorTerm_Diff0");

            case SensorTerm.SensorTerm_Diff1: return("SensorTerm.SensorTerm_Diff1");

            default: return("InvalidValue");
            }
        }
コード例 #2
0
 /**
  * Select what sensor term should be bound to switch feedback device.
  * Sensor Sum = Sensor Sum Term 0 - Sensor Sum Term 1
  * Sensor Difference = Sensor Diff Term 0 - Sensor Diff Term 1
  * The four terms are specified with this routine.  Then Sensor Sum/Difference
  * can be selected for closed-looping.
  *
  * @param sensorTerm Which sensor term to bind to a feedback source.
  * @param feedbackDevice The sensor signal to attach to sensorTerm.
  * @param timeoutMs
  *            Timeout value in ms. If nonzero, function will wait for
  *            config success and report an error if it times out.
  *            If zero, no blocking or checking is performed.
  * @return Error Code generated by function. 0 indicates no error.
  */
 public ErrorCode ConfigSensorTerm(SensorTerm sensorTerm, FeedbackDevice feedbackDevice, int timeoutMs)
 {
     return(_ll.ConfigSensorTerm(sensorTerm, feedbackDevice, timeoutMs));
 }