Wanting to add an accel and decel function to a Motor Controller

Robin2:
Rather than use the value ...

Thank you! This is getting my wheels turning in the right direction i think. I'm the captain of over thinking and over complicating what should be a simple solution. One question that comes to mind right away about you code. Wouldn't i have to increment in steps of 1 always since if i increment in steps 5 and my target is not an interval of five it will over shoot and oscillate the speed, never getting to target?? I'm sorry if I miss understand. I'll be implementing this into my code this afternoon when i'm home for the day. Thanks again!

PaulS:
You have some code ...

Yes, but didn't include it because it wasn't what i was trying to accomplish. Here is the snip that applies to what we are doing. I'm walking out the door so I'm sorry if it leaves something out(like int variables). My program is lengthy and 80% doesn't apply to what I'm talking about here. Thanks!

void read_pot() {
  potvalue = analogRead(pot_pin);                   // read the input on analog pin 0 and write to var potvalue:
}

void map_pot() {
 if(trigger == 0) {
 mappedpotvalue = map(potvalue, 0, 1023, 1000, 2000);       //1000:full rev  1500:neutral  2000:full forward
  bargraphvalue = mappedpotvalue - 1000;                    //Display speed on lcd in graph form
  }
  else() {
  mappedpotvalue = 1500
  }
}

void drive_pwm() {
talon.writeMicroseconds(mappedpotvalue);
}