Changes between Version 20 and Version 21 of Tutorials


Ignore:
Timestamp:
Mar 29, 2016, 2:18:35 PM (10 years ago)
Author:
fma
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Tutorials

    v20 v21  
    426426            # Create joints servos
    427427            num = settings.LEGS_SERVOS_MAPPING[leg.index]['coxa']
    428             servo = Servo(leg.coxa, num)
     428            servo = Servo(leg.coxa, num, **settings.SERVOS_CALIBRATION[num])
    429429            pool.add(servo)
    430430
    431431            num = settings.LEGS_SERVOS_MAPPING[leg.index]['femur']
    432             servo = Servo(leg.femur, num)
     432            servo = Servo(leg.femur, num, **settings.SERVOS_CALIBRATION[num])
    433433            pool.add(servo)
    434434
    435435            num = settings.LEGS_SERVOS_MAPPING[leg.index]['tibia']
    436             servo = Servo(leg.tibia, num)
     436            servo = Servo(leg.tibia, num, **settings.SERVOS_CALIBRATION[num])
    437437            pool.add(servo)
    438438        return pool
     
    448448     1: {'offset': -90., 'pulse90': 1500, 'ratio': 1000/90.},  # femur leg RF
    449449     2: {'offset':   0., 'pulse90': 1500, 'ratio': 1000/90.},  # tibia leg RF
    450      3: {'offset':   0., 'pulse90': 1500, 'ratio': 1000/90.},  # unused
     450
    451451     4: {'offset':   0., 'pulse90': 1500, 'ratio': 1000/90.},  # coxa leg RM
    452452     5: {'offset': -90., 'pulse90': 1500, 'ratio': 1000/90.},  # femur leg RM
    453453     6: {'offset':   0., 'pulse90': 1500, 'ratio': 1000/90.},  # tibia leg RM
    454      7: {'offset':   0., 'pulse90': 1505, 'ratio': 1000/90.},  # unused
     454
    455455     8: {'offset':   0., 'pulse90': 1500, 'ratio': 1000/90.},  # coxa leg RR
    456456     9: {'offset': -90., 'pulse90': 1500, 'ratio': 1000/90.},  # femur leg RR
    457457    10: {'offset':   0., 'pulse90': 1500, 'ratio': 1000/90.},  # tibia leg RR
    458     11: {'offset':   0., 'pulse90': 1500, 'ratio': 1000/90.},  # unused
    459     12: {'offset':   0., 'pulse90': 1500, 'ratio': 1000/90.},  # unused
     458
     459    15: {'offset':   0., 'pulse90': 1500, 'ratio': 1000/90.},  # coxa leg LR
     460    14: {'offset': -90., 'pulse90': 1500, 'ratio': 1000/90.},  # femur leg LR
    460461    13: {'offset':   0., 'pulse90': 1500, 'ratio': 1000/90.},  # tibia leg LR
    461     14: {'offset': -90., 'pulse90': 1500, 'ratio': 1000/90.},  # femur leg LR
    462     15: {'offset':   0., 'pulse90': 1500, 'ratio': 1000/90.},  # coxa leg LR
    463     16: {'offset':   0., 'pulse90': 1500, 'ratio': 1000/90.},  # unused
     462
     463    19: {'offset':   0., 'pulse90': 1505, 'ratio': 1000/90.},  # coxa leg LM
     464    18: {'offset': -90., 'pulse90': 1500, 'ratio': 1000/90.},  # femur leg LM
    464465    17: {'offset':   0., 'pulse90': 1500, 'ratio': 1000/90.},  # tibia leg LM
    465     18: {'offset': -90., 'pulse90': 1500, 'ratio': 1000/90.},  # femur leg LM
    466     19: {'offset':   0., 'pulse90': 1505, 'ratio': 1000/90.},  # coxa leg LM
    467     20: {'offset':   0., 'pulse90': 1500, 'ratio': 1000/90.},  # unused
     466
     467    23: {'offset':   0., 'pulse90': 1500, 'ratio': 1000/90.},  # coxa leg LF
     468    22: {'offset': -90., 'pulse90': 1500, 'ratio': 1000/90.},  # femur leg LF
    468469    21: {'offset':   0., 'pulse90': 1500, 'ratio': 1000/90.},  # tibia leg LF
    469     22: {'offset': -90., 'pulse90': 1500, 'ratio': 1000/90.},  # femur leg LF
    470     23: {'offset':   0., 'pulse90': 1500, 'ratio': 1000/90.},  # coxa leg LF
    471470}
    472471}}}