Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Scouting (http://www.chiefdelphi.com/forums/forumdisplay.php?f=36)
-   -   Team 111's scouting system: WildRank (http://www.chiefdelphi.com/forums/showthread.php?t=129763)

nathanwalters 19-01-2015 00:36

Re: Team 111's scouting system: WildRank
 
I wouldn't really call it an oversight. When we were designing it it we thought it would be common sense that you'd only scout at an event with posted matches. We can look into adding a warning, although that isn't really a priority.

As far as we know the app should work with any past event. The fact that it isn't is concerning. I have school off tomorrow, so I can try it out with some different events and see how things behave.

With practice matches, I'm not sure, but I'm going to guess no. I don't think TBA scrapes those schedules, or if FIRST even publishes them in the normal place on the site.

Glad to see you got it working! Yes, the next step is to configure it how you want for the game. For WildRank-specific configuration instruction, check out the documentation. For more general info on how to write Android XML layout files, I'd recommend that you read through the relevant info and tutorials on the Android developer website. Good luck!

As a side note, I was talking with the other primary developer of the app today, and we're considering rewriting the app from scratch for this season based on everything we learned last year. We're going to focus on making the code simpler and more robust. If you have anything you'd like to see changed after your brief experience with the app, shoot me a PM.

Skyehawk 19-01-2015 13:32

Re: Team 111's scouting system: WildRank
 
I now know why I was getting weird readings off of the first two 2014 regionals I tried. In order to get the app running correctly I needed to do a fresh install, setup, etc. Then the app needs to be force stopped. Once this happens it behaves like it should. I have no clue why it needs a force stop, but it is a relatively easy fix and works every time.
I also managed to set up the layout for Recycle Rush, the .xml files are not that difficult to manipulate. I just need to make sure my keys line up so I can do calculations later. I will be sure to give feedback.

[EDIT] question: Where are the arrays stored for drivetrain, shooter, etc?

Short Stuff 19-01-2015 15:42

Re: Team 111's scouting system: WildRank
 
So what all did you have to do to get the app working? I am still having the same problem even while using last years regional and reinstalling the app on my device.

plnyyanks 19-01-2015 15:45

Re: Team 111's scouting system: WildRank
 
Quote:

Originally Posted by nathanwalters (Post 1430416)
With practice matches, I'm not sure, but I'm going to guess no. I don't think TBA scrapes those schedules, or if FIRST even publishes them in the normal place on the site.

FMS does not post practice match schedules, so there's no way for TBA or anything else to scrape them.

Skyehawk 19-01-2015 16:20

Re: Team 111's scouting system: WildRank
 
Quote:

Originally Posted by Short Stuff (Post 1430595)
So what all did you have to do to get the app working? I am still having the same problem even while using last years regional and reinstalling the app on my device.

Ok, so here is the short and sweet to get the app working. Just ask about any specific step and I will explain in more detail.
1) get your tablet running in developer mode.
2) connect your tablet to your computer with ADB driver.
3) open up android studio and navigate to the constants page
4) input your filepath to the USB root on your tablet
5) connect your tablet, run the project, select your device off of the connected devices list.
6) prepare the flash drive using the desktop app (just run the project in eclipse)
7) put the default game.wild into the USB root directory
8) connect the USB OTG adapter to your tablet and use the app
9) 9453 is the password (wild spelled out) enter super user mode in settings
10) click through the menu, if it doesn't work force stop the app.
11) open up the app and select match scouting first. now match scouting should work.

Hope I helped

Skyehawk 19-01-2015 16:21

Re: Team 111's scouting system: WildRank
 
Quote:

Originally Posted by plnyyanks (Post 1430596)
FMS does not post practice match schedules, so there's no way for TBA or anything else to scrape them.

You should be able to create a schedule with the wildrank desktop app right?

Short Stuff 19-01-2015 17:10

Re: Team 111's scouting system: WildRank
 
When you place the game.wild file in the USB root directory, do you just place it into the location you specified in the program as the usb root?

