Commit 4f485c46 authored by PERNOT Guillaume's avatar PERNOT Guillaume

some doc

parent cd09ea57
......@@ -2,7 +2,7 @@ NISP test campaign automated acquisitions
=========================================
# Installation
## Installation
Needs python3
......@@ -10,7 +10,7 @@ Needs python3
pip install -r pip-requirements.txt
```
# Run
## Run
Start server with :
......@@ -18,3 +18,21 @@ Start server with :
python3 server.py
```
Server will listen on port 9999 on all interfaces by default.
## Use
Commands are sent using `nc`. *e.g.* :
```
echo "maa 0.1,0.2,0.3,0.4,0.5" | nc localhost 9999
```
## Commands
* `maa` $x$,$y$,$z$,$\theta$,$\phi$ `[repeat]` - Move and acquire
Do a move_rel_pos_ats and acquire a fits file from `atik`.
Resulting file is copied in `outputs` directory.
If `repeat` is given, repeat the process `repeat` times.
......@@ -59,7 +59,7 @@ def handle_client_connection(client_socket, atsctl, atik):
request = client_socket.recv(1024)
logging.debug('net command: {}'.format(request))
cmd = request.split()
cmd = request.split(maxsplit=1)
error = None
if cmd[0] == b'maa':
# Move And Aquire command
......@@ -102,5 +102,4 @@ if __name__ == '__main__':
cmd(atik, '@cool on', '!COOL', '!ERROR')
cmd(atik, '@time 0.005', '!TIME', '!ERROR')
tcp_server(atsctl, atik)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment