Go to Post If it's anything that FIRST's competitive spirit has taught me, its to take the good with the bad. - Mike Schroeder [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
  #1   Spotlight this post!  
Unread 24-04-2015, 10:20
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
Lightbulb RoboDS First Test

Just ran first test of RoboDS (2015 Android Driverstation), seems to work pretty well. Buttons and joysticks work. The app still needs some work, but if I can find some free time I should have it finished in a week or so.
__________________
"If all else fails, read the instructions."
  #2   Spotlight this post!  
Unread 24-04-2015, 10:42
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: RoboDS First Test

Would you like some volunteers to beta test before the official release?
__________________
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)
  #3   Spotlight this post!  
Unread 24-04-2015, 11:22
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

Quote:
Originally Posted by Whippet View Post
Would you like some volunteers to beta test before the official release?
Beta testers would be great. If anyone is interested PM me your emails and I'll send you an APK when the app is ready (maybe a few days, maybe a week). Thanks.
__________________
"If all else fails, read the instructions."
  #4   Spotlight this post!  
Unread 24-04-2015, 11:53
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

Here is a brief description of my app, and a prompt for some suggestions. Currently the app supports a 'drag n' drop' interface builder with 'Basic Button' and 'Basic Joystick' components. The app was designed so that new widgets of each category (joystick, button, slider, switch, throttle, etc.) can be easily added, so by the time the app is finished I hope to have a collection of widgets in different styles, and to allow users to import their own. The app's action bar contains a voltage indicator, connection indicator, enable button, mode switch, and a menu with settings and layout editing options. When a new widget is added to the layout a dialog comes up asking for the widget settings (joystick number, axis number, size, etc.). I plan to add support for multiple layouts that can be quickly switched out, but that'll have to wait until after the first release. Also in updated versions I'll add support for video and hardware joysticks. Video streaming is NOT currently supported in the app.
I also plan to add indicators to the widget collection, these'll include gauges, LEDs, and a few others. But to use these components the robot will have to include some RoboDS specific code, I don't want to use Smart Dashboard code because I want it to be a little smaller and lighter then the full Smart Dashboard implementation.

So here is a prompt:
I prefer to use RoboDS in landscape mode since I have a tablet. I do NOT want the app to change orientation with the sensor. So does anyone want an option to set the orientation of layouts to portrait? Is it easier to use a phone in portrait?

Any other suggested features?

The source code will be put up on Github after the first APK release, so if you'd like to branch it and add your own features feel free to do so.
__________________
"If all else fails, read the instructions."
  #5   Spotlight this post!  
Unread 24-04-2015, 12:59
pribusin's Avatar
pribusin pribusin is offline
Uber Alien
AKA: Mike 1
FRC #4004 (M.A.R.S. Rovers)
Team Role: Coach
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Michigan
Posts: 168
pribusin has a spectacular aura aboutpribusin has a spectacular aura aboutpribusin has a spectacular aura about
Re: RoboDS First Test

That sounds awesome - can't wait to test it out. Nice Job!!!
  #6   Spotlight this post!  
Unread 25-04-2015, 08:02
nathannfm's Avatar
nathannfm nathannfm is offline
Registered User
AKA: Nathan
FRC #3940
Team Role: Mentor
 
Join Date: Jun 2010
Rookie Year: 2005
Location: Kokomo, IN
Posts: 331
nathannfm has a brilliant futurenathannfm has a brilliant futurenathannfm has a brilliant futurenathannfm has a brilliant futurenathannfm has a brilliant futurenathannfm has a brilliant futurenathannfm has a brilliant futurenathannfm has a brilliant futurenathannfm has a brilliant futurenathannfm has a brilliant futurenathannfm has a brilliant future
Re: RoboDS First Test

This would be for driving at home, not connecting to the field, right?
__________________

[2016-20??]: Mentor: FRC Team 3940"CyberTooth"
[2013-2016]: Mentor: FRC Team 365 "MOE"
[2012-2013]: Mentor: FRC Team 3929 "Atomic Dragons"
[2011-2012]: Mentor: FRC Team 365 "MOE"
[2008-2011]: Student: FRC Team 365 "MOE"
[2007-2008]: Student: FTC Team 365 "MOE"
[2005-2007]: Student: FLL Team "The MOEstangs"
  #7   Spotlight this post!  
Unread 25-04-2015, 22:54
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

Quote:
Originally Posted by nathannfm View Post
This would be for driving at home, not connecting to the field, right?
Definitely would not be legal for competition.
__________________
"If all else fails, read the instructions."
  #8   Spotlight this post!  
Unread 25-04-2015, 23:07
Ben Wolsieffer Ben Wolsieffer is online now
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: 520
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
I also plan to add indicators to the widget collection, these'll include gauges, LEDs, and a few others. But to use these components the robot will have to include some RoboDS specific code, I don't want to use Smart Dashboard code because I want it to be a little smaller and lighter then the full Smart Dashboard implementation.
In my opinion, I would rather have a bigger app that used NetworkTables (which I don't think is that big, anyway). I would likely use your app out of convenience at events where I did not want to lug around our full driver station. I don't think I would take the time to maintain code (even if it was useful), that wouldn't be used that often and also wouldn't be able to communicate with the normal DS. Also, by using NetworkTables, you would be working with a thoroughly debugged and reliable protocol. Otherwise, I think its a good idea to have custom indicators and widgets.
__________________



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
  #9   Spotlight this post!  
Unread 25-04-2015, 23:11
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,073
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
Quote:
Originally Posted by raystubbs View Post
Definitely would not be legal for competition.
Unless the rules change.
__________________
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)

  #10   Spotlight this post!  
