Works
This commit is contained in:
@@ -21,6 +21,7 @@ namespace Hardware.Simulators
|
|||||||
private int cadence = 0;
|
private int cadence = 0;
|
||||||
private double resistance = 0;
|
private double resistance = 0;
|
||||||
|
|
||||||
|
//Array for the speed bytes
|
||||||
byte[] array;
|
byte[] array;
|
||||||
|
|
||||||
|
|
||||||
@@ -42,12 +43,16 @@ namespace Hardware.Simulators
|
|||||||
while (true)
|
while (true)
|
||||||
{
|
{
|
||||||
CalculateVariables(improvedPerlin.GetValue(x)+1);
|
CalculateVariables(improvedPerlin.GetValue(x)+1);
|
||||||
|
|
||||||
|
Console.WriteLine("BikeSimulation:\nSpeed: " + this.speed / 100 + "m/s\t" + this.BPM + "BPM\n"+"Resis: "+ this.resistance+"%\n");
|
||||||
|
|
||||||
//Simulate sending data
|
//Simulate sending data
|
||||||
dataConverter.Bike(GenerateBike0x19());
|
dataConverter.Bike(GenerateBike0x19());
|
||||||
dataConverter.Bike(GenerateBike0x10());
|
dataConverter.Bike(GenerateBike0x10());
|
||||||
dataConverter.BPM(GenerateHeart());
|
dataConverter.BPM(GenerateHeart());
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Thread.Sleep(1000);
|
Thread.Sleep(1000);
|
||||||
|
|
||||||
x += 0.1f;
|
x += 0.1f;
|
||||||
|
|||||||
Reference in New Issue
Block a user