Changes between Version 20 and Version 21 of Tutorials
- Timestamp:
- Mar 29, 2016, 2:18:35 PM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Tutorials
v20 v21 426 426 # Create joints servos 427 427 num = settings.LEGS_SERVOS_MAPPING[leg.index]['coxa'] 428 servo = Servo(leg.coxa, num )428 servo = Servo(leg.coxa, num, **settings.SERVOS_CALIBRATION[num]) 429 429 pool.add(servo) 430 430 431 431 num = settings.LEGS_SERVOS_MAPPING[leg.index]['femur'] 432 servo = Servo(leg.femur, num )432 servo = Servo(leg.femur, num, **settings.SERVOS_CALIBRATION[num]) 433 433 pool.add(servo) 434 434 435 435 num = settings.LEGS_SERVOS_MAPPING[leg.index]['tibia'] 436 servo = Servo(leg.tibia, num )436 servo = Servo(leg.tibia, num, **settings.SERVOS_CALIBRATION[num]) 437 437 pool.add(servo) 438 438 return pool … … 448 448 1: {'offset': -90., 'pulse90': 1500, 'ratio': 1000/90.}, # femur leg RF 449 449 2: {'offset': 0., 'pulse90': 1500, 'ratio': 1000/90.}, # tibia leg RF 450 3: {'offset': 0., 'pulse90': 1500, 'ratio': 1000/90.}, # unused 450 451 451 4: {'offset': 0., 'pulse90': 1500, 'ratio': 1000/90.}, # coxa leg RM 452 452 5: {'offset': -90., 'pulse90': 1500, 'ratio': 1000/90.}, # femur leg RM 453 453 6: {'offset': 0., 'pulse90': 1500, 'ratio': 1000/90.}, # tibia leg RM 454 7: {'offset': 0., 'pulse90': 1505, 'ratio': 1000/90.}, # unused 454 455 455 8: {'offset': 0., 'pulse90': 1500, 'ratio': 1000/90.}, # coxa leg RR 456 456 9: {'offset': -90., 'pulse90': 1500, 'ratio': 1000/90.}, # femur leg RR 457 457 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 460 461 13: {'offset': 0., 'pulse90': 1500, 'ratio': 1000/90.}, # tibia leg LR 461 14: {'offset': -90., 'pulse90': 1500, 'ratio': 1000/90.}, # femur leg LR 462 1 5: {'offset': 0., 'pulse90': 1500, 'ratio': 1000/90.}, # coxa leg LR463 1 6: {'offset': 0., 'pulse90': 1500, 'ratio': 1000/90.}, # unused462 463 19: {'offset': 0., 'pulse90': 1505, 'ratio': 1000/90.}, # coxa leg LM 464 18: {'offset': -90., 'pulse90': 1500, 'ratio': 1000/90.}, # femur leg LM 464 465 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 LM467 2 0: {'offset': 0., 'pulse90': 1500, 'ratio': 1000/90.}, # unused466 467 23: {'offset': 0., 'pulse90': 1500, 'ratio': 1000/90.}, # coxa leg LF 468 22: {'offset': -90., 'pulse90': 1500, 'ratio': 1000/90.}, # femur leg LF 468 469 21: {'offset': 0., 'pulse90': 1500, 'ratio': 1000/90.}, # tibia leg LF 469 22: {'offset': -90., 'pulse90': 1500, 'ratio': 1000/90.}, # femur leg LF470 23: {'offset': 0., 'pulse90': 1500, 'ratio': 1000/90.}, # coxa leg LF471 470 } 472 471 }}}
