View Single Post
  #6   Spotlight this post!  
Unread 06-03-2012, 19:59
mikets's Avatar
mikets mikets is offline
Software Engineer
FRC #0492 (Titan Robotics)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2008
Location: Bellevue, WA
Posts: 667
mikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of light
Re: Camera code stops recieving images

Quote:
Originally Posted by Method View Post
reports->at(highParticle).center_mass_y;

I think lines like this may be what is guilty... is there anything wrong with this?

reports is the vector particle analysis report and high particle is an integer

I commented all of these lines out (I used them to compare particles and create variables like highParticle or highParticleCenterX etc.)
There are many things that could go wrong with that statement. Are you sure reports is not a NULL pointer? Are you sure highParticle contains a valid index etc?
__________________
Reply With Quote