Patent ID: 7643962

Claim:
A method for judging directionality of a controlling device by utilizing a gravity sensor thereof, comprising the steps of: a) receiving, using a controller, component quantities of gravity on three rectangular coordinate axes (g x , g y and g z ) from the gravity sensor; b) acquiring, using a controller, a first-staged judging result according to a magnitude of the component quantity on z-axis (g z ): b1) judging to be “holding original status without change” when an absolute value of the g z is larger than a first threshold being not smaller than 1 g; b2) judging to be a first direction status when the g z is smaller than −0.5 g but not smaller than negative the first threshold; b3) judging to be a second direction status when the g z is larger than 0.5 g but not larger than positive the first threshold; b4) temporarily acquiring no judging result when g z is not larger than 0.5 g and not smaller than −0.5 g; and c) acquiring, using a controller, a second-staged judging result after the step b4: c1) judging to be the first direction status when the g z is negative and the component quantity on y-axis (g y ) is larger than 0.5 g but not larger than a second threshold being not smaller than 1 g; c2) judging to be the second direction status when the g z is negative and the gy is smaller than −0.5 g but not smaller than negative the second threshold; c3) judging to be the second direction status when the g y is positive and the gy is larger than 0.5 g but not larger than positive the second threshold; c4) judging to be the first direction status when the g z is positive and g y is smaller than −0.5 g but not smaller than negative the second threshold; and c5) judging to be “holding original status without change” when the g y is out of a range defined in the steps c1-c4 or the g z is zero.