3.关于遥控器的解锁和加锁
昨晚在看MWC2.3的程序时,找到的一些有用的信息,我这就传上来,供大家参考一下
rcSticks == THR_LO + YAW_LO + PIT_CE + ROL_CE) go_disarm(); // Disarm via YAW
rcSticks == THR_LO + YAW_CE + PIT_CE + ROL_LO) go_disarm(); // Disarm via ROLL
rcSticks == THR_LO + YAW_LO + PIT_LO + ROL_CE) { // GYRO(陀螺仪) calibration(校准)
rcSticks == THR_LO + YAW_LO + PIT_HI + ROL_HI) { // Inflight ACC(加速度) calibration START/STOP
rcSticks == THR_LO + YAW_LO + PIT_CE + ROL_LO) i=1; // ROLL left -> Profile 1
rcSticks == THR_LO + YAW_LO + PIT_HI + ROL_CE) i=2; // PITCH up -> Profile 2
rcSticks == THR_LO + YAW_LO + PIT_CE + ROL_HI) i=3; // ROLL right -> Profile 3
rcSticks == THR_LO + YAW_HI + PIT_HI + ROL_CE) { // Enter LCD config
rcSticks == THR_LO + YAW_HI + PIT_CE + ROL_CE) go_arm(); // Arm via YAW
rcSticks == THR_LO + YAW_CE + PIT_CE + ROL_HI) go_arm(); // Arm via ROLL
rcSticks == THR_LO + YAW_CE + PIT_HI + ROL_LO) { // Auto telemetry ON/OFF
rcSticks == THR_LO + YAW_CE + PIT_HI + ROL_HI) { // Telemetry(遥控) next step
rcSticks == THR_HI + YAW_LO + PIT_LO + ROL_CE) calibratingA=512; // throttle=max, yaw=left, pitch=min
rcSticks == THR_HI + YAW_HI + PIT_LO + ROL_CE) f.CALIBRATE_MAG = 1; // throttle=max, yaw=right, pitch=min |