Go to Post The driver must have a relationship with the robot, the driver should talk to the robot, speak soft encouraging words to it. Pet names are also a good idea. If the driver does not love the robot, how can the driver learn to trust the robot. - Gboehm [more]
Home
Go Back   Chief Delphi > Technical > Control System > FRC Control System
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #4   Spotlight this post!  
Unread 12-02-2016, 23:22
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Toggle or Digital Switches

Quote:
Originally Posted by NegaNexus View Post
When we disable, select another mode, and re-enable the program, it runs both cases at the same time.
Why do you think both are running? If it's just because both talon and talon1 are providing outputs, notice that nothing in your code ever turns either of them off. I think what's happening is that the first selected mode turns on one of the talons, then disabling the robot "turns it off", but it'll turn right back on again when the robot is reenabled. The second selected mode does its thing, ending up with both talons on.

You should probably set both talons to zero in autonomousInit() so you have a known starting state.
Reply With Quote
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 02:37.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi