OK, I need some help, been all around google trying to find my answer... and I figured, why not just ask people instead? My situation deals with zero point... I have an issue where when my computer program equals zero, it starts to send a command to the camera and the camera ball starts going erratic. I want to try and refine the code so that when the camera goes to zero point, its initial stage or beginning before I apply functions to make it move, it goes to, say, (0,1) instead of (0,0) I think, after browsing google, the code segment I am looking for would look something like this:
then act ()
... move to (0,1)
I am assuming once the camera goes to its standby spot, (0,0) it reaches its zeropoint, and that makes the program divide by zero, thus making it erratic... I want to make it to where once it goes to its zeropoint, the program says, no, go here to prevent the error of dividing by zero... is it possible?
I am not the best with java, just tried learning through SEVERAL websites on google... if anyone could help refine my segment... then I can plug into the default java the program provided... I kind of understand how to read it, but the actual coding is what screws me... thank you so much!
If the zeropoit, docking condition, or start is (0, 0), I'd say you have more of a problem with your progam not recognising the condition. You should solve the problem and not try to avoid it. After all, what happens if, after your workaround is applied, that the camera somehow reaches that (0, 0) position? Since you don't handle it properly it will be stuck. Address what is wrong in your applicaiton instead of changing the business rule to avoid your application weakness.