Unread 25-04-2015, 23:17
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

Quote:
Originally Posted by lopsided98 View Post
In my opinion, I would rather have a bigger app that used NetworkTables (which I don't think is that big, anyway). I would likely use your app out of convenience at events where I did not want to lug around our full driver station. I don't think I would take the time to maintain code (even if it was useful), that wouldn't be used that often and also wouldn't be able to communicate with the normal DS. Also, by using NetworkTables, you would be working with a thoroughly debugged and reliable protocol. Otherwise, I think its a good idea to have custom indicators and widgets.
You'r right, it would be convenient to use network tables; but unfortunately I don't have much, or any, knowledge on the subject and I'm graduating this year (May), so I don't have much time to put into researching and implementing the feature. If anyone else has the knowledge to implement this feature I'm sure it would be appreciated. I'm a young, inexpirienced, and somewhat unskilled programmer; so please don't blame me for not wanting to "bite off more than I can chew." Thanks for the comment; if I find the time, and no one else is willing, I'll probably add full Smart Dashboard compatibility eventually.
__________________
"If all else fails, read the instructions."
  #11   Spotlight this post!  
Unread 26-04-2015, 11:54
Aero Aero is offline
consumes pizza, produces code
AKA: Ari Lotter
FRC #0865 (Warp7)
Team Role: Programmer
 
Join Date: May 2013
Rookie Year: 2013
Location: Toronto
Posts: 30
Aero is on a distinguished road
Re: RoboDS First Test

Quote:
Originally Posted by raystubbs View Post
You'r right, it would be convenient to use network tables; but unfortunately I don't have much, or any, knowledge on the subject...
NetworkTables are super easy! http://wpilib.screenstepslive.com/s/...client-pc-side
__________________
2014 Waterloo Regional Winner (254 & 2056)
2014 Curie Semifinalist (118, 359 & 4334)
2014 Fall Fiesta Finalist (2056, 4476)
6 X Gracious Professionalism Award Winner
  #12   Spotlight this post!  
Unread 27-04-2015, 13:19
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

Quote:
Originally Posted by Aero View Post
Easy to use the library, but how easy to write it?
__________________
"If all else fails, read the instructions."
  #13   Spotlight this post!  
Unread 28-04-2015, 15:39
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

I have the app working good with a static IP, but when I try to use DHCP with InetAdress.getForName("roborio-2657.local") I get an UnknownHostException. If any of you Android developers knows what the problem is please help.

I used the same code in a desktop Java app and it worked perfectly.

The INTERNET permission is declared in my manifest.
__________________
"If all else fails, read the instructions."
  #14   Spotlight this post!  
Unread 28-04-2015, 16:00
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

Also I'd like to include a moderate collection of widgets in the app, so if anyone wants widgets to match their teams you can send me some graphics or post them as attachements. The graphics should be PNGs with the following elements:

Joysticks: inner graphic, outer graphic, (optional) pressed inner graphic, (optional) pressed outer graphic. All graphics should be approximately square or circle shaped.

Sliders: Same as joysticks, except these should NOT be square or circular. They should be longer than they are wide.

Throttles: Same as sliders.

Buttons: Pressed and depressed graphics. Graphics should not include text since text will be dynamically added when a button is created.

Other: Give me a description of what you want.

Displays: Not yet supported.
__________________
"If all else fails, read the instructions."

Last edited by raystubbs : 28-04-2015 at 16:03.
  #15   Spotlight this post!  
Unread 29-04-2015, 10:54
fsilberberg fsilberberg is offline
WPILib Developer
AKA: Fred Silberberg
FRC #0190
Team Role: Alumni
 
Join Date: Jan 2010
Rookie Year: 2010
Location: Redmond
Posts: 146
fsilberberg has a spectacular aura aboutfsilberberg has a spectacular aura aboutfsilberberg has a spectacular aura about
Quote:
Originally Posted by raystubbs View Post
I have the app working good with a static IP, but when I try to use DHCP with InetAdress.getForName("roborio-2657.local") I get an UnknownHostException. If any of you Android developers knows what the problem is please help.

I used the same code in a desktop Java app and it worked perfectly.

The INTERNET permission is declared in my manifest.
I'm going to guess that InetAddress doesn't look at mdns on Android, so you'll have to take a look at this: http://developer.android.com/trainin...essly/nsd.html. If you've installed the NI update on Windows, it sets up an mdns responder. You need to look up by mdns as well.

Edit: taking a second look at that article, it doesn't appear to talk about mdns. Android does not appear to have an mdns responder, so you probably won't be able to get dynamic ips working.

Last edited by fsilberberg : 29-04-2015 at 10:58.
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 16:24.

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