fluidcoriolis.carriage¶
How to use the carriage in Coriolis¶
Position sensor¶
A position sensor server has to be running.
If there is an error during the setup of the position_sensor_client.py, run:
python pos_sensor_server.py
Control the carriage¶
There are two methods.
Directly without server¶
Init with:
from carriage import Carriage
c = Carriage(True)
You can check the state with:
c.print_state()
If state is “Fault (9)”:
c.motor.fault_reset()
If state is “Ready To Switch (4)”:
c.enable()
If state is “Operation Enabled (6)”, you can use the carriage. Read the doc of the functions! For example, in ipython:
c.go_to?
With the carriage_server.py¶
Switch on the server:
python carriage_server.py
Open the carriage client in ipython:
run carriage_client.py
Warning: it prints in the server console.