|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools |
Rating:
|
Display Modes |
|
#61
|
||||
|
||||
|
Re: Android Driver Station
Quote:
|
|
#62
|
||||
|
||||
|
Re: Android Driver Station
Quote:
I don't get this error, could you try re-installing the app. Sorry, I don't know what else to do since I can't work on a problem I don't have. On second thought, what type of device do you have? If it is a problem with the UI that it could be specific to the screen-size. I will launch the app on an emulator of a smaller screen and see what I can find out. Last edited by raystubbs : 23-05-2014 at 11:40. |
|
#63
|
||||
|
||||
|
Re: Android Driver Station
Quote:
Maybe it is a version error, try uninstalling the app, and re-downloading it maybe? If you do this I would suggest redownloading the second app (Android-FRC-Driverstation). Last edited by raystubbs : 23-05-2014 at 12:00. |
|
#64
|
|||
|
|||
|
Quote:
Edit: I think it may be because of the network I'm connected to. The IP I was assigned had 3 characters in the 3rd portion of the IP. I changed my network settings and it was able to start normal. Last edited by dmaciel10123 : 23-05-2014 at 11:52. |
|
#65
|
||||
|
||||
|
Re: Android Driver Station
Quote:
Last edited by raystubbs : 23-05-2014 at 13:36. |
|
#66
|
|||
|
|||
|
Quote:
Also, I was messing around and added some simple code that may be able to display video but I can't test it yet because I don't have a robot or IP camera. I'll test it probably tomorrow at BattleCry. |
|
#67
|
||||
|
||||
|
Re: Android Driver Station
Quote:
|
|
#68
|
|||
|
|||
|
Quote:
Edit: wow okay whoops. I dun goofed. Just tried opening it with the code I added and it crashed immediately. I'll keep working on it. Last edited by dmaciel10123 : 23-05-2014 at 15:33. |
|
#69
|
||||
|
||||
|
Re: Android Driver Station
Quote:
Code:
video = (VideoView)findViewById(R.id.video); // Set uriString to "rtsp://10.xx.yy.11/axis-media/media.3gp" String uriString = "rtsp://" + "10." + Integer.toString((addr & 0xff0000)>>16) //"rtsp://10.xx.yy.11/axis-media/media.3gp" +"."+ Integer.toString((addr & 0xff00)>>8) + ".11/" + "axis-media/media.3gp"; video.setVideoURI(Uri.parse(uriString)); video.requestFocus(); video.start(); |
|
#70
|
|||
|
|||
|
Quote:
|
|
#71
|
||||
|
||||
|
Re: Android Driver Station
What is the full uri (path) of the image file? I thought of using the image before. I knew the axis had one I just didn't know where it was.
|
|
#72
|
|||
|
|||
|
Re: Android Driver Station
I'm pretty sure it's just http://10.xx.xx.11/image.jpg
I may be wrong, but I do have a code that theoretically will work. I just can't test it yet. I uploaded the code to a forked repo at https://github.com/crazyman10123/And...-Driverstation I didn't upload a new binary, just the code. |
|
#73
|
||||
|
||||
|
Re: Android Driver Station
Quote:
I do have a question though, does it work to put your code in the start() method of a thread? I have only ever put code in the run() method. |
|
#74
|
|||
|
|||
|
I probably should change it to the run() method because the way it is right now, start() would never end. I wasn't even paying attention to that haha thanks.
Edit: I fixed the start/run methods, and uploaded the changes to the repo. I'll also be trying it tomorrow at BattleCry when I have access to our bot. Last edited by dmaciel10123 : 23-05-2014 at 17:14. |
|
#75
|
||||
|
||||
|
Re: Android Driver Station
I have a Galaxy S4 and I don't have the option to set my subnet mask and it is asking me for a lot more information. Like Default Gateway, DNS, etc when I try to set up a static IP as instructed.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|