When I use the “hello_pixy” demo the first time I get all block detection without problem.
However if I stop the programm and run a grab_frame program the block detection doesnt restart
once I use hello_pixy again.
I added this to the “hello_pixy” but without success.
@return_value = pixy_command(“run”, END_OUT_ARGS, &response, END_IN_ARGS);
if (return_value != 0){
printf(“ERROR: Restarting block detection failed: return_value %d response %d\n”, return_value, response);
}else{
printf("–> block detection activated\n");
}@
How can I restart the program that is executed once the Pixy boots the first time?
Andy