Go to Post I quickly realized that, "hey, I'm looking at a wonderful piece of technology that defies gravity" and I calmed down quite a bit. - Elgin Clock [more]
Home
Go Back   Chief Delphi > Technical > Technical Discussion
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
View Poll Results: Do you ever lose control of your robot?
Never- our controls are always 100% with no sluggishness nor dropouts 26 37.14%
we started paying careful attention to radio placement and never had another problem 17 24.29%
Yes we sometimes have sluggishness and dropouts: We always just blame it on our software. 26 37.14%
We thought sluggishness was a requirement listed in the rule book 9 12.86%
Multiple Choice Poll. Voters: 70. You may not vote on this poll

Closed Thread
Thread Tools Rate Thread Display Modes
  #16   Spotlight this post!  
Unread 12-03-2011, 23:25
willishf willishf is offline
Registered User
FRC #3622 (Robocats)
Team Role: Mentor
 
Join Date: Feb 2011
Rookie Year: 2000
Location: United States
Posts: 12
willishf is an unknown quantity at this point
Re: Robots not under driver control- does it happen- do you determine why?

I did find in testing that once you enter in autonomous mode you need to keep track of the time spent and return from the method after 15 seconds. I have a keepGoing() method that I put in all the loops and before the next step that forces a return if 15 seconds has expired.

If not, the joysticks are not sampled and the appropriate drive method called. We are doing Java but assume the program constructs are the same in labview or C++.

Just because the field switches from autonomous mode to telop mode does not impact the code you have running on your robot.
  #17   Spotlight this post!  
Unread 12-03-2011, 23:38
Maxzillian Maxzillian is offline
Registered User
AKA: Eric H.
FRC #0935 (RaileRobotics)
Team Role: Mentor
 
Join Date: Feb 2003
Rookie Year: 2001
Location: Newton, KS
Posts: 24
Maxzillian is on a distinguished road
Send a message via AIM to Maxzillian
Re: Robots not under driver control- does it happen- do you determine why?

Quote:
Originally Posted by willishf View Post
I did find in testing that once you enter in autonomous mode you need to keep track of the time spent and return from the method after 15 seconds. I have a keepGoing() method that I put in all the loops and before the next step that forces a return if 15 seconds has expired.

If not, the joysticks are not sampled and the appropriate drive method called. We are doing Java but assume the program constructs are the same in labview or C++.

Just because the field switches from autonomous mode to telop mode does not impact the code you have running on your robot.
We had talked about the possibility of the robot not going out of autonomous mode, but wouldn't that cause the User1 indicator to turn off? I'll admit that this assumption is not based off direct knowledge, but what I had been told by the mentor who is experienced with LabView and the cRIO.
__________________
Team 935 RaileRobotics Alumni: 2001-2004
Team 935 RaileRobotics Mentor: 2009-Present
  #18   Spotlight this post!  
Unread 12-03-2011, 23:48
theprgramerdude theprgramerdude is offline
WPI Freshman
AKA: Alex
FRC #2503 (Warrior Robotics)
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2008
Location: Brainerd, Minnesota
Posts: 347
theprgramerdude has much to be proud oftheprgramerdude has much to be proud oftheprgramerdude has much to be proud oftheprgramerdude has much to be proud oftheprgramerdude has much to be proud oftheprgramerdude has much to be proud oftheprgramerdude has much to be proud oftheprgramerdude has much to be proud oftheprgramerdude has much to be proud oftheprgramerdude has much to be proud of
Re: Robots not under driver control- does it happen- do you determine why?

Stuck with PWM output this year (absolutely no reason to switch to CAN -- everything that can be done with it can also be done by coding the Crio) and lost our camera. Everything runs so much smoother now.
__________________
Attending: MN Duluth Regional
  #19   Spotlight this post!  
Unread 13-03-2011, 05:56
willishf willishf is offline
Registered User
FRC #3622 (Robocats)
Team Role: Mentor
 
Join Date: Feb 2011
Rookie Year: 2000
Location: United States
Posts: 12
willishf is an unknown quantity at this point
Re: Robots not under driver control- does it happen- do you determine why?

Unless lab view does something special to understand the notion of autonomous vs telop I think it will simply do in a program loop or block of code what it is asked to do. If you spend 30 minutes in a loop adding up numbers no reason why the code would return/yield/interrupt that block of code because the mode changed on the field.
  #20   Spotlight this post!  
