Cruise Control din_forward  [SOLVED]

Topics concerning the Tesla front and rear drive unit drop-in board
Post Reply
User avatar
mane2
Posts: 215
Joined: Fri Jan 13, 2023 6:32 am
Location: Finland
Has thanked: 31 times
Been thanked: 28 times

Cruise Control din_forward

Post by mane2 »

So, I have Tesla LDU and when going forward I need to put the motor to "reverse" in firmware point of view to go forward. When trying to use cruise control, it won't engage as in code there is this

Code: Select all

   
   if (Param::GetBool(Param::din_brake) || !Param::GetBool(Param::din_forward))
   {
      Throttle::cruiseSpeed = -1;
   }
So it always sets cruiseSpeed to -1 when going forward with Tesla motor (as it's on din_reverse when going forward).

I'm on firmware v5.32.R

How to fix this? How to enable cruise on Tesla motors?
User avatar
johu
Site Admin
Posts: 6070
Joined: Thu Nov 08, 2018 10:52 pm
Location: Kassel/Germany
Has thanked: 214 times
Been thanked: 1206 times
Contact:

Re: Cruise Control din_forward  [SOLVED]

Post by johu »

This was added as a safety measure.

Set dirmode to SwitchReversed and rewire your direction selection
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
User avatar
mane2
Posts: 215
Joined: Fri Jan 13, 2023 6:32 am
Location: Finland
Has thanked: 31 times
Been thanked: 28 times

Re: Cruise Control din_forward

Post by mane2 »

Cool, thanks. I guess "hill hold" -mode will start to work then too.
User avatar
mane2
Posts: 215
Joined: Fri Jan 13, 2023 6:32 am
Location: Finland
Has thanked: 31 times
Been thanked: 28 times

Re: Cruise Control din_forward

Post by mane2 »

Got the cruise control working by rewiring and switching to SwitchReversed. Thanks!

But Hill hold did not start to work :( Was it so, that it works only on FOC version?
User avatar
johu
Site Admin
Posts: 6070
Joined: Thu Nov 08, 2018 10:52 pm
Location: Kassel/Germany
Has thanked: 214 times
Been thanked: 1206 times
Contact:

Re: Cruise Control din_forward

Post by johu »

That needs proper testing. Supposed to for sine, too but apparently doesn't
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
Post Reply