Go to Post Baker, you certainly are a trouble maker. :) - Rich Kressly [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 16-02-2012, 20:28
propionate's Avatar
propionate propionate is offline
Team co-lead and LabVIEW programmer
AKA: Stephen
FRC #1732 (Hilltopper Robotics)
 
Join Date: Jan 2012
Rookie Year: 2009
Location: Milwaukee
Posts: 93
propionate is on a distinguished road
Autonomous mode running in TeleOp

I have encountered a strange problem with the code: When I select TeleOp mode on the driver's station PC, the code still runs Autonomous first before going to TeleOp. Sort of like what happens in practice mode. In addition, once the TeleOp code starts running, it appears to be timing out every second or so and then restarting. It runs OK, but seems very laggy. There are no errors coming out besides the "Left and Right Drive Motors VI is running too slowly," which has showed up for us for 2 seasons now.
Reply With Quote
  #2   Spotlight this post!  
Unread 16-02-2012, 20:33
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,751
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Autonomous mode running in TeleOp

Has the Robot Main code been changed? It calls a function to get the robot mode and selects which code to run based on that. Additionally, the Charts tab of the DS draws a dot a the bottom showing what the DS is telling the robot to run, and dots beneath showing the robot code that is running.

If you are pretty sure this is happening, please post code or an image of the modified code.

Greg McKaskle
Reply With Quote
  #3   Spotlight this post!  
Unread 16-02-2012, 21:42
DominickC DominickC is offline
Registered User
FRC #0023 (PNTA)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 1620
Location: Boston
Posts: 435
DominickC is an unknown quantity at this point
Re: Autonomous mode running in TeleOp

We experienced this issue during Week 1 when one of the harder working freshmen on the team tried his hand in programming. I looked at the program, and after a while realized he'd done a funky number on Robot Main.vi. Try opening a new 2012 Robot Project and swapping the two files out for each other, or compare the two and see if there are any anomalies.
Reply With Quote
  #4   Spotlight this post!  
Unread 17-02-2012, 20:16
dotbran dotbran is offline
Registered User
AKA: Brandon Olsen
FRC #3219 (TREAD)
Team Role: Programmer
 
Join Date: Feb 2010
Rookie Year: 2010
Location: Auburn, WA
Posts: 68
dotbran is on a distinguished road
Re: Autonomous mode running in TeleOp

This happens whenever my team deploys Robot Main then Autonomous Independent to test our code. All that needs to be done is enabling and disabling Autonomous mode quickly, then Teleop should work fine.
Reply With Quote
  #5   Spotlight this post!  
Unread 17-02-2012, 22:22
propionate's Avatar
propionate propionate is offline
Team co-lead and LabVIEW programmer
AKA: Stephen
FRC #1732 (Hilltopper Robotics)
 
Join Date: Jan 2012
Rookie Year: 2009
Location: Milwaukee
Posts: 93
propionate is on a distinguished road
Re: Autonomous mode running in TeleOp

Hello everyone, thanks for the responses. It doesn't appear that the Robot Main.vi has been changed at all - I compared it to a fresh project. I will run the code again tonight to see what the driver's station is sending/receiving as the robot mode.
Reply With Quote
Reply


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 11:20.

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