Thread: PBasic Question
View Single Post
  #10   Spotlight this post!  
Unread 31-10-2002, 15:17
SlamminSammy's Avatar
SlamminSammy SlamminSammy is offline
Registered User
no team
Team Role: College Student
 
Join Date: Jun 2002
Location: Glasgow, Scoland
Posts: 140
SlamminSammy is on a distinguished road
Send a message via AIM to SlamminSammy
Quote:
Originally posted by f22flyboy

p1_sw_top_prev=p1_sw_top

I see that it sets p1_sw_top_prev=0 but why not just say that?
The gear_count is a delay to prevent damage to the gearbox and I think the p1_sw_top_prev=p1_sw_top resets the input and as for not setting it equal to zero, the button may not have started in the zero (off) position.

Anyway, Rob will be back in an hour and explain everything.
__________________
The opinions stated above are not necessarily those expressed by the FIRST Robotics Program, its participating teams, or any other individual or organization.