consts.py

download
#!/usr/bin/python

BAUD_RATE = 230400

STATUS_UNUSED = 0 #currently unused "Status" field in an stxetx packet
PCKT_CMD = 0 #packet type for stxetx packet "Type" field
MAX_RECEIVE_BUFFER_LEN = 256

SET_MOTOR_SPEED = 0 #tell the motor to run 
CONFIG_PID = 1 #tell the PIC we are setting the controller gains
SENSE_DATA = 2

DISCONNECT = -1
CONNECT = -2

MAX_EMF = 1023.0
X_MIN = 0       #Min X (time) value for plotting EMF
Y_MIN = 0       #Min Y (EMF) value for plotting EMF
Y_MAX = MAX_EMF #Max Y (EMF) value for plotting EMF
download