Go to Post If regolith ever makes a return, I will jump out of a window. - Oblarg [more]
Home
Go Back   Chief Delphi > ChiefDelphi.com Website > Extra Discussion
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 19-02-2014, 11:58
nxtmonkeys's Avatar
nxtmonkeys nxtmonkeys is offline
SCP-682
AKA: Parker Wells
FRC #5349 (RoboEagles)
Team Role: Mentor
 
Join Date: Feb 2014
Rookie Year: 2014
Location: New York
Posts: 213
nxtmonkeys will become famous soon enough
pic: Programming is as easy as you make it.





Anyone need help with their programming?

Last edited by nxtmonkeys : 19-02-2014 at 11:59. Reason: I want to add to it.
Reply With Quote
  #2   Spotlight this post!  
Unread 19-02-2014, 11:59
Whippet's Avatar
Whippet Whippet is offline
MIT Class of 2020
AKA: Luis Trueba
FRC #4301 (New Tech Narcissists)
Team Role: Alumni
 
Join Date: Feb 2011
Rookie Year: 2011
Location: Cambridge, MA
Posts: 1,187
Whippet has a reputation beyond reputeWhippet has a reputation beyond reputeWhippet has a reputation beyond reputeWhippet has a reputation beyond reputeWhippet has a reputation beyond reputeWhippet has a reputation beyond reputeWhippet has a reputation beyond reputeWhippet has a reputation beyond reputeWhippet has a reputation beyond reputeWhippet has a reputation beyond reputeWhippet has a reputation beyond repute
Send a message via Yahoo to Whippet
Re: pic: Programming is as easy as you make it.

I had been told that it wan't possible to use while loops in Teleop. I guess I was wrong. This is cool!
__________________
2010: FRC 3043, Build Assistant
2011: FRC 3043, Head of Minibot subteam; FLL 12762, Team Captain
2012: FRC 3043, Electrical; FLL 12762, Team Captain; FTC 5670, Team Captain
2013: FRC 4301, Electrical, Team Co-Captain
2014: FRC 4301, Electrical/Programming, Team Co-Captain
2015: FRC 4301, Electrical/Programming, Team Captain
2016: FRC 4301, Chief Technical Officer; FTC 10860, 10861, and 11004: Mentor. Winner, Hub City Regional (3310 & 4063)
Reply With Quote
  #3   Spotlight this post!  
Unread 19-02-2014, 12:01
cjl2625's Avatar
cjl2625 cjl2625 is offline
apel py
AKA: Cory Lynch
FRC #2067 (Apple Pi)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2013
Location: Guilford, CT
Posts: 412
cjl2625 is a splendid one to beholdcjl2625 is a splendid one to beholdcjl2625 is a splendid one to beholdcjl2625 is a splendid one to beholdcjl2625 is a splendid one to beholdcjl2625 is a splendid one to beholdcjl2625 is a splendid one to beholdcjl2625 is a splendid one to behold
Re: pic: Programming is as easy as you make it.

I'm pretty sure that wouldn't be good for use in teleop
Reply With Quote
  #4   Spotlight this post!  
Unread 19-02-2014, 12:01
notmattlythgoe's Avatar
notmattlythgoe notmattlythgoe is offline
Flywheel Police
AKA: Matthew Lythgoe
FRC #2363 (Triple Helix)
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2009
Location: Newport News, VA
Posts: 1,716
notmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond repute
Re: pic: Programming is as easy as you make it.

Quote:
Originally Posted by Whippet View Post
I had been told that it wan't possible to use while loops in Teleop. I guess I was wrong. This is cool!
As long as it is in a separate thread its fine.
Reply With Quote
  #5   Spotlight this post!  
Unread 19-02-2014, 12:02
cjl2625's Avatar
cjl2625 cjl2625 is offline
apel py
AKA: Cory Lynch
FRC #2067 (Apple Pi)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2013
Location: Guilford, CT
Posts: 412
cjl2625 is a splendid one to beholdcjl2625 is a splendid one to beholdcjl2625 is a splendid one to beholdcjl2625 is a splendid one to beholdcjl2625 is a splendid one to beholdcjl2625 is a splendid one to beholdcjl2625 is a splendid one to beholdcjl2625 is a splendid one to behold
Re: pic: Programming is as easy as you make it.

Quote:
Originally Posted by notmattlythgoe View Post
As long as it is in a separate thread its fine.

Oh, well I guess you could do that then
Reply With Quote
  #6   Spotlight this post!  
Unread 19-02-2014, 12:02
nxtmonkeys's Avatar
nxtmonkeys nxtmonkeys is offline
SCP-682
AKA: Parker Wells
FRC #5349 (RoboEagles)
Team Role: Mentor
 
