robo::controller

Function is_sticks_in_dead_zone

Source
pub fn is_sticks_in_dead_zone(sticks: Sticks) -> [bool; 4]
Expand description

左右スティック入力がそれぞれデッドゾーンに「入っているか」を判定する。

デッドゾーンは中心からの距離をパーセントで指定する。 戻り値は[Left X, Left Y, Right X, Right Y]。