RP ✔️ VESC Controller Einbau (1S, PRO2, G30 ...)

Guten Tag! Ich kann nicht herausfinden, wie ich den zweiten Motor drehen soll, ich habe nur den Hauptregler, der auf Gas und Bremse reagiert, der Slave steht. Und noch eine Frage, kann ich den Code so ausführen, dass ich ble, in keiner Weise mit der Gassteuerung verbunden hätte, sondern dies bereits durch die Verbindung zum zweiten Controller implementieren würde

Für AWD verwendest du das AWD Skript in welchem du bei Zeile 47
(define slave-can 15)
den Slave Controller einträgst mit dessen ID, welche du durch das Verbinden über CAN erhältst.
Auf dem Slave ESC muss das Skript NICHT laufen und sollte es auch nicht. Nur auf dem Master ESC an diesem auch das Display angebunden ist.
 
  • Hilfreich!
Reaktionen: Dr.One
Hey, ich bin gerade am umschauen nach einen neuen Motor für dem Xiaomi 1s. Weiß zufällig jmd welcher der stärkste Motor ist der auf der standard 1s Frontgabel passt. Der 500W Monorim Motor ist mir noch zu wenig Leistung aber leider konnte ich keinen anderen finden.
 
Für AWD verwendest du das AWD Skript in welchem du bei Zeile 47
(define slave-can 15)
den Slave Controller einträgst mit dessen ID, welche du durch das Verbinden über CAN erhältst.
Auf dem Slave ESC muss das Skript NICHT laufen und sollte es auch nicht. Nur auf dem Master ESC an diesem auch das Display angebunden ist.
:love::cool:
 

Anhänge

  • IMG_1723.mp4
    22,2 MB
  • Strahlend
Reaktionen: Izuna
Ich habe die lock funktion erweitert auf Vor-und Rückwerts schieben:
----------------------------------------------
; beep field

(if (= lock 1)

(if (> (* (get-speed) 3.6) 0.1)

(bufset-u8 tx-frame 9 1) ; Beep when being pushed forward while locked

(if (< (* (get-speed) 3.6) -0.1)

(bufset-u8 tx-frame 9 1) ; Beep when being pushed forward while locked

(bufset-u8 tx-frame 9 0)))

(if (> feedback 0)

(progn

(bufset-u8 tx-frame 9 1)

(setvar 'feedback (- feedback 1))

)

(bufset-u8 tx-frame 9 0)

)

)

-------------------------------------------------------------------------------
(if (= lock 1) ; Check if it is locked
(if (< current-speed -0.1) ; Brake when being pushed backwards while locked
(progn
(set-brake-rel 1)
(canset-brake-rel slave-can 1)
) ; Full power brake
(if (> current-speed 0.1) ; Brake when being pushed forward while locked
(progn
(set-brake-rel 1)
(canset-brake-rel slave-can 1)
) ; Full power brake
(set-brake-rel 0) ; No brake
)
)
(set-brake-rel 0) ; No brake input when off
)
 
  • Hilfreich!
Reaktionen: S1m0n
Ich habe die lock funktion erweitert auf Vor-und Rückwerts schieben:
----------------------------------------------

Anstatt zu überprüfen ob die Geschwindigkeit bei über 0.1 und unter -0.1 ist, hätte man alternativ den absoluten Wert mit Hilfe der Funktion abs bekommen können. Falls ich das nächste Mal nochmals was am Lisp ändere, dann füge ich das noch hinzu. Dennoch sinnvoller Ansatz, auch wenn es nicht perfekt umgesetzt ist.
 
  • Hilfreich!
Reaktionen: S1m0n und Zanooon97
Thanks for the tip. I will try abs function when I have time. If anyone could help me to program a back to stock code, i.e. back to sport mode while holding brake and throttle for 1 seconds, I will much appreciate. I'm struggleging since weeks.
 
Thanks for the tip. I will try abs function when I have time. If anyone could help me to program a back to stock code, i.e. back to sport mode while holding brake and throttle for 1 seconds, I will much appreciate. I'm struggleging since weeks.

Dies ist bereits im Script implementiert. Es genügt, die Tastenkombination erneut zu drücken, um in den normalen Modus zurückzukehren.
This is already a feature of the script. Press the unlock combination again to return to normal mode.
 
Ceci est déjà implémenté dans le script. Il suffit d'appuyer à nouveau sur la combinaison de touches pour revenir au mode normal.
C'est déjà une fonctionnalité du script. Appuyez à nouveau sur la combinaison de déverrouillage pour revenir au mode normal.

Ouies, I konw and it is a good trick but I would prefer to avoid to have to press the button. I would like to be able to return to stock only by holding brake and throttle for x seconds. I think it is more difficult to notice for other people if you keep your hans on the handle.
 
Hallo. Wenn die Unterstützung für Xiaomi BMS herauskommt, wird die Parkbremsleuchte auch damit funktionieren? Denn die Arbeit von Power BMS kann auch individuell angepasst werden.
 
Hello, I'm using since few days a copy dashboard which is flashed with ble090.
I noticed two issues: throttle is limited to 0.85 when light is ON (instead of 1.00/100%) and when it is locked I don't have the lock icon, the screen is freezed
 
It is also present on pro2 dashboard bit I had never noticed.

Please filter your voltage on the display or throttle. The throttle input is measured by the display itself, but if it drops due to the light being turned on, this will fuck up the throttle range. About the lock icon, it is likely that the BLE version or the BLE itself does not feature a lock icon? I've seen this on G30, that they don't have a lock icon, but on PRO2 BLE works fine. Might try using something between 1.2.9 - 1.3.6 BLE firmware.
 
Please filter your voltage on the display or throttle. The throttle input is measured by the display itself, but if it drops due to the light being turned on, this will fuck up the throttle range. About the lock icon, it is likely that the BLE version or the BLE itself does not feature a lock icon? I've seen this on G30, that they don't have a lock icon, but on PRO2 BLE works fine. Might try using something between 1.2.9 - 1.3.6 BLE firmware.

Thanks, I changed the throttle high value to have 1 when light is turned on even if I lost some thrttle "sensitivity" when light is off.
regarding purple dashboard (copy), the lock icon is present but you are right ble090 is probably not compatible as is works on my pro2. As far I know, only ble090 is compatible with chinese stuff
 
Hi Izuna 1zuna,
funktioniert diese Kombi auch:
Folgender VESC mit F40 original Dash
Wäre über eine Antwort froh.

MfG
Der VESC würde durchaus funktionieren, wenn du ihn auf VESC 6.0 oder neuer updaten kannst. Das F40 Dash aber kann ich dir leider nicht sagen, ist das denn wie die 1S/PRO2/G30 dash?
 
  • Hilfreich!
Reaktionen: Dr.One
Wie meinst das, in welcher Hinsicht?
Flippi is bestellt, mal schaun, wenn er da is, ob man den updaten kann.
Es steht doch 6,6 nach VESC, is das nicht die Version?
Izuna 1zuna Aaaalso, LISP wird unterstützt, muss nur updaten auf 6.0 oder höher.
Das Dash: "F series using old NRF MCU like pro1/g30", so PRO1 BLE wird möglich sein.
Gibt es sonst, hardwaretechnisch noch was zu beachten, für den Augenblick?