Join Date: Feb 2014
Rookie Year: 2014
Location: New York
Posts: 213
nxtmonkeys will become famous soon enough
Re: pic: Programming is as easy as you make it.

Just wire something to the Loop Condition terminal so that it can end. While loops are useful for Autonomous too.
Reply With Quote
  #7   Spotlight this post!  
Unread 19-02-2014, 12:42
geomapguy's Avatar
geomapguy geomapguy is offline
Centenary '18
AKA: Graham Maxwell
FRC #1818
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2011
Location: Alexandria, LA
Posts: 535
geomapguy has much to be proud ofgeomapguy has much to be proud ofgeomapguy has much to be proud ofgeomapguy has much to be proud ofgeomapguy has much to be proud ofgeomapguy has much to be proud ofgeomapguy has much to be proud ofgeomapguy has much to be proud ofgeomapguy has much to be proud ofgeomapguy has much to be proud of
Re: pic: Programming is as easy as you make it.

Timed actions are best processed in Periodic Tasks

They will slow down your TeleOp code if placed there
__________________
The Cowboys - FIRST Robotics Team #1818 2015-
The Bolton Bear Bots - FIRST Robotics Team #3666 2011-204 (30-26-0)
2014 Oklahoma Regional - 20/62 (6-4-0), 5/62 in OPR
2014 Arkansas Regional - 14/39 (8-7-0, Quarterfinalists with 1706 and 1939), 24/39 in OPR
2013 Lone Star Regional Dean's List Finalist!
2013 Lone Star Regional - 22/57 (6-5-0), 17/57 in OPR
2012 Bayou Regional - 16/49 (6-5-0)
2011 Dallas Regional - 10/52 (4-2-5, #6 Alliance Captain, Quarterfinalists with 2948 and 3350)

Last edited by geomapguy : 19-02-2014 at 13:08.
Reply With Quote
  #8   Spotlight this post!  
Unread 19-02-2014, 13:14
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,772
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: pic: Programming is as easy as you make it.

This example is good for use in Autonomous and Periodic Tasks.
As shown, this example cannot be placed in Teleop.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #9   Spotlight this post!  
Unread 19-02-2014, 13:24
nxtmonkeys's Avatar
nxtmonkeys nxtmonkeys is offline
SCP-682
AKA: Parker Wells
FRC #5349 (RoboEagles)
Team Role: Mentor
 
Join Date: Feb 2014
Rookie Year: 2014
Location: New York
Posts: 213
nxtmonkeys will become famous soon enough
Re: pic: Programming is as easy as you make it.

I made this program up to help out someone who wanted to know if he did it right. based on all of your posts, I was able to help him a lot more. Thanks a ton!
Reply With Quote
  #10   Spotlight this post!  
Unread 19-02-2014, 13:44
Jay1986's Avatar
Jay1986 Jay1986 is offline
Programmer and Driver
AKA: Jay Urban
FRC #1986 (Team Titanium)
Team Role: Alumni
 
Join Date: Mar 2011
Rookie Year: 2010
Location: Lees Summit
Posts: 67
Jay1986 is a jewel in the roughJay1986 is a jewel in the roughJay1986 is a jewel in the roughJay1986 is a jewel in the rough
Re: pic: Programming is as easy as you make it.

That is not the safest way to accomplish that task nor should it ever be in teleop. You should write the inputs from the joysticks to global variables and read them in period tasks in their appropriate loops.
__________________

2013 Oklahoma Regional (Regional Winner, Gracious Professionalism, [and judges voted me star of the day])
2013 KC Regional (Regional Winner, Woodie Flowers, Industrial Design)
2013 Hub City Regional (Regional Winner, Entrepreneurship, Quality, Dean's List)
Reply With Quote
  #11   Spotlight this post!  
Unread 19-02-2014, 13:50
nxtmonkeys's Avatar
nxtmonkeys nxtmonkeys is offline
SCP-682
AKA: Parker Wells
FRC #5349 (RoboEagles)
Team Role: Mentor
 
Join Date: Feb 2014
Rookie Year: 2014
Location: New York
Posts: 213
nxtmonkeys will become famous soon enough
Re: pic: Programming is as easy as you make it.

Yeah, I told him that. I haven't gotten a reply yet, though.
Reply With Quote
  #12   Spotlight this post!  
Unread 19-02-2014, 13:56
geomapguy's Avatar
geomapguy geomapguy is offline
Centenary '18
AKA: Graham Maxwell
FRC #1818
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2011
Location: Alexandria, LA
Posts: 535
geomapguy has much to be proud ofgeomapguy has much to be proud ofgeomapguy has much to be proud ofgeomapguy has much to be proud ofgeomapguy has much to be proud ofgeomapguy has much to be proud ofgeomapguy has much to be proud ofgeomapguy has much to be proud ofgeomapguy has much to be proud ofgeomapguy has much to be proud of
Re: pic: Programming is as easy as you make it.

Quote:
Originally Posted by Jay1986 View Post
That is not the safest way to accomplish that task nor should it ever be in teleop. You should write the inputs from the joysticks to global variables and read them in period tasks in their appropriate loops.
Do you ever have to write them as global variables?

You can just reference the joystick in Periodic Tasks
__________________
The Cowboys - FIRST Robotics Team #1818 2015-
The Bolton Bear Bots - FIRST Robotics Team #3666 2011-204 (30-26-0)
2014 Oklahoma Regional - 20/62 (6-4-0), 5/62 in OPR
2014 Arkansas Regional - 14/39 (8-7-0, Quarterfinalists with 1706 and 1939), 24/39 in OPR
2013 Lone Star Regional Dean's List Finalist!
2013 Lone Star Regional - 22/57 (6-5-0), 17/57 in OPR
2012 Bayou Regional - 16/49 (6-5-0)
2011 Dallas Regional - 10/52 (4-2-5, #6 Alliance Captain, Quarterfinalists with 2948 and 3350)
Reply With Quote
  #13   Spotlight this post!  
Unread 19-02-2014, 14:01
nxtmonkeys's Avatar
nxtmonkeys nxtmonkeys is offline
SCP-682
AKA: Parker Wells
FRC #5349 (RoboEagles)
Team Role: Mentor
 
Join Date: Feb 2014
Rookie Year: 2014
Location: New York
Posts: 213
nxtmonkeys will become famous soon enough
Re: pic: Programming is as easy as you make it.

Well, I'M not using the program. I recently uploaded a few pictures of my teleop program.





Reply With Quote
  #14   Spotlight this post!  
Unread 19-02-2014, 14:03
Alpha Beta's Avatar
Alpha Beta Alpha Beta is offline
Strategy, Scouting, and LabVIEW
AKA: Mr. Aaron Bailey
FRC #1986 (Team Titanium)
Team Role: Coach
 
Join Date: Mar 2008
Rookie Year: 2007
Location: Lee's Summit, Missouri
Posts: 763
Alpha Beta has a reputation beyond reputeAlpha Beta has a reputation beyond reputeAlpha Beta has a reputation beyond reputeAlpha Beta has a reputation beyond reputeAlpha Beta has a reputation beyond reputeAlpha Beta has a reputation beyond reputeAlpha Beta has a reputation beyond reputeAlpha Beta has a reputation beyond reputeAlpha Beta has a reputation beyond reputeAlpha Beta has a reputation beyond reputeAlpha Beta has a reputation beyond repute
Re: pic: Programming is as easy as you make it.

Quote:
Originally Posted by geomapguy View Post
Do you ever have to write them as global variables?

You can just reference the joystick in Periodic Tasks
You don't have to...
...But if you do you can manipulate those variables in autonomous.
__________________
Regional Wins: 2016(KC), 2015(St. Louis, Queen City), 2014(Central Illinois, KC), 2013(Hub City, KC, Oklahoma City), 2012(KC, St. Louis), 2011(Colorado), 2010(North Star)
Regional Chairman's Award: 2014(Central Illinois), 2009(10,000 Lakes)
Engineering Inspiration: 2016(Smoky Mountain), 2012(Kansas City), 2011(Denver)
Dean's List Finalist 2016(Jacob S), 2014(Cameron L), 2013(Jay U), 2012(Laura S), 2011(Dominic A), 2010(Collin R)
Woodie Flowers Finalist 2013 (Aaron Bailey)
Championships: Sub-Division Champion (2016), Finalist (2013, 2010), Semifinalist (2014), Quaterfinalist (2015, 2012, 2011)
Other Official Awards: Gracious Professionalism (2013) Entrepreneurship (2013), Quality (2015, 2015, 2013), Engineering Excellence (Champs 2013, 2012), Website (2011), Industrial Design (Archimedes/Tesla 2016, 2016, 2015, Newton 2014, 2013, 2011), Innovation in Control (2014, Champs 2010, 2010, 2008, 2008), Imagery (2009), Regional Finalist (2016, 2015, 2008)
Reply With Quote
  #15   Spotlight this post!  
Unread 19-02-2014, 14:13
nxtmonkeys's Avatar
nxtmonkeys nxtmonkeys is offline
SCP-682
AKA: Parker Wells
FRC #5349 (RoboEagles)
Team Role: Mentor
 
Join Date: Feb 2014
Rookie Year: 2014
Location: New York
Posts: 213
nxtmonkeys will become famous soon enough
Re: pic: Programming is as easy as you make it.

I'm just happy that the code WORKS.
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 01:15.

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