|
|
@@ -8,6 +8,7 @@ using HBLConsole.Service; |
|
|
|
using Lebai.SDK; |
|
|
|
using Lebai.SDK.Dtos; |
|
|
|
using Robotc; |
|
|
|
using HBLConsole.Model; |
|
|
|
|
|
|
|
namespace HBLConsole.Communication |
|
|
|
{ |
|
|
@@ -53,6 +54,18 @@ namespace HBLConsole.Communication |
|
|
|
//robotData.RobotMode.Mode |
|
|
|
} |
|
|
|
|
|
|
|
public void GetRobotModeStatus() |
|
|
|
{ |
|
|
|
if (robotData == null) return; |
|
|
|
int mode = robotData.RobotMode.Mode; |
|
|
|
for (int i = 0; i < 14; i++) |
|
|
|
{ |
|
|
|
if (RTrig.GetInstance(((ELebaiRModel)i).ToString()).Start(mode == i)) |
|
|
|
MessageLog.GetInstance.Show(((ELebaiRModel)i).ToString()); |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
/// <summary> |
|
|
|
/// 启动机器人 |
|
|
|
/// </summary> |
|
|
|