Go to Post That is definitely a question for the GDC. My guess would be no (but I am frequently wrong). - Mike Betts [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 04-03-2015, 15:05
jtrv's Avatar
jtrv jtrv is offline
github.com/jhtervay
AKA: Justin
FRC #2791 (Shaker Robotics)
Team Role: College Student
 
Join Date: Jan 2013
Rookie Year: 2012
Location: Latham, NY
Posts: 147
jtrv is a name known to alljtrv is a name known to alljtrv is a name known to alljtrv is a name known to alljtrv is a name known to alljtrv is a name known to all
Question Does any code run while the laptop is connected to the field,but the bot is disabled?

Hi guys,

I'm wondering if there is any code that runs while your laptop is connected to the field via ethernet but the robot is disabled. Currently using IterativeBot in Java if there's a method we can override that I'm missing.

Thinking about calibrating some wonky gyro on the field because if we do it in the pits it'll get all wonky and it's too hard to explain the gyro situation here and the gyro is bagged anyway.

We'd have a limit-switch type object that we press on the bot itself and it will calibrate, turning on a certain LED while it is calibrating, and turning off when done.

Anybody know? Thanks a bunch ^^
__________________
2791 (2012-2017)

Last edited by jtrv : 04-03-2015 at 15:07.
  #2   Spotlight this post!  
Unread 04-03-2015, 15:18
MrRoboSteve MrRoboSteve is offline
Mentor
AKA: Steve Peterson
FRC #3081 (Kennedy RoboEagles)
Team Role: Mentor
 
Join Date: Mar 2012
Rookie Year: 2011
Location: Bloomington, MN
Posts: 577
MrRoboSteve has a reputation beyond reputeMrRoboSteve has a reputation beyond reputeMrRoboSteve has a reputation beyond reputeMrRoboSteve has a reputation beyond reputeMrRoboSteve has a reputation beyond reputeMrRoboSteve has a reputation beyond reputeMrRoboSteve has a reputation beyond reputeMrRoboSteve has a reputation beyond reputeMrRoboSteve has a reputation beyond reputeMrRoboSteve has a reputation beyond reputeMrRoboSteve has a reputation beyond repute
Re: Does any code run while the laptop is connected to the field,but the bot is disab

overriding disabledInit() or disabledPeriodic() sounds like a match.
__________________
2016-17 events: 10000 Lakes Regional, Northern Lights Regional, FTC Burnsville Qualifying Tournament

2011 - present · FRC 3081 Kennedy RoboEagles mentor
2013 - present · event volunteer at 10000 Lakes Regional, Northern Lights Regional, North Star Regional, Lake Superior Regional, Minnesota State Tournament, PNW District 4 Glacier Peak, MN FTC, CMP
http://twitter.com/MrRoboSteve · www.linkedin.com/in/speterson
  #3   Spotlight this post!  
Unread 04-03-2015, 16:15
jtrv's Avatar
jtrv jtrv is offline
github.com/jhtervay
AKA: Justin
FRC #2791 (Shaker Robotics)
Team Role: College Student
 
Join Date: Jan 2013
Rookie Year: 2012
Location: Latham, NY
Posts: 147
jtrv is a name known to alljtrv is a name known to alljtrv is a name known to alljtrv is a name known to alljtrv is a name known to alljtrv is a name known to all
Re: Does any code run while the laptop is connected to the field,but the bot is disab

That's what I thought too, but I honestly wasn't sure if FIRST had a safety system where literally no code will run while your laptop is connected to the field. So i don't know. There's not much of a way to test it until we get there, either, unfortunately.
__________________
2791 (2012-2017)
  #4   Spotlight this post!  
Unread 04-03-2015, 16:18
alopex_rex's Avatar
alopex_rex alopex_rex is offline
Rainbow Professionalism Dash
AKA: Scott Morton
FRC #0830 (The RatPack)
Team Role: Alumni
 
Join Date: Dec 2014
Rookie Year: 2012
Location: Ann Arbor, MI
Posts: 92
alopex_rex has a reputation beyond reputealopex_rex has a reputation beyond reputealopex_rex has a reputation beyond reputealopex_rex has a reputation beyond reputealopex_rex has a reputation beyond reputealopex_rex has a reputation beyond reputealopex_rex has a reputation beyond reputealopex_rex has a reputation beyond reputealopex_rex has a reputation beyond reputealopex_rex has a reputation beyond reputealopex_rex has a reputation beyond repute
Re: Does any code run while the laptop is connected to the field,but the bot is disab

To the best of my knowledge, anything that could run an actuator (so all PWM, digital output, etc) cannot be used when the robot is disabled, but your code still runs. I know because our (C++) program prints to the smart dashboard in DisabledPeriodic().
__________________
Ratpack programming lead 2013 - 2015

ἔκλαγξαν δ᾽ ἄρ᾽ ὀϊστοὶ ἐπ᾽ ὤμων χωομένοιο / αὐτοῦ κινηθέντος: ὃ δ᾽ ἤϊε νυκτὶ ἐοικώς. (Ancient Greek nerds unite!)
  #5   Spotlight this post!  
Unread 04-03-2015, 16:27
adamm adamm is offline
Registered User
AKA: Michael Adam
FRC #1671 (The Bird Brains)
Team Role: Mentor
 
Join Date: Mar 2007
Rookie Year: 2002
Location: Fresno, CA
Posts: 29
adamm is just really niceadamm is just really niceadamm is just really niceadamm is just really niceadamm is just really nice
Re: Does any code run while the laptop is connected to the field,but the bot is disab

Quote:
Originally Posted by alopex_rex View Post
To the best of my knowledge, anything that could run an actuator (so all PWM, digital output, etc) cannot be used when the robot is disabled, but your code still runs. I know because our (C++) program prints to the smart dashboard in DisabledPeriodic().
Yes, all output controls are disabled when the robot is disabled (safety feature), however, you can still initialize sensors (calibrate gyros, etc), load values from preferences, etc.
__________________
Michael Adam
Director, Central Valley Robotics

FLL and FLL Jr. Affiliate Partner, Central California (2009-Present)
Member, Central Valley Regional Planning Committee (2012-Present)
Volunteer of the Year, Central Valley Regional (2015)
FRC Control System Advisor (2013-Present)
FRC Scorekeeper (2015-Present)
Mentor, Team 1671 (2009-Present)
Member, Team 1671 (2005-2009)
  #6   Spotlight this post!  
Unread 04-03-2015, 16:46
jtrv's Avatar
jtrv jtrv is offline
github.com/jhtervay
AKA: Justin
FRC #2791 (Shaker Robotics)
Team Role: College Student
 
Join Date: Jan 2013
Rookie Year: 2012
Location: Latham, NY
Posts: 147
jtrv is a name known to alljtrv is a name known to alljtrv is a name known to alljtrv is a name known to alljtrv is a name known to alljtrv is a name known to all
Re: Does any code run while the laptop is connected to the field,but the bot is disab

Our gyro is a digital gyro that plugs into the SPI port. Will code be able to access that? We initialize it at SPI.Port.kOnboardCS1 ... Yes, we had to write our own driver in Java... it sucked, but it works (kinda).
__________________
2791 (2012-2017)
  #7   Spotlight this post!  
Unread 04-03-2015, 16:53
adamm adamm is offline
Registered User
AKA: Michael Adam
FRC #1671 (The Bird Brains)
Team Role: Mentor
 
Join Date: Mar 2007
Rookie Year: 2002
Location: Fresno, CA
Posts: 29
adamm is just really niceadamm is just really niceadamm is just really niceadamm is just really niceadamm is just really nice
Re: Does any code run while the laptop is connected to the field,but the bot is disab

Quote:
Originally Posted by jtrv View Post
Our gyro is a digital gyro that plugs into the SPI port. Will code be able to access that? We initialize it at SPI.Port.kOnboardCS1 ... Yes, we had to write our own driver in Java... it sucked, but it works (kinda).
Yes, Anything that works now will work the same on the field. (Well, its intended to, sometime the field likes to do other things though). Read more about how the field controls your robot here: https://wpilib.screenstepslive.com/s...fms-whitepaper
__________________
Michael Adam
Director, Central Valley Robotics

FLL and FLL Jr. Affiliate Partner, Central California (2009-Present)
Member, Central Valley Regional Planning Committee (2012-Present)
Volunteer of the Year, Central Valley Regional (2015)
FRC Control System Advisor (2013-Present)
FRC Scorekeeper (2015-Present)
Mentor, Team 1671 (2009-Present)
Member, Team 1671 (2005-2009)
  #8   Spotlight this post!  
Unread 04-03-2015, 21:12
jtrv's Avatar
jtrv jtrv is offline
github.com/jhtervay
AKA: Justin
FRC #2791 (Shaker Robotics)
Team Role: College Student
 
Join Date: Jan 2013
Rookie Year: 2012
Location: Latham, NY
Posts: 147
jtrv is a name known to alljtrv is a name known to alljtrv is a name known to alljtrv is a name known to alljtrv is a name known to alljtrv is a name known to all
Re: Does any code run while the laptop is connected to the field,but the bot is disab

Quote:
Originally Posted by adamm View Post
Yes, Anything that works now will work the same on the field. (Well, its intended to, sometime the field likes to do other things though). Read more about how the field controls your robot here: https://wpilib.screenstepslive.com/s...fms-whitepaper
This is great. So that means disabledPeriodic() runs before the match starts?
__________________
2791 (2012-2017)
  #9   Spotlight this post!  
Unread 05-03-2015, 14:44
adamm adamm is offline
Registered User
AKA: Michael Adam
FRC #1671 (The Bird Brains)
Team Role: Mentor
 
Join Date: Mar 2007
Rookie Year: 2002
Location: Fresno, CA
Posts: 29
adamm is just really niceadamm is just really niceadamm is just really niceadamm is just really niceadamm is just really nice
Re: Does any code run while the laptop is connected to the field,but the bot is disab

Quote:
Originally Posted by jtrv View Post
This is great. So that means disabledPeriodic() runs before the match starts?
It should, yes.
__________________
Michael Adam
Director, Central Valley Robotics

FLL and FLL Jr. Affiliate Partner, Central California (2009-Present)
Member, Central Valley Regional Planning Committee (2012-Present)
Volunteer of the Year, Central Valley Regional (2015)
FRC Control System Advisor (2013-Present)
FRC Scorekeeper (2015-Present)
Mentor, Team 1671 (2009-Present)
Member, Team 1671 (2005-2009)
  #10   Spotlight this post!  
Unread 05-03-2015, 15:25
cgmv123's Avatar
cgmv123 cgmv123 is offline
FRC RI/FLL Field Manager
AKA: Max Vrany
FRC #1306 (BadgerBOTS)
Team Role: College Student
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Madison, WI
Posts: 2,078
cgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond repute
Re: Does any code run while the laptop is connected to the field,but the bot is disab

Quote:
Originally Posted by jtrv View Post
This is great. So that means disabledPeriodic() runs before the match starts?
Quote:
Originally Posted by adamm View Post
It should, yes.
The code will run, but note that you can't activate any motors or solenoids while the robot is disabled for what I hope are obvious reasons.
__________________
BadgerBOTS Robotics|@team1306|Facebook: BadgerBOTS
2016 FIRST Championship Tesla Division | 2016 Wisconsin Regional Engineering Inspiration Award

2015 FIRST Championship Carson Division | 2015 Wisconsin Regional Chairman's Award

2013 FIRST Championship Curie Division | 2013 Wisconsin Regional Chairman's Award

2012 FIRST Championship Archimedes Division | 2012 Wisconsin Regional Engineering Inspiration Award, Woodie Flowers Finalist Award (Lead Mentor Ben Senson)

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 01:39.

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