disable voice
This commit is contained in:
@@ -1,11 +1,10 @@
|
||||
using Avalonia.Controls;
|
||||
using VisionAsist.SDK;
|
||||
using System.IO.Ports;
|
||||
namespace ModuleWeather;
|
||||
|
||||
public class WeatherModule : IModule
|
||||
{
|
||||
public SerialPort myPort = new ();
|
||||
|
||||
public static string port;
|
||||
public WeatherModule()
|
||||
{
|
||||
@@ -38,11 +37,7 @@ public class WeatherModule : IModule
|
||||
public object Execute(string command)
|
||||
{
|
||||
|
||||
myPort.Close();
|
||||
myPort = new SerialPort(port, 9600);
|
||||
myPort.Open();
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -51,15 +46,6 @@ public class WeatherModule : IModule
|
||||
case "погода":
|
||||
|
||||
return "Погода хорошая!";
|
||||
|
||||
case "поверни на *":
|
||||
myPort.WriteLine("178");
|
||||
|
||||
return "Повернул на 180";
|
||||
case "верни *":
|
||||
myPort.WriteLine("0");
|
||||
|
||||
return "Вернул в 0";
|
||||
default:
|
||||
return "Команда не найдена";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user