UMRT Arm Firmware Library
Classes | Functions
MksTest.py File Reference

This file lists the commands of the MKS SERVO57D/42D/35D/28D stepper motor driver modules. More...

Classes

class  MksTest.Constants
 Constants associated with MksTest.py. More...
 
class  MksTest.Commands
 

Functions

def MksTest.extract_mks_commands (enum_header)
 
def MksTest.format_canmsg (can.Message msg)
 
def MksTest.squeeze_msg (can.Message msg)
 
def MksTest.try_send_msg (int driver_can_id, can.Bus bus, list payload)
 
def MksTest.get_motor_speed (int driver_can_id, can.Bus bus=None)
 
def MksTest.get_current_pos (int driver_can_id, can.Bus bus=None)
 
def MksTest.set_speed (int driver_can_id, bool dir, int speed, int accel, can.Bus bus=None, int norm_factor=16)
 
def MksTest.send_step (int driver_can_id, bool dir, int speed, int accel, int steps, can.Bus bus=None, int norm_factor=16)
 
def MksTest.seek_pos_by_steps (int driver_can_id, int speed, int accel, int pos, can.Bus bus=None, int norm_factor=16)
 
def MksTest.on_motor_speed (msg)
 
def MksTest.on_current_pos (msg)
 
def MksTest.test (driver_can_id, can_device, bitrate)
 

Detailed Description

This file lists the commands of the MKS SERVO57D/42D/35D/28D stepper motor driver modules.