Page 1 of 1

Cruise Control din_forward

Posted: Tue Jul 09, 2024 7:34 pm
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?

Re: Cruise Control din_forward  [SOLVED]

Posted: Tue Jul 09, 2024 8:01 pm
by johu
This was added as a safety measure.

Set dirmode to SwitchReversed and rewire your direction selection

Re: Cruise Control din_forward

Posted: Wed Jul 10, 2024 9:38 am
by mane2
Cool, thanks. I guess "hill hold" -mode will start to work then too.

Re: Cruise Control din_forward

Posted: Wed Jul 10, 2024 2:57 pm
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?

Re: Cruise Control din_forward

Posted: Wed Jul 10, 2024 4:51 pm
by johu
That needs proper testing. Supposed to for sine, too but apparently doesn't