Address minor style and linting issues
Signed-off-by: mharb <mharb@sdf.org>
This commit is contained in:
20
px-tcp1/ProtosXDemo/src/LoadMachineStateDigital.cs
Normal file
20
px-tcp1/ProtosXDemo/src/LoadMachineStateDigital.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
// <copyright file="LoadMachineStateDigital.cs" company="PlaceholderCompany">
|
||||
// Copyright (c) PlaceholderCompany. All rights reserved.
|
||||
// </copyright>
|
||||
|
||||
namespace ProtosXdemo
|
||||
{
|
||||
internal class LoadMachineStateDigital
|
||||
{
|
||||
public static void MakeRandomStateDigital()
|
||||
{
|
||||
Data.MachineState.DigitalOutputChannels.Initialize();
|
||||
var rand = new Random();
|
||||
|
||||
for (int i = 0; i < Data.MachineState.NumberOfDigitalOutputs; i++)
|
||||
{
|
||||
Data.MachineState.DigitalOutputChannels[i] = rand.Next(1, 99) % 2 == 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user