View Single Post
  #1   Spotlight this post!  
Unread 14-03-2013, 20:05
omsahmad's Avatar
omsahmad omsahmad is offline
Registered User
FRC #1595 (Dragons)
 
Join Date: Oct 2010
Rookie Year: 2011
Location: Spokane, WA
Posts: 66
omsahmad is just really niceomsahmad is just really niceomsahmad is just really niceomsahmad is just really niceomsahmad is just really nice
Where does Windriver printf

So I know you can setup smartdashboard or DriverStationLCD, but where does Windriver print a line if you just put in the following (as seen in vision example):
Code:
	if(scoreCompare(scores[i], false))
	{
		printf("particle: %d  is a High Goal  centerX: %f  centerY: %f \n", i, report->center_mass_x_normalized, report->center_mass_y_normalized);
		printf("Distance: %f \n", computeDistance(thresholdImage, report, false));
	} else if (scoreCompare(scores[i], true)) {
		printf("particle: %d  is a Middle Goal  centerX: %f  centerY: %f \n", i, report->center_mass_x_normalized, report->center_mass_y_normalized);
		printf("Distance: %f \n", computeDistance(thresholdImage, report, true));
	} else {
		printf("particle: %d  is not a goal  centerX: %f  centerY: %f \n", i, report->center_mass_x_normalized, report->center_mass_y_normalized);
	}
	printf("rect: %f  ARinner: %f \n", scores[i].rectangularity, scores[i].aspectRatioInner);
	printf("ARouter: %f  xEdge: %f  yEdge: %f  \n", scores[i].aspectRatioOuter, scores[i].xEdge, scores[i].yEdge);	
}
printf("\n");
DriverStationLCD is pretty limited and I am still figuring stuff in SmartDashboard.

Thanks.
Reply With Quote