Unread 13-03-2011, 08:25
Vikesrock's Avatar
Vikesrock Vikesrock is offline
Team 2175 Founder
AKA: Kevin O'Connor
no team
Team Role: Engineer
 
Join Date: Mar 2006
Rookie Year: 2007
Location: Manchester, NH
Posts: 3,305
Vikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond repute
Send a message via AIM to Vikesrock Send a message via MSN to Vikesrock Send a message via Yahoo to Vikesrock
Re: Robots not under driver control- does it happen- do you determine why?

Quote:
Originally Posted by willishf View Post
Unless lab view does something special to understand the notion of autonomous vs telop I think it will simply do in a program loop or block of code what it is asked to do. If you spend 30 minutes in a loop adding up numbers no reason why the code would return/yield/interrupt that block of code because the mode changed on the field.
The way the Labview framework is written you cannot get stuck in Autonomous mode. When the field changes over, your autonomous code is terminated whether you are in a loop or not. If you change any of the framework or put your auto code somewhere other than the Autonomous Independent VI, all bets are off. Also I'm not sure if this functionality will work or not if you are in a loop that never yields the processor (IE no loop delay).

This is not the same as the C++ and Java frameworks which have no such functionality (from what I've been told)
__________________


2007 Wisconsin Regional Highest Rookie Seed & Regional Finalists (Thanks 930 & 2039)
2008 MN Regional Semifinalists (Thanks 2472 & 1756)
2009 Northstar Regional Semifinalists (Thanks 171 & 525)
  #21   Spotlight this post!  
Unread 13-03-2011, 08:33
Chexposito's Avatar
Chexposito Chexposito is offline
Registered User
AKA: Expo
FRC #1730
Team Role: Alumni
 
Join Date: Feb 2009
Rookie Year: 2007
Location: Missouri
Posts: 272
Chexposito is a glorious beacon of lightChexposito is a glorious beacon of lightChexposito is a glorious beacon of lightChexposito is a glorious beacon of lightChexposito is a glorious beacon of lightChexposito is a glorious beacon of light
Re: Robots not under driver control- does it happen- do you determine why?

The only reason you should not be 100% all of the time is code or electronics, it's as simple as that. The only time we had problems with controls is when we had bad electronics, loose wires, or a discrepancy in the code
  #22   Spotlight this post!  
Unread 13-03-2011, 11:17
artdutra04's Avatar
artdutra04 artdutra04 is offline
VEX Robotics Engineer
AKA: Arthur Dutra IV; NERD #18
FRC #0148 (Robowranglers)
Team Role: Engineer
 
Join Date: Mar 2005
Rookie Year: 2002
Location: Greenville, TX
Posts: 3,078
artdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond repute
Re: Robots not under driver control- does it happen- do you determine why?

We are using serial CAN with all Black Jaguars (programmed in Java) and had no control problems (such as lag or lack of control) at the WPI Regional. There only instance our robot was "not responding" was when our drivers forgot to shift into low gear in a pushing match and tripped the Jaguars current protection for three seconds, but they only made that mistake once.

This may or may not be related to our stability with CAN, but early in the build season our programmers noticed a conflict between the camera and CAN code in Java, and they fixed the bug.
__________________
Art Dutra IV
Robotics Engineer, VEX Robotics, Inc., a subsidiary of Innovation First International (IFI)
Robowranglers Team 148 | GUS Robotics Team 228 (Alumni) | Rho Beta Epsilon (Alumni) | @arthurdutra

世上无难事,只怕有心人.
  #23   Spotlight this post!  
Unread 13-03-2011, 11:38
davidalln's Avatar
davidalln davidalln is offline
World's Worst Coder
AKA: David Allen
FRC #2415 (The Westminster Wiredcats)
Team Role: Programmer
 
Join Date: Mar 2009
Rookie Year: 2008
Location: Atlanta, GA
Posts: 108
davidalln is on a distinguished road
Send a message via AIM to davidalln
Re: Robots not under driver control- does it happen- do you determine why?

Quote:
Originally Posted by Chexposito View Post
The only reason you should not be 100% all of the time is code or electronics, it's as simple as that. The only time we had problems with controls is when we had bad electronics, loose wires, or a discrepancy in the code
I agree the inconsistent CAN errors (such as ours) that people have gotten are a function of code. The problem is that they're near-impossible to reproduce in a controlled setting and its absolutely impossible to diagnose where the problem is occurring.

I highly suggest switching to PWMs if you're having this issue. The wiring sucks, but its worth it for consistent control if the robot.
__________________
SANTOSH ANDREW DECKER RICK WYNNIE SEAN DEREK MATT
(alamo (semis), p'tree (CHAMPS!), nc (CHAMPS!), newton (quarters))


Best four years of my life. Thanks to everyone who made it happen.
  #24   Spotlight this post!  
Unread 14-03-2011, 13:48
codedr codedr is offline
Registered User
FRC #0537
Team Role: Mentor
 
Join Date: Mar 2010
Rookie Year: 2009
Location: Wisconsin
Posts: 71
codedr will become famous soon enoughcodedr will become famous soon enough
Re: Robots not under driver control- does it happen- do you determine why?

The theoretical maximum transfer speed over wireless is 5 MB/s. The actual maximum is less, due to
packet and header overhead. The camera can easily saturate the link at that speed. When congestion
starts to drop packets, it makes the problem worse over tcp, as the lost packets have to be retransmitted.

1000 mbit / s = 100 MB / s
_100 mbit / s = _10 MB / s
__50 mbit / s = __5 MB / s

We did some experiments with the camera and the crio.

Ex.0 (wpi lib) receive images via http on crio and retransmit to DS via TCP.
This failed last year (2010) when we tried to run video. FIRST restricted all video to run over TCP.

Positives:
- ???
Negatives:
- data sent over TCP, lost packets are re-transmitted
- camera data saturates network link disabling robot communications
- crio tcp network stack backs up setting off hardware watchdog
- did not reach 20 fps, camera task never yields
Ex.1 receive images via http on crio and retransmit to DS via UDP.
This was our first idea this year (2011) to improve the situation. We got approximately 4 img/s.
One drawback to this experiment is that the crio task for receiving the images from the camera
and sending them to the DS is never idle, so it takes away available CPU cycles from controlling
the robot. We are not currently able to measure what performance other tasks impact the processor.

Positives: data sent over UDP, lost packets are not re-transmitted
Negatives: did not reach 20 fps, camera task never yields
Ex.1 receive images via http on the DS and display them at 20 fps.
Positives:
- 18 to 20 fps display on DS
- packets backup into camera not crio
- no hardware watchdog timeouts on crio
Negatives:
- data sent over TCP, lost packets are re-transmitted
  #25   Spotlight this post!  
Unread 14-03-2011, 18:21
davidthefat davidthefat is offline
Alumni
AKA: David Yoon
FRC #0589 (Falkons)
Team Role: Alumni
 
Join Date: Jan 2011
Rookie Year: 2010
Location: California
Posts: 792
davidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud of
Re: Robots not under driver control- does it happen- do you determine why?

Our flaw was overused, overheated motors without the proper gear ratio and not enough motors (we only used 2 CIMs).
__________________
Do not say what can or cannot be done, but, instead, say what must be done for the task at hand must be accomplished.
  #26   Spotlight this post!  
Unread 15-03-2011, 12:14
pfreivald's Avatar
pfreivald pfreivald is online now
Registered User
AKA: Patrick Freivald
FRC #1551 (The Grapes of Wrath)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 2001
Location: Naples, NY
Posts: 2,296
pfreivald has a reputation beyond reputepfreivald has a reputation beyond reputepfreivald has a reputation beyond reputepfreivald has a reputation beyond reputepfreivald has a reputation beyond reputepfreivald has a reputation beyond reputepfreivald has a reputation beyond reputepfreivald has a reputation beyond reputepfreivald has a reputation beyond reputepfreivald has a reputation beyond reputepfreivald has a reputation beyond repute
Re: Robots not under driver control- does it happen- do you determine why?

We lost control a few times at FLR -- the robot would sit still with no coms for about one minute, and then kick back on. We're 99.99% positive it is the bridge rebooting, but we have yet to figure out why that is the case...

...It's got good location on the robot (up high, not surrounded by too much metal), and we double-triple-quadruple-quintuple-and-more checked the electrical connections.

It was intermittetent, frustrating, and cost us a match three times. :/
__________________
Patrick Freivald -- Mentor
Team 1551
"The Grapes of Wrath"
Bausch & Lomb, PTC Corporation, and Naples High School

I write books, too!
  #27   Spotlight this post!  
Unread 15-03-2011, 12:56
pafwl pafwl is offline
Franciose
AKA: Frank Larkin
FRC #0272 (Cyber Crusaders)
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 1998
Location: Lansdale, Pennsylvania
Posts: 108
pafwl has much to be proud ofpafwl has much to be proud ofpafwl has much to be proud ofpafwl has much to be proud ofpafwl has much to be proud ofpafwl has much to be proud ofpafwl has much to be proud ofpafwl has much to be proud ofpafwl has much to be proud ofpafwl has much to be proud of
Re: Robots not under driver control- does it happen- do you determine why?

We were in New Youk over the weekend and had 2 instances of comm problems. We are using C++, no CAN, 4 victors and 1 jaguar all PWM controlled, no camera.

The first time it happened in prelims. We were about 1:30 into the game and we were lining up to deploy but we just stopped. FTA said is was us. No power issues, no wire issues.

We tie wrapped the ethernet cable in to the bridge.

In Quarterfinals. we started autonomous. In our design the tower is pushed vertical by pistons. They started up then started down, then up, then down. The only way to get the towers down is an input from driver or operator (button 5 ). They were not near controls. Autonomous for the fisrt part goes forward for 4 seconds. We did not go as far as we always do. Looked to me like the CRIO was restarting the code.

Once in round we were good but again with about 30 sconds left we died. This time I was less than pleased. I made sure I got the FTA's attention. He came back to the pit and looked all over and found nothing.

My only issues may be the placement. We are moving the radio more to the open.

Another team that was in the semifinals had a similar experience.

Very frustrating...
  #28   Spotlight this post!  
Unread 15-03-2011, 14:48
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,113
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: Robots not under driver control- does it happen- do you determine why?

At a pre-ship scrimmage, our robot would occasionally start spinning in circles or take off at high speed in reverse. This would happen with nobody touching the driver joysticks. The program was definitely using only those joysticks to control the drive motors. Some of the team believed it was a communication issue, but I couldn't see any evidence of that kind of problem.

It took us most of the day to track down a bug in our rate limiting code. It was intended to keep the robot from accelerating backwards quickly so a chain tensioner wouldn't be overstressed. The bug was being triggering whenever a joystick went just barely outside the deadband in reverse. We spent a few minutes puzzling over the code, first trying to figure out how it was broken, then trying to figure out how we had intended for it to work in the first place. Finally we just threw it out and rewrote what it should have been originally.
  #29   Spotlight this post!  
Unread 15-03-2011, 21:36
willishf willishf is offline
Registered User
FRC #3622 (Robocats)
Team Role: Mentor
 
Join Date: Feb 2011
Rookie Year: 2000
Location: United States
Posts: 12
willishf is an unknown quantity at this point
Re: Robots not under driver control- does it happen- do you determine why?

We also have pneumatics for lifting our fork lift and have seen that behavior multiple times where it simply retracts the forklift. Something is causing the code to go into the startup state. This has happened to us in practice in the shop so the problem could still be communication related where a drop in communication does the same thing as not feeding the watchdog.

Not sure if it is possible to monitor the communication from the cRIO to have it log anytime it goes into "safe" mode.
  #30   Spotlight this post!  
Unread 16-03-2011, 02:06
ChrisH's Avatar Unsung FIRST Hero
ChrisH ChrisH is offline
Generally Useless
FRC #0330 (Beach 'Bots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1998
Location: Hermosa Beach, CA
Posts: 1,230
ChrisH has a reputation beyond reputeChrisH has a reputation beyond reputeChrisH has a reputation beyond reputeChrisH has a reputation beyond reputeChrisH has a reputation beyond reputeChrisH has a reputation beyond reputeChrisH has a reputation beyond reputeChrisH has a reputation beyond reputeChrisH has a reputation beyond reputeChrisH has a reputation beyond reputeChrisH has a reputation beyond repute
Re: Robots not under driver control- does it happen- do you determine why?

Quote:
Originally Posted by willishf View Post
We also have pneumatics for lifting our fork lift and have seen that behavior multiple times where it simply retracts the forklift. Something is causing the code to go into the startup state. This has happened to us in practice in the shop so the problem could still be communication related where a drop in communication does the same thing as not feeding the watchdog.

Not sure if it is possible to monitor the communication from the cRIO to have it log anytime it goes into "safe" mode.
If you are at an event get with the FTAA before your match and ask him to pay attention to your robot. He has a display and logs of the communication status between the field, the robot, and the driver station. He can also spot a big drop in battery voltage, which indicates other problems. The logs can be checked but it is easier to just catch stuff as it happens most of the time.
__________________
Christopher H Husmann, PE

"Who is John Galt?"
Closed Thread


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 13:19.

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