|
|
|
@ -1,4 +1,5 @@ |
|
|
|
using RobotLib.Communication; |
|
|
|
using RobotLib.Communication; |
|
|
|
|
|
|
|
using RobotLib.RobotControl; |
|
|
|
using RobotLib.SplitFlap; |
|
|
|
using RobotLib.SplitFlap; |
|
|
|
using System.Threading; |
|
|
|
using System.Threading; |
|
|
|
|
|
|
|
|
|
|
|
@ -12,6 +13,7 @@ namespace RobotLib |
|
|
|
//Buzzer = new DevBuzzer(Com); |
|
|
|
//Buzzer = new DevBuzzer(Com); |
|
|
|
//Battery = new DevBattery(Com); |
|
|
|
//Battery = new DevBattery(Com); |
|
|
|
SplitFlap = new DevSplitFlap(com); |
|
|
|
SplitFlap = new DevSplitFlap(com); |
|
|
|
|
|
|
|
RobotControl = new DevRobot(com); |
|
|
|
|
|
|
|
|
|
|
|
Timer timer = new Timer(TimerCallback); |
|
|
|
Timer timer = new Timer(TimerCallback); |
|
|
|
timer.Change(2000, 10000); |
|
|
|
timer.Change(2000, 10000); |
|
|
|
@ -22,6 +24,7 @@ namespace RobotLib |
|
|
|
//public DevBuzzer Buzzer { get; } |
|
|
|
//public DevBuzzer Buzzer { get; } |
|
|
|
//public DevBattery Battery { get; } |
|
|
|
//public DevBattery Battery { get; } |
|
|
|
public DevSplitFlap SplitFlap { get; } |
|
|
|
public DevSplitFlap SplitFlap { get; } |
|
|
|
|
|
|
|
public DevRobot RobotControl { get; } |
|
|
|
|
|
|
|
|
|
|
|
public void Connect(string host, int port) |
|
|
|
public void Connect(string host, int port) |
|
|
|
{ |
|
|
|
{ |
|
|
|
|