Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Android Driver Station (http://www.chiefdelphi.com/forums/showthread.php?t=129073)

Ben Wolsieffer 23-05-2014 19:35

Re: Android Driver Station
 
I got it installed on my tablet (an HP Touchpad running CyanogenMod), and the layout looks fine. I haven't been able to test it on our bot yet since we were busy packing for BattleCry :).

Dr.Gusta 23-05-2014 20:05

Re: Android Driver Station
 
Quote:

Originally Posted by Dr.Gusta (Post 1387149)
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.

Okay so I got this figured out and got connected to the robot but the controls are unresponsive. When I enable the robot in the app the compressor comes on so I know something is happening but I can not control the robot at all. The status light also never tells me the robot is enabled.

raystubbs 23-05-2014 20:55

Re: Android Driver Station
 
Quote:

Originally Posted by Dr.Gusta (Post 1387161)
Okay so I got this figured out and got connected to the robot but the controls are unresponsive. When I enable the robot in the app the compressor comes on so I know something is happening but I can not control the robot at all. The status light also never tells me the robot is enabled.

When did you download the app? It has been changed quite a bit since the first upload. If anyone else has a problem like this please let us know.

Edit: Also, if the robot was not enabled than the compressor would not work would it?

Dr.Gusta 23-05-2014 21:04

Re: Android Driver Station
 
I am running the most up to date version and the compressor does not come on until I hit enable but nothing else works.

raystubbs 23-05-2014 21:09

Re: Android Driver Station
 
Quote:

Originally Posted by Dr.Gusta (Post 1387170)
I am running the most up to date version and the compressor does not come on until I hit enable but nothing else works.

I'll look into it, it is strange that it wouldn't work, I was just using it. Are you using a phone or tablet? Large (5-7"), normal (3-4"), or small (<3")?

Dr.Gusta 23-05-2014 21:46

Re: Android Driver Station
 
Quote:

Originally Posted by raystubbs (Post 1387173)
I'll look into it, it is strange that it wouldn't work, I was just using it. Are you using a phone or tablet? Large (5-7"), normal (3-4"), or small (<3")?

I am using a Galaxy S4

raystubbs 23-05-2014 23:12

Re: Android Driver Station
 
Quote:

Originally Posted by Dr.Gusta (Post 1387175)
I am using a Galaxy S4

OK, I'll see what I can find out, but I let out for summer vacation today and am going home to Mexico, so I will not have access to a robot.

dmaciel10123 24-05-2014 05:57

Quote:

Originally Posted by raystubbs (Post 1387180)
OK, I'll see what I can find out, but I let out for summer vacation today and am going home to Mexico, so I will not have access to a robot.

I'll have access to a robot for the weekend if you need me to take a look at anything

raystubbs 24-05-2014 14:29

Re: Android Driver Station
 
Quote:

Originally Posted by dmaciel10123 (Post 1387196)
I'll have access to a robot for the weekend if you need me to take a look at anything

I would appreciate if you could see what you can find out about Dr.Gusta's problem, you have a galaxy right? If the app works on your phone than there is no reason why it should not work on his. Thanks for all the help you have given.

I found out something about the video, it may not work, but if you would like to try it:

On the example of video code in one of my previous posts I made the URI as:
"rtsp://10.xx.yy.11/axis-media/media.3gp"

It should have been :
"rtsp://10.xx.yy.11:554/axis-media/media.3gp?videocodec=h264"

In the second URI I added the :554 after the IP address and at the end I added ?videocodec=h264 which is not necessary except for choosing the video settings, it is unneeded for the default settings.

raystubbs 24-05-2014 15:06

Re: Android Driver Station
 
I added code to support physical joysticks and buttons if anyone wants to try it out, I have no idea if it will work, have not tested it at all.

dmaciel10123 24-05-2014 23:01

Re: Android Driver Station
 
I'll see what I can do tomorrow, sorry. Didn't have much spare time today haha. Also, I found where the single image is saved, it's at http://10.xx.xx.11/axis-cgi/jpg/image.cgi so I modified my code to load from that with the default settings at about 30 FPS, so I'll see if that works tomorrow as well. I may need to work on a way to get the regular image rather than the CGI page, though, so I've been looking at various JPEG Decoder tutorials trying to find out what to do.

raystubbs 25-05-2014 00:28

Re: Android Driver Station
 
Quote:

Originally Posted by dmaciel10123 (Post 1387265)
I'll see what I can do tomorrow, sorry. Didn't have much spare time today haha. Also, I found where the single image is saved, it's at http://10.xx.xx.11/axis-cgi/jpg/image.cgi so I modified my code to load from that with the default settings at about 30 FPS, so I'll see if that works tomorrow as well. I may need to work on a way to get the regular image rather than the CGI page, though, so I've been looking at various JPEG Decoder tutorials trying to find out what to do.

Thanks.
I was messing with the camera a while ago and found another image file at http://10.xx.xx.11/jpg/image.jpg for if the other doesn't work.

dmaciel10123 25-05-2014 07:17

Re: Android Driver Station
 
Oh, thanks haha. I wrote some code that should be able to get the image from the CGI page, but if it doesn't work (and for some reason I feel like it won't) I'll just switch it over to use the URL you found.

dmaciel10123 25-05-2014 19:30

Okay, so, I tried the app today after we got eliminated and everything worked: joysticks and buttons. I still haven't gotten the image to show but I am continuing to work on it and hope to have it working soon.

raystubbs 25-05-2014 22:54

Re: Android Driver Station
 
Quote:

Originally Posted by dmaciel10123 (Post 1387343)
Okay, so, I tried the app today after we got eliminated and everything worked: joysticks and buttons. I still haven't gotten the image to show but I am continuing to work on it and hope to have it working soon.

It's good that everything still works. Any idea why Dr.Gusta's didn't work? I have no idea.


All times are GMT -5. The time now is 07:18.

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