// 云台控制工具集
    /**
     *  3 2 1
     *  4 * 0
     *  5 6 7
     * 
     */
const getJoysticPositionFlag = (dir: string) => {
    //dir:up plain:up dir:left plain:left dir:down plain:down dir:right plain:right end
    switch (dir) {
        case 'dir:up':
            return 2
        case 'dir:down':
            return 6
        case 'dir:left':
            return 4
        case 'dir:right':
            return 0
        default:
            return -99;
    }
}
export { getJoysticPositionFlag }