added value update to panel and adjusted speed to match, only need to display speed with 1 decimal

This commit is contained in:
Sem van der Hoeven
2020-10-07 16:40:41 +02:00
parent 847fa68acb
commit d6da6b18c4
3 changed files with 63 additions and 7 deletions

View File

@@ -424,6 +424,20 @@ namespace RH_Engine
return JsonConvert.SerializeObject(Payload(payload));
}
public string RouteSpeed(float speedValue,string nodeID)
{
dynamic payload = new
{
id = "route/follow/speed",
data = new
{
node = nodeID,
speed = speedValue
}
};
return JsonConvert.SerializeObject(Payload(payload));
}
public string RoadCommand(string uuid_route)
{
Console.WriteLine("road");