C++ Programming

Hey i was wondering with C++ in VCS if you could 2 buttons run the FW at 2 different speeds but if you were to go from one to the next if it would be possibly to have it slowly increase or decrease to the set speeds. I know i had tbh in v4 but i wanted to see if there was an easier way with the new motors