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!
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
Moved the thread to more appropriate section