Skyehawk 19-01-2015 19:40

Re: Team 111's scouting system: WildRank
 
Quote:

Originally Posted by Short Stuff (Post 1430653)
When you place the game.wild file in the USB root directory, do you just place it into the location you specified in the program as the usb root?

The USB root needs to be the root location of the flash drive, not a folder in the flash drive. The game.wild goes into the root location.

Skyehawk 20-01-2015 18:57

Re: Team 111's scouting system: WildRank
 
I now have reached a point where I need to export to a CSV file. I synchronize the tablet with the flash drive, then open the desktop app and create CSV. I am using my custom .xml layout and the keys associated with them. What do I need to do to get the CSV generation working? I have included a screenshot of what the CSV looks like.

Image: http://imgur.com/kUCbBhf

what do I need to do to get my data out of the .json files, into a .csv with all of my custom fields?
(Also, where are the arrays located that contain drive trains, shooter types, etc. I need to make a custom array.)
Thanks for any help.

Skyehawk 23-01-2015 23:52

Re: Team 111's scouting system: WildRank
 
Just wondering, has this thread died? I am so close to getting this app working to its full potential. It would be a shame if the documentation on getting Wildrank working for the average user ended here.

nathanwalters 24-01-2015 01:17

Re: Team 111's scouting system: WildRank
 
Quote:

Originally Posted by Skyehawk (Post 1433122)
Just wondering, has this thread died? I am so close to getting this app working to its full potential. It would be a shame if the documentation on getting Wildrank working for the average user ended here.

Sorry, I stopped getting email notifications for some reason so I never saw your question. I'll post a response tomorrow when I'm more awake :)

mail929 24-01-2015 12:00

Re: Team 111's scouting system: WildRank
 
Okay I'm a little rusty but this is a pretty simple part, so in order to create a csv file you need a game file. This file tells wildrank what all the variables are that need to be mapped. This file is called game.wild and is located in the root of the local location (see lines 79-89 in Setup.java for more on saving). This file is read with the GameReader.java. It's pretty simple how it works you start with a tag that ends with a colon then some data.

You always need to start with game-name: [current game name]
This tells it what the current game is.

Then you need a main-key: [whatever]
I really don't remember what this is for and it appears that it doesn't actually do anything, so just put whatever you want.

Then you need different sections each sections starts with section-key: [auto/teleop/post]
This sets the section of the chart whether you are in autonomous, teleop, or post-match. But you can make the sections names whatever you want.

After this is where you put all the data item: [datapoint-name],[datapoint-key];[num/bool/text]
The name is whatever you want it labeled in the chart, the key is what it is defined as in json, and the num/bool/text is whether it is a integer, boolean, or string.

Hope this helped, feel free to ask if you have any questions!
Also look at ConfigCreator.java, this is designed to automatically generate these config files.

Skyehawk 25-01-2015 02:04

Re: Team 111's scouting system: WildRank
 
I have a weird problem, I am not able to get the app to recognize the USB drive to update/sync. The only two reasons that the "Connect a Flash Drive" message pops up are due to the USB root being wrong in the code, or not physically having a USB Drive installed. I am 99% sure the root is right (because it was working a few days ago) and the flash drive is defiantly connected. What could be the problem?

Thanks for any help in advance.
(hopefully this "heals" itself by morning, I give up for tonight.)

mail929 25-01-2015 11:26

Re: Team 111's scouting system: WildRank
 
Ya we have had that problem a lot in the past. It seems some days OTG wants to work and other days it doesn't. A couple things you could try are rebooting, manually mounting the flash drive (Storage/USB Storage/Mount SD card, you could also try doing it via terminal), or even reformatting the flash drive.

nathanwalters 25-01-2015 11:31

Re: Team 111's scouting system: WildRank
 
You can also try navigation to the flash drive in your file explorer of choice. If it's mounted and you can see its contents, that means you probably have the root configured wrong in the code. Otherwise, I'd try the things mail929 suggested.


All times are GMT -5. The time now is 23:39.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi