I used all timers

Hi,
I have a program where I am using booth motors and I added two sensors on Pin 6,7 and I am using the LCD.
All of the above re working at the same time. I am trying to stop my 3pi after 3 minutes of traveling. How can I do that???
I tried using
time_reset()
and
get_ms()
and unsigned char pololu_3pi_init(unsigned int line_sensor_timeout)
unsigned char pololu_3pi_init_disable_emitter_pin(unsigned int line_sensor_timeout)

didn’t all work. the error says …/TT.c:23: error: too many arguments to function 'time_reset’
I am trying to stop my 3pi after 3 minutes of traveling. How can I do that

Hello.

Posting your compile error is pretty much useless without actually posting your code.

If you want to stop after three minutes, store the time at the start of your program and then poll the system time until it says three minutes have elapsed.

unsigned long start_time = get_ms();

while (1) // main loop
{
  if (get_ms() - start_time >= 180000)  // 180 seconds (or 3 minutes) have elapsed
  {
    // do stuff to make 3pi stop
  }
  // rest of main loop goes here
}

- Ben

Thanks Ben. I will get back to you with my code because i have too many loops.

thanks