device.base.inomotorbase module

class device.base.inomotorbase.ArduinoMotorsBase(calibfile, buses=None, limits_enabled=True, **kwargs)[source]

Bases: HardwareBase

Base class for …

homing()[source]

Execute homing procedure for each of the motors.

is_homed()[source]

Homing process executed?

limits(motor_id)[source]

Return position limits of specified motor [mm].

Parameters:

motor_id (str) – Id of motor, see property motor_ids.

property motor_ids
moveto(motor_id, position)[source]

Move a specified motor to new position [mm].

Parameters:
  • motor_id (str) – Id of motor, see property motor_ids.

  • position (float) – New position in mm.

position(motor_id)[source]

Return position of a specified motor [mm].

Parameters:

motor_id (str) – Id of motor, see property motor_ids.

update_frontend(device_client)[source]
exception device.base.inomotorbase.CalibrationFileError[source]

Bases: Exception

class device.base.inomotorbase.MotorsCalibration(filename, limits_enabled=True)[source]

Bases: object

Helper class that parses calibration file and uses the data.

Calibration file - required options and data types

unit, id : str invert direction : bool or yes/no offset, limit low, limit high, limits bounce : float

apply(motor_id, position)[source]
apply_movedist(motor_id, distance)[source]
check_limits(motor_id, position)[source]

Returns false if position is not within limits.

limits(motor_id)[source]
property motor_ids
nearest_in_limits(motor_id, position)[source]

Returns nearest position inside limits + bounce distance.

class device.base.inomotorbase.TestSerial(bus, *args, **kwargs)[source]

Bases: object

close()[source]
flush()[source]
readline()[source]
reset_input_buffer()[source]
setDTR(b)[source]
write(data)[source]