merge simulation into develop
This commit is contained in:
@@ -1,28 +1,23 @@
|
||||
using System;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using Hardware;
|
||||
using System.Threading;
|
||||
using Hardware.Simulators;
|
||||
|
||||
|
||||
namespace ProftaakRH
|
||||
{
|
||||
class Program
|
||||
class Program
|
||||
{
|
||||
|
||||
static void Main(string[] args)
|
||||
static void Main(string[] agrs)
|
||||
{
|
||||
IDataConverter dataConverter = new DataConverter();
|
||||
BLEHandler bLEHandler = new BLEHandler(dataConverter);
|
||||
//BikeSimulator bikeSimulator = new BikeSimulator(dataConverter);
|
||||
//bikeSimulator.setResistance(bikeSimulator.GenerateResistance(1f));
|
||||
//bikeSimulator.StartSimulation();
|
||||
|
||||
bLEHandler.Connect();
|
||||
|
||||
while (!bLEHandler.Running)
|
||||
{
|
||||
Thread.Yield();
|
||||
}
|
||||
|
||||
bLEHandler.setResistance(25);
|
||||
bool running = true;
|
||||
while (running)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user