Compare commits
1 Commits
master
...
testResist
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e479ccf8af |
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user