MobiFlight / MobiFlight-Connector

MobiFlight is an open source project that allows you to create your own home cockpit for your favorite flight simulator in a flexible, affordable and extremely user-friendly way.
https://mobiflight.com
MIT License
231 stars 104 forks source link

Stepper motor parameter units are unknown in the Output Config Display tab. #1788

Open JaimeLeon2 opened 3 months ago

JaimeLeon2 commented 3 months ago

Is your feature request related to a problem? Please describe. The Output Config Display tab for stepper motor configuration is unclear about what are the units of the three parameters required to configure the stepper motor. Namely: Full revolution, Speed and Acceleration.

Describe the solution you'd like Clear definition of the units in the window labels. Without units, how can a user set the speed of the stepper to exactly 100 rpm. Trial and error seems to be the only way currently.

Describe alternatives you've considered Nothing is currently specified, so saying speed of 800 with acceleration of 1200 is meaningless.

Additional context None

tigert commented 3 months ago

We use AccelStepper library as far as I know, and it has these:

acceleration - The desired acceleration in steps per second per second. speed - The desired constant speed in steps per second. Positive is clockwise. Speeds of more than 1000 steps per second are unreliable.

But need to check the code if the parameters in MobiFlight stepper config are mapped 1:1 to the stepper library.

elral commented 3 months ago

Yes, they are mapped 1:1.

JaimeLeon2 commented 3 months ago

Says here that speed up to 4000 steps per second can reliably be obtained with the Accelstepper library [https://www.airspayce.com/mikem/arduino/AccelStepper/classAccelStepper.html]() Is that an error then?