-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add dynamic motor control for mow motor and for moving motors #24
Conversation
# Conflicts: # sunray/config_example.h # sunray/motor.cpp Signed-off-by: Felix Ganzer <felixganzer@web.de>
ich habe ein paar kleine Fehler behoben und die Dokumentation in den config.h erweitert. |
Heute getestet mit |
Nächster Test, heute mit etwas höherem Gras und |
Ich habe alles wie hier hochgeladen getestet und es läuft bislang ohne Probleme:
Ein Softstart des Mähmotors wäre sicherlich noch sinnvoll - was meint Ihr? Bevor wir es in dem Master übernehmen, wäre ein Test mit BLDC-Motoren wichtig. Hat das schon jmd. getestet? |
Ich habe noch einen Bug gefunden. Wenn man den Mower Manuell über die App steuert, spinnt er beim geradeaus fahren rum. Die Ursache muss ich noch suchen. |
Das hatte ich auch beim ersten Mal, konnte es aber nicht reproduzieren. Dann lag es wohl doch nicht an einer schlechten WLAN Verbindung bei mir...
|
Den Bug bei der manuellen Steuerung habe ich auch, allerdings nicht immer. |
Ich habe den Fehler gefunden und bei mir schon behoben. Habe gleichzeitig noch einen Fehler gefunden, dass die Mähscheibe nicht mehr die Richtung wechselt, wenn der Motor anspringt. Ich werde dieses Wochenende noch alles einmal testen und dann den commit aktualisieren. |
bugfix mower speed at manual control of mower
ich habe die aktuelle Version gepullt |
Wollte gerade testen ... 'motorLeftRpmSetLast' was not declared in this scope; did you mean 'motorLeftRpmLast'? |
Ups. Sowas passiert, wenn man code aufräumt und ihn nicht noch einmal testet. Und das auch noch schnell mal zwischendurch macht. |
Mittlerweile die Bugfixes mehrmals getestet und alles lief sauber, konnte bisher keine Fehler feststellen. |
I was tried for 2 weeks ago. Works good! Thx! |
Excellent contribution! +1: I think we are very close to merging this into the Master :-) PS: Anyone tried it with brushless motors so far? :-) |
I only tried it in the test setup on a table with brushless motors + PCB1.4 and then checked in the serial monitor for a while. |
Kleineres Problem, was ich festgestellt habe: |
Recht haste. Da ich noch keine Ladestation habe, habe ich nicht daran gedacht. Werde das am Wochenende implementieren. |
Btw, is this code meant for everyone use? The code will produce a lot of CONSOLE messages, doesn't it? The motors are controlled 50 times a second (50 Hz) and there are a lot of CONSOLE messages in these frequent called motor control functions :-) |
Die consoleneinträge werde ich auch deaktivieren. |
add reset pwmSpeedOffset at switch mow state
Konnte jetzt über 2 Wochen keiner Fehler feststellen, funktioniert zu 100% und wäre reif für den Master |
Super. Ich teste morgen mal mit Brushless-Motoren :-) |
Ich teste schon ein paar Tage mit Brushless Motoren. Einmal ist mir aufgefallen, das er losgefahren ist ohne das der Mähmotor lief. Ich hatte ihn da per Einschaltknopf gestartet. Ansonsten scheint es gut zu funktionieren. Mal sehen wie es diesen Freitag wird. Zuletzt habe ich am Montag mähen lassen. |
merged and tested, if it can be deactivated (ENABLE_DYNAMIC_MOWMOTOR false, ENABLE_DYNAMIC_MOWER_SPEED false) - it seems the OFF-options are not 100% considered all the time, the robot is sporadically driving slowly for longer times? Any ideas? :-) |
addendum: if you look at the lines in "speedPWM()" in motor.cpp, one is considering "ENABLE_DYNAMIC_MOWMOTOR", however "ENABLE_DYNAMIC_MOWER_SPEED" is not even mentioned in the motor.cpp code...? :-) |
never mind- found the missing code (for ENABLE_DYNAMIC_MOWER_SPEED) and added it ;-) |
Danke. Hätte ich sonst heute abend gemacht. Hatte ich wohl vergessen. |
Hi,
Ich habe im Quellcode die Möglichkeit hinzugefügt die Drehgeschwindigkeit des Mähmotors dynamisch an die Last (Current) des Mähmotors anzupassen.
Des Weiteren kann auch die Geschwindigkeit automatisch an die Last des Mähmotors angepasst werden.
Des Quellcode ist getestet und bei mir im Betrieb.