Servo abstraction.
More...
|
| jsonData |
|
| now |
|
| modifier |
|
| channel |
|
| angle |
|
| trim |
|
| disabled |
|
| inverted |
|
| pulsetable |
|
| time |
|
| jbModule |
|
| jbType |
|
| jbIndex |
|
| jsonData |
|
|
def | reindex (force=False) |
|
def | find (jbModule, jbType, jbIndex) |
|
def | all (jbModule=None, jbType=None) |
|
def | hydrate (jbModule=None, jbType=None, ids=[]) |
|
| basepath = os.path.join(AmsEnvironment.FilePath(), 'jsonblob') |
|
| indexpath = os.path.join(basepath, 'index.json') |
|
dictionary | constructors = {} |
|
bool | indexexists = False |
|
bool | indexed = False |
|
dictionary | index = {} |
|
§ __init__()
def Motion.Servo.__init__ |
( |
|
self, |
|
|
|
index = None |
|
) |
| |
Initializes the Servo object
@param index
§ buildPulseTable()
def Motion.Servo.buildPulseTable |
( |
|
self | ) |
|
pre-calculate pwm values and index by angle
§ doCallback()
def Motion.Servo.doCallback |
( |
|
self | ) |
|
§ relax()
def Motion.Servo.relax |
( |
|
self | ) |
|
§ reload()
def Motion.Servo.reload |
( |
|
self | ) |
|
sync object with saved data
§ resetData()
def Motion.Servo.resetData |
( |
|
self | ) |
|
sync servo with saved data
§ save()
def Motion.Servo.save |
( |
|
self | ) |
|
override JsonBlob.save() to allow specification ID to be inserted
§ setCallback()
def Motion.Servo.setCallback |
( |
|
self, |
|
|
|
func |
|
) |
| |
sets the function to use for callbacks
@param func
§ setServoAngle()
def Motion.Servo.setServoAngle |
( |
|
self, |
|
|
|
time = None , |
|
|
|
modifier = 0 |
|
) |
| |
sync the physical servo angle with in-memoty value
@param time int
@param modifier int
The documentation for this class was generated from the following file: