Go to Post Quality has nothing to do with desire – you can’t wish quality. Quality has nothing to do with time, or money, or the other guy’s attitude. Quality has everything to do with craftsmanship. - Jack Jones [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 Rating: Thread Rating: 6 votes, 5.00 average. Display Modes
  #61   Spotlight this post!  
Unread 16-09-2015, 08:33
Ben Wolsieffer Ben Wolsieffer is offline
Dartmouth 2020
AKA: lopsided98
FRC #2084 (Robots by the C)
Team Role: Alumni
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Manchester, MA (Hanover, NH)
Posts: 521
Ben Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud of
Re: RoboDS First Test

I tested the app last week, and sadly it still does not work. I am quite confused by what it is doing currently, as it appears to be crashing the communication software on the robot.

When I start sending packets to the robot, it never sends anything back. Afterward, when I try to drive the robot with the normal driver station, the robot does not respond until it is rebooted. As far as I can see, there is nothing wrong with the format of the packets being sent, but something is obviously wrong.

I'll try to figure out more when I get time.
__________________



2016 North Shore District - Semifinalists and Excellence in Engineering Award
2015 Northeastern University District - Semifinalists and Creativity Award
2014 Granite State District - Semifinalists and Innovation in Control Award
2012 Boston Regional - Finalists
  #62   Spotlight this post!  
Unread 16-09-2015, 09:23
raystubbs's Avatar
raystubbs raystubbs is offline
Programmer, Builder, Designer
FRC #2657 (Thundercats)
Team Role: Student
 
Join Date: Mar 2014
Rookie Year: 2012
Location: Deming NM
Posts: 121
raystubbs will become famous soon enough
Re: RoboDS First Test

How many connection packets do you send at the beginning? How long do you wait for a response? Also you can look for errors and restart the program by ssh-ing into the box and manually relaunching the binary.

The binary is probably in the default home directory, but otherwise it can be found in the program's build script on your workstation.
__________________
"If all else fails, read the instructions."

Last edited by raystubbs : 16-09-2015 at 09:32.
  #63   Spotlight this post!  
Unread 16-09-2015, 09:59
raystubbs's Avatar
raystubbs raystubbs is offline
Programmer, Builder, Designer
FRC #2657 (Thundercats)
Team Role: Student
 
Join Date: Mar 2014
Rookie Year: 2012
Location: Deming NM
Posts: 121
raystubbs will become famous soon enough
Re: RoboDS First Test

Found a problem in PacketManager:

Code:
if (connected && !timeSent) {
        driverStationPacket.addTime();
        timeSent = true;
}
This sends the connection/time packet as the first packet, the RIO never actually processes it. You need to send normal packets until the RIO responds for the first time, after the first response THEN you send the time packet and the RIO will accept it.

Here is my implementation:
https://github.com/raystubbs/RioComA...omManager.java lines 171-197
__________________
"If all else fails, read the instructions."

Last edited by raystubbs : 16-09-2015 at 10:12.
  #64   Spotlight this post!  
Unread 17-09-2015, 09:59
Ben Wolsieffer Ben Wolsieffer is offline
Dartmouth 2020
AKA: lopsided98
FRC #2084 (Robots by the C)
Team Role: Alumni
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Manchester, MA (Hanover, NH)
Posts: 521
Ben Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud of
Re: RoboDS First Test

Quote:
Originally Posted by raystubbs View Post
Found a problem in PacketManager:

Code:
if (connected && !timeSent) {
        driverStationPacket.addTime();
        timeSent = true;
}
This sends the connection/time packet as the first packet, the RIO never actually processes it. You need to send normal packets until the RIO responds for the first time, after the first response THEN you send the time packet and the RIO will accept it.

Here is my implementation:
https://github.com/raystubbs/RioComA...omManager.java lines 171-197
I don't think that is the problem, because the connected flag is not set until the first packet is received from the robot, so the time is not sent until this happens. Also, my packet captures show that the time is not being sent.
__________________



2016 North Shore District - Semifinalists and Excellence in Engineering Award
2015 Northeastern University District - Semifinalists and Creativity Award
2014 Granite State District - Semifinalists and Innovation in Control Award
2012 Boston Regional - Finalists
  #65   Spotlight this post!  
Unread 17-09-2015, 12:32
raystubbs's Avatar
raystubbs raystubbs is offline
Programmer, Builder, Designer
FRC #2657 (Thundercats)
Team Role: Student
 
Join Date: Mar 2014
Rookie Year: 2012
Location: Deming NM
Posts: 121
raystubbs will become famous soon enough
Re: RoboDS First Test

Oh OK.
__________________
"If all else fails, read the instructions."
  #66   Spotlight this post!  
Unread 21-09-2015, 13:10
ShotgunNinja's Avatar
ShotgunNinja ShotgunNinja is offline
Programming Mentor, FRC 4247
AKA: Nicholas Iannone
FRC #4247 (CougarBOTS)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2006
Location: Milwaukee, WI
Posts: 160
ShotgunNinja is a jewel in the roughShotgunNinja is a jewel in the roughShotgunNinja is a jewel in the roughShotgunNinja is a jewel in the rough
Re: RoboDS First Test

Wow, I'm looking forward to this app being more complete; maybe if I convince a nearby team to let me mentor, I'll be able to get access to a bot and start testing this out. I'm a software engineer by trade, and I've been looking to get involved with something FIRST-related and 'Droid-y.
__________________
Team #2970 Alum
Team #1652 Alum
2006: School Mascot for Team 1652
2007-2008: Programmer for Team 1652 (Robot Mafia)
2009: Programmer on Team 1652 (Robot Mafia), Programmer on Team 2970 (eSchool eBots)
2010-2016: Volunteer, Wisconsin Regional
2017: Programming Mentor, FRC 4247 (CougarBOTS, Obama SCTE, Milwaukee, WI)
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 19: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