This commit is contained in:
ROS Station
2019-12-06 15:05:42 +01:00
parent ab6ad320e3
commit 0865667761

View File

@@ -13,7 +13,7 @@
**Definition**
`GET /status`
`GET /status
**Responses**
- `200 OK` - on success
@@ -86,63 +86,22 @@
}
```
## Setting individual varibles to NewGon
**Definition**
`POST /status`
**Arguments**
```
GET /status
```json
{
"MODE":1,
"STATUS":"Ready",
"SHX":0,
"SHY":0,
"SHZ":18,
"CHI":10,
"PHI":0,
"OMEGA":0,
"OX":0,
"OY":0,
"OZ":0,
"s1":12,
"s2":13,
"s3":14,
"s4":15,
"phimotor":11,
"cyclecount":123456789
"SHX":2
}
GET /params
{
"l1':1,
"l2':1,
"l3':1,
"l4':1,
"l5':1,
"l6':1,
}
PUT /set
{
"SHX":1
}
or
{
"SHX":2.2,
"SHY":1.1
}
returns
```
{
"SHX":2.2
"message":"SHX->2.2."
}
```