Python Forum
Help with general program structure (OOP?)
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help with general program structure (OOP?)
#1
Hi guys,

I am a student and currently working on a research project. I just want some input on my program design and hopefully someone with more experience than me can guide me in the write direction. This program is ran on an RPi5, and its talking to some stepper motors and taking photos incrementally. You can find the code linked here.

My goal is to have to be able to quickly add more motors and set them up. I'm not so worried about the functions for the movement, just mainly being able to easily create new motors on the fly if I need to. I feel like my current approach is not optimal for this and I am at a point where I don't really know how to move forward. Is OOP the best approach? Do I really need to have all my functions inside of a class? Should I have a separate class for motor init? Any input would be very helpful!
buran write Oct-12-2024, 03:35 AM:
Moved the thread to more appropriate section
Reply
#2
The motor controller used in this software was manufactured by Analog devices.
I would suggest that you visit the following pages:
datasheet
ADI Trinamic Hardware for Motor and Motion Control
and for software explanation: Motor and Motion Control Software

The software page has links for specific devices, including TMC Tech Access Package
Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020