if(mode == one_pedal) {
//use accelarator map for one pedal driving
} else {
// use accelerator map where no throttle means some accelerator
}
More complicated than this of course, but that's the gist of it. One pedal mode would be a separate mode where there is no creep.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.