Advertisement
Guest User

odrive

a guest
Jun 12th, 2023
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.03 KB | None | 0 0
  1. odrv = odrv0
  2. odrv.config.dc_bus_overvoltage_trip_level = 35
  3. odrv.config.dc_max_positive_current = 5
  4. odrv.config.dc_max_negative_current = -2
  5. odrv.axis0.config.motor.motor_type = MotorType.HIGH_CURRENT
  6. odrv.axis0.config.motor.torque_constant = 0.516875
  7. odrv.axis0.config.motor.pole_pairs = 20
  8. odrv.axis0.config.motor.current_soft_max = 5
  9. odrv.axis0.config.motor.current_hard_max = 9
  10. odrv.axis0.config.motor.calibration_current = 4
  11. odrv.axis0.config.motor.resistance_calib_max_voltage = 30
  12. odrv.axis0.config.calibration_lockin.current = 4
  13. odrv.axis0.controller.config.input_mode = InputMode.PASSTHROUGH
  14. odrv.axis0.controller.config.control_mode = ControlMode.TORQUE_CONTROL
  15. odrv.axis0.config.torque_soft_min = -1
  16. odrv.axis0.config.torque_soft_max = 1
  17. odrv.axis0.config.enable_watchdog = True
  18. odrv.axis0.config.watchdog_timeout = 1
  19. odrv.axis0.config.encoder_bandwidth = 100
  20. odrv.hall_encoder0.config.enabled = True
  21. odrv.axis0.config.load_encoder = EncoderId.HALL_ENCODER0
  22. odrv.axis0.config.commutation_encoder = EncoderId.HALL_ENCODER0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement