Skip to content

Commit

Permalink
Changed to camel case
Browse files Browse the repository at this point in the history
  • Loading branch information
ncguilbeault committed Jun 3, 2024
1 parent 0dbab79 commit 7fddc3c
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions src/Bonsai.ML.Visualizers/KinematicStateVisualizer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public class KinematicStateVisualizer : MashupVisualizer
{
internal int RowCount { get; set; } = 3;
internal int ColumnCount { get; set; } = 2;
internal List<StateComponentVisualizer> componentVisualizers { get; private set; } = new();
internal List<StateComponentVisualizer> ComponentVisualizers { get; private set; } = new();
private TableLayoutPanel container;
private int updateFrequency = 1000 / 50;
private bool resetAxes = true;
Expand Down Expand Up @@ -64,7 +64,7 @@ public override void Load(IServiceProvider provider)
};
StateComponentVisualizer.Load(provider);
container.Controls.Add(StateComponentVisualizer.Plot, j, i);
componentVisualizers.Add(StateComponentVisualizer);
ComponentVisualizers.Add(StateComponentVisualizer);
}
}

Expand Down Expand Up @@ -104,12 +104,12 @@ public void ShowBuffer(IList<Timestamped<object>> values)
accelerationY.Add(new Timestamped<object>(((KinematicState)value.Value).Acceleration.Y, value.Timestamp));
}

componentVisualizers[0].ShowDataBuffer(positionX, resetAxes);
componentVisualizers[1].ShowDataBuffer(positionY, resetAxes);
componentVisualizers[2].ShowDataBuffer(velocityX, resetAxes);
componentVisualizers[3].ShowDataBuffer(velocityY, resetAxes);
componentVisualizers[4].ShowDataBuffer(accelerationX, resetAxes);
componentVisualizers[5].ShowDataBuffer(accelerationY, resetAxes);
ComponentVisualizers[0].ShowDataBuffer(positionX, resetAxes);
ComponentVisualizers[1].ShowDataBuffer(positionY, resetAxes);
ComponentVisualizers[2].ShowDataBuffer(velocityX, resetAxes);
ComponentVisualizers[3].ShowDataBuffer(velocityY, resetAxes);
ComponentVisualizers[4].ShowDataBuffer(accelerationX, resetAxes);
ComponentVisualizers[5].ShowDataBuffer(accelerationY, resetAxes);
}

/// <inheritdoc/>
Expand Down Expand Up @@ -164,14 +164,14 @@ private IObservable<object> VisualizeSource(IObservable<IObservable<object>> sou
/// <inheritdoc/>
public override void Unload()
{
foreach (var componentVisualizer in componentVisualizers)
foreach (var componentVisualizer in ComponentVisualizers)
{
componentVisualizer.Unload();
}
if (componentVisualizers.Count > 0)
if (ComponentVisualizers.Count > 0)
{
componentVisualizers.Clear();
componentVisualizers = new();
ComponentVisualizers.Clear();
ComponentVisualizers = new();
}
if (!container.IsDisposed) container.Dispose();
}
Expand Down

0 comments on commit 7fddc3c

Please sign in to comment.