1 Commits

Author SHA1 Message Date
fabjuuuh
e479ccf8af Works 2020-09-11 12:20:04 +02:00

View File

@@ -21,6 +21,7 @@ namespace Hardware.Simulators
private int cadence = 0;
private double resistance = 0;
//Array for the speed bytes
byte[] array;
@@ -42,12 +43,16 @@ namespace Hardware.Simulators
while (true)
{
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
dataConverter.Bike(GenerateBike0x19());
dataConverter.Bike(GenerateBike0x10());
dataConverter.BPM(GenerateHeart());
Thread.Sleep(1000);
x += 0.1f;