Class ModulateVBatOut
- All Implemented Interfaces:
ControlRequest,Cloneable
Note that CANdleFeaturesConfigs.VBatOutputMode must be set to VBatOutputModeValue.Modulated.
-
Field Summary
FieldsModifier and TypeFieldDescriptiondoubleProportion of VBat to output in fractional units between 0.0 and 1.0.doubleThe frequency at which this control will update. -
Constructor Summary
ConstructorsConstructorDescriptionModulateVBatOut(double Output) Modulates the CANdle VBat output to the specified duty cycle. -
Method Summary
Modifier and TypeMethodDescriptionclone()Gets information about this control request.getName()Gets the name of this control request.sendRequest(CANBus network, int deviceHash) toString()withOutput(double newOutput) Modifies this Control Request's Output parameter and returns itself for method-chaining and easier to use request API.withUpdateFreqHz(double newUpdateFreqHz) Sets the frequency at which this control will update.withUpdateFreqHz(Frequency newUpdateFreqHz) Sets the frequency at which this control will update.
-
Field Details
-
Output
Proportion of VBat to output in fractional units between 0.0 and 1.0.- Units: fractional
-
UpdateFreqHz
The frequency at which this control will update. This is designated in Hertz, with a minimum of 20 Hz (every 50 ms) and a maximum of 1000 Hz (every 1 ms). Some update frequencies are not supported and will be promoted up to the next highest supported frequency.If this field is set to 0 Hz, the control request will be sent immediately as a one-shot frame. This may be useful for advanced applications that require outputs to be synchronized with data acquisition. In this case, we recommend not exceeding 50 ms between control calls.
-
-
Constructor Details
-
ModulateVBatOut
Modulates the CANdle VBat output to the specified duty cycle. This can be used to control a single-color LED strip.Note that CANdleFeaturesConfigs.VBatOutputMode must be set to VBatOutputModeValue.Modulated.
- Parameters:
Output- Proportion of VBat to output in fractional units between 0.0 and 1.0.
-
-
Method Details
-
getName
Description copied from interface:ControlRequestGets the name of this control request.- Specified by:
getNamein interfaceControlRequest- Returns:
- Name of the control request
-
toString
-
sendRequest
- Specified by:
sendRequestin interfaceControlRequest
-
getControlInfo
Gets information about this control request.- Specified by:
getControlInfoin interfaceControlRequest- Returns:
- Map of control parameter names and corresponding applied values
-
withOutput
Modifies this Control Request's Output parameter and returns itself for method-chaining and easier to use request API.Proportion of VBat to output in fractional units between 0.0 and 1.0.
- Units: fractional
- Parameters:
newOutput- Parameter to modify- Returns:
- Itself
-
withUpdateFreqHz
Sets the frequency at which this control will update. This is designated in Hertz, with a minimum of 20 Hz (every 50 ms) and a maximum of 1000 Hz (every 1 ms). Some update frequencies are not supported and will be promoted up to the next highest supported frequency.If this field is set to 0 Hz, the control request will be sent immediately as a one-shot frame. This may be useful for advanced applications that require outputs to be synchronized with data acquisition. In this case, we recommend not exceeding 50 ms between control calls.
- Specified by:
withUpdateFreqHzin interfaceControlRequest- Parameters:
newUpdateFreqHz- Parameter to modify- Returns:
- Itself
-
withUpdateFreqHz
Sets the frequency at which this control will update. This is designated in Hertz, with a minimum of 20 Hz (every 50 ms) and a maximum of 1000 Hz (every 1 ms). Some update frequencies are not supported and will be promoted up to the next highest supported frequency.If this field is set to 0 Hz, the control request will be sent immediately as a one-shot frame. This may be useful for advanced applications that require outputs to be synchronized with data acquisition. In this case, we recommend not exceeding 50 ms between control calls.
- Specified by:
withUpdateFreqHzin interfaceControlRequest- Parameters:
newUpdateFreqHz- Parameter to modify- Returns:
- Itself
-
clone
-