Class ControlAlgorithmViewModel
ViewModel for ControlAlgorithm block.
Inheritance
ControlAlgorithmViewModel
Assembly: MOSAIC.dll
Syntax
public class ControlAlgorithmViewModel : ObservableObject, INotifyPropertyChanged, INotifyPropertyChanging
Constructors
ControlAlgorithmViewModel(ControlAlgorithm)
Declaration
public ControlAlgorithmViewModel(ControlAlgorithm model)
Parameters
Fields
_model
Declaration
private readonly ControlAlgorithm _model
Field Value
resetCommand
Declaration
private RelayCommand? resetCommand
Field Value
Properties
AlgorithmDescription
Declaration
public string AlgorithmDescription { get; }
Property Value
AvailableAlgorithms
Declaration
public IReadOnlyList<string> AvailableAlgorithms { get; }
Property Value
FingerDeadband
Finger deadband [0..1]. Values below this threshold produce 0 actuation.
Only meaningful when DLControl is active.
Declaration
public double FingerDeadband { get; set; }
Property Value
FrequencyText
Declaration
public string FrequencyText { get; }
Property Value
IsDLControl
True when the active strategy is DLControlStrategy.
Used by the CardView to show/hide DL-specific controls.
Declaration
public bool IsDLControl { get; }
Property Value
ResetCommand
Declaration
[ExcludeFromCodeCoverage]
public IRelayCommand ResetCommand { get; }
Property Value
SelectedAlgorithm
Declaration
public string SelectedAlgorithm { get; set; }
Property Value
WristDeadband
Wrist deadband [0..1]. Absolute bipolar values below this snap to neutral.
Only meaningful when DLControl is active.
Declaration
public double WristDeadband { get; set; }
Property Value
Methods
Reset()
Declaration
[RelayCommand]
private void Reset()
Implements