n3roGit / DPVControl

Your DIY diving vehicle controlled by ESP32
GNU General Public License v3.0
5 stars 1 forks source link

[BUG] Motor acceleration - PRIO 1 #15

Closed n3roGit closed 9 months ago

n3roGit commented 10 months ago

const double DUTY_FACTOR = 1.0; const double MIN_SPEED_DUTY = 0.38; //Duty on lowest setting. const double MIN_DUTY_SOFT = 0.23; //Minumum Duty we sent to the motor during soft acceleration. const double DUTY_SOFT_SKIP = 0.15;

Please add the following here. I would like to be able to exclude a certain range in the DutyCycle, e.g. 0.15 - 0.23. Unfortunately, the engine stutters in this range. This allows me to guarantee a smooth start from 0.

In addition, the first speed level is currently not correct. speed down: 1 corresponds to currentMotorSpeed: 0.43 and not 0.38

happyherp commented 10 months ago

try this: 592d2aaee92e4f046086101a1d33ef6d82efad86

n3roGit commented 10 months ago

Hmm that still behaves totally stupid. I think we should go back to setRMP. that worked best =)

happyherp commented 10 months ago

In addition, the first speed level is currently not correct. speed down: 1 corresponds to currentMotorSpeed: 0.43 and not 0.38

I fix this in production branch on a83f71a884d902662322ecad4a1c18942f48a526

happyherp commented 10 months ago

See Commit 06fab3a49425af747aeffdc711c9a0dedc78a180 on the new branch. It uses RPM again.

n3roGit commented 10 months ago

Please check this first https://github.com/n3roGit/DPVControl/issues/37

n3roGit commented 9 months ago

@happyherp could we close this?

happyherp commented 9 months ago

Yep. I will also delete the branch skip_duty_range where I did the changes.