Go to Post Teams must bring their own water. Water must consist of a low viscosity and at it's maximum width must not be larger than 12 in. - Bkeeneykid [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 Rate Thread Display Modes
  #16   Spotlight this post!  
Unread 12-09-2009, 16:06
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,766
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: LabView/C++ equally capable?

I'll see if I can find the test code. It was basically pointing the camera at the cRIO LEDs, the ones near the power and ethernet plugs. There is an RT function for controlling the LED, and I figured it was close to instantaneous compared to the camera, so I turned it off, and started the camera to acquiring.

At some point, I'd turn the LED on, record the time on the cRIO, then loop inspecting images until one showed up with the LED lit. To detect the LED being lit, I use the regular Camera Get which uncompresses the image, then I measured the intensity of a pixel over the LED. A that point, turn the LED back off, wait for things to settle, and do it over again. I decided to wait a random amount with the LED off. This gave me a pretty good statistical picture of the latency. It shows the minimum, the typical and the maximum time you could expect for a given camera setup.

Greg McKaskle
  #17   Spotlight this post!  
Unread 14-09-2009, 20:54
sami9145's Avatar
sami9145 sami9145 is offline
Registered User
AKA: Samantha Gainey
FRC #2333
Team Role: Mentor
 
Join Date: Sep 2009
Rookie Year: 2009
Location: Sapulpa OK
Posts: 40
sami9145 will become famous soon enough
Re: LabView/C++ equally capable?

you know you can use Java right?
__________________
FRC Team 2333
2008-2009 team member
2009-2010 co-captain

FTC Team 3679
2009-2010 team captain


  #18   Spotlight this post!  
Unread 14-09-2009, 21:19
EricH's Avatar
EricH EricH is online now
New year, new team
FRC #1197 (Torbots)
Team Role: Engineer
 
Join Date: Jan 2005
Rookie Year: 2003
Location: SoCal
Posts: 19,832
EricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond repute
Re: LabView/C++ equally capable?

Quote:
Originally Posted by sami9145 View Post
you know you can use Java right?
Last year, you couldn't. The only data we have is from last year (other than beta test data from this year). Therefore, we have to make this comparison until such time as Java camera code becomes available through some means.
__________________
Past teams:
2003-2007: FRC0330 BeachBots
2008: FRC1135 Shmoebotics
2012: FRC4046 Schroedinger's Dragons

"Rockets are tricky..."--Elon Musk

  #19   Spotlight this post!  
Unread 14-09-2009, 22:09
sami9145's Avatar
sami9145 sami9145 is offline
Registered User
AKA: Samantha Gainey
FRC #2333
Team Role: Mentor
 
Join Date: Sep 2009
Rookie Year: 2009
Location: Sapulpa OK
Posts: 40
sami9145 will become famous soon enough
Re: LabView/C++ equally capable?

Quote:
Originally Posted by EricH View Post
Last year, you couldn't. The only data we have is from last year (other than beta test data from this year). Therefore, we have to make this comparison until such time as Java camera code becomes available through some means.
that makes sense. we have no data from last year cuz all our programers graduated and didnt bother passing on their knowlege. so we gotta start from scratch. and we only know how to text program not visual so my team is gunna use java
__________________
FRC Team 2333
2008-2009 team member
2009-2010 co-captain

FTC Team 3679
2009-2010 team captain


  #20   Spotlight this post!  
Unread 15-09-2009, 10:53
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: LabView/C++ equally capable?

Quote:
Originally Posted by sami9145 View Post
...all our programers graduated and didnt bother passing on their knowlege. so we gotta start from scratch. and we only know how to text program not visual so my team is gunna use java
If you're starting from scratch, don't dismiss LabVIEW out of hand. For someone new to programming for FRC robots, I think it's a whole lot faster to learn.
  #21   Spotlight this post!  
Unread 15-09-2009, 11:06
EricH's Avatar
EricH EricH is online now
New year, new team
FRC #1197 (Torbots)
Team Role: Engineer
 
Join Date: Jan 2005
Rookie Year: 2003
Location: SoCal
Posts: 19,832
EricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond repute
Re: LabView/C++ equally capable?

Quote:
Originally Posted by Alan Anderson View Post
If you're starting from scratch, don't dismiss LabVIEW out of hand. For someone new to programming for FRC robots, I think it's a whole lot faster to learn.
On the other hand, if they already know Java, it might be a whole lot faster to learn how to adapt it to robot programming. Ditto for C++.
__________________
Past teams:
2003-2007: FRC0330 BeachBots
2008: FRC1135 Shmoebotics
2012: FRC4046 Schroedinger's Dragons

"Rockets are tricky..."--Elon Musk

  #22   Spotlight this post!  
Unread 15-09-2009, 11:21
EricVanWyk EricVanWyk is offline
Registered User
no team
 
Join Date: Jan 2007
Rookie Year: 2000
Location: Boston
Posts: 1,597
EricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond repute
Send a message via AIM to EricVanWyk
Re: LabView/C++ equally capable?

Quote:
Originally Posted by sami9145 View Post
that makes sense. we have no data from last year cuz all our programers graduated and didnt bother passing on their knowlege. so we gotta start from scratch. and we only know how to text program not visual so my team is gunna use java
Not knowing how to do something is a poor excuse for not doing it. Give it a shot before you dismiss it. You might like it, you might hate it, but you'll be better off for having tried it.
  #23   Spotlight this post!  
Unread 15-09-2009, 14:05
sami9145's Avatar
sami9145 sami9145 is offline
Registered User
AKA: Samantha Gainey
FRC #2333
Team Role: Mentor
 
Join Date: Sep 2009
Rookie Year: 2009
Location: Sapulpa OK
Posts: 40
sami9145 will become famous soon enough
Re: LabView/C++ equally capable?

weve been trying to figure it out but we havent figured it out. we can make the computer make a random noise but thats about it.
were just gunna stick with robotc and labview.
__________________
FRC Team 2333
2008-2009 team member
2009-2010 co-captain

FTC Team 3679
2009-2010 team captain


  #24   Spotlight this post!  
Unread 15-09-2009, 16:36
rsisk's Avatar
rsisk rsisk is offline
The GURU Channel
AKA: Richard Sisk
FRC #2493 (Robokong)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2007
Location: Riverside, CA
Posts: 2,750
rsisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond repute
Send a message via MSN to rsisk
Re: LabView/C++ equally capable?

Quote:
Another issue is the resolution. Each resolution change is a 4x pixels difference. 640x480 images are nearly 1MB bit and take 100ms simply to decompress. All processing will be about four times as expensive as the 320x240. The 320x240 images take about 22ms to decode, and this was the size I used for the examples. This was really just a built in performance handicap, and it is about 4x slower than the 160x120 image. The small image takes 8ms to decode and the processing will similarly be about four times faster.
At what point does a decreased resolution become unusable? Obviously a 1 pixel resolution will not do much good, but decreasing from 604x480 to 160x120 seems like a significant improvement.
  #25   Spotlight this post!  
Unread 26-09-2009, 18:54
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,766
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: LabView/C++ equally capable?

The Axis 206 camera supports three resolutions. These three steps will be the best improvements overall. To get other sizes, you'll end up decimating or subsetting one of the larger sizes. This is still often worth it.

As for when resolution cuts are no longer worth it, in the real world, the nice cameras have an amazing flexibility with resolution, even to the point of having an image one pixel tall and X pixels wide. This may be useful when material is moving on a conveyer beneath the camera and you really only have time to process the new material.

Greg McKaskle
  #26   Spotlight this post!  
Unread 10-10-2009, 11:49
sami9145's Avatar
sami9145 sami9145 is offline
Registered User
AKA: Samantha Gainey
FRC #2333
Team Role: Mentor
 
Join Date: Sep 2009
Rookie Year: 2009
Location: Sapulpa OK
Posts: 40
sami9145 will become famous soon enough
Re: LabView/C++ equally capable?

oy... some of the sample programs for RobotC (specifically the servo testbed thing) arent working!!!! we have everything hooked up right but its not cooperating. do we need servos for the robot or can we go without them?
__________________
FRC Team 2333
2008-2009 team member
2009-2010 co-captain

FTC Team 3679
2009-2010 team captain


  #27   Spotlight this post!  
Unread 10-10-2009, 17:54
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: LabView/C++ equally capable?

Quote:
Originally Posted by sami9145 View Post
oy... some of the sample programs for RobotC (specifically the servo testbed thing) arent working!!!! we have everything hooked up right but its not cooperating. do we need servos for the robot or can we go without them?
We'll need a lot more detail before trying to help. You say they "aren't working" -- what are you expecting them to do, and what are they doing instead? Instead of saying "hooked up right", can you tell us more precisely how everything is hooked up? What does "not cooperating" mean?

If you're trying to run a program to test servos, I'd imagine that servos would be an important part of the setup.
  #28   Spotlight this post!  
Unread 17-10-2009, 00:45
sami9145's Avatar
sami9145 sami9145 is offline
Registered User
AKA: Samantha Gainey
FRC #2333
Team Role: Mentor
 
Join Date: Sep 2009
Rookie Year: 2009
Location: Sapulpa OK
Posts: 40
sami9145 will become famous soon enough
Re: LabView/C++ equally capable?

we were using a testbed set up thing (i dont have the papers with me to say what exactly it is) to help us learn how to start wiring servos and motors. the one with only the motor worked fine with the sample program provided. when we connected the servo (exactly as the instructions said) it didnt want to run and said there was an error.
any suggestions?
__________________
FRC Team 2333
2008-2009 team member
2009-2010 co-captain

FTC Team 3679
2009-2010 team captain


  #29   Spotlight this post!  
Unread 17-10-2009, 23:26
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: LabView/C++ equally capable?

Quote:
Originally Posted by sami9145 View Post
...it didnt want to run and said there was an error.
any suggestions?
I suggest you write down the error and tell us what it was. It's likely to help us help you.
  #30   Spotlight this post!  
Unread 18-10-2009, 14:50
sami9145's Avatar
sami9145 sami9145 is offline
Registered User
AKA: Samantha Gainey
FRC #2333
Team Role: Mentor
 
Join Date: Sep 2009
Rookie Year: 2009
Location: Sapulpa OK
Posts: 40
sami9145 will become famous soon enough
Re: LabView/C++ equally capable?

I cant find out which error it is until school tomorrow. I dont have the robot at home with me although the software is on my laptop.
I will find out ASAP tho
__________________
FRC Team 2333
2008-2009 team member
2009-2010 co-captain

FTC Team 3679
2009-2010 team captain


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Labview 8.5 vs. FRC Labview 8.5 pyr0b0y NI LabVIEW 0 01-02-2009 22:20
Labview tseres Programming 2 23-05-2007 00:27
can bots with omni wheels capable of going up robots? Tri_Lam Technical Discussion 12 13-01-2007 16:15
Is this hardware capable of balance? sanddrag Electrical 15 02-08-2005 15:36


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

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