瀏覽代碼

Confirmed/tested failsafe, changed ppm polarity to match FrSky default.

The onState is backwards.
Read Error 10 年之前
父節點
當前提交
1ce995548f
共有 1 個檔案被更改,包括 4 行新增4 行删除
  1. 4
    4
      frsky_arduino_rx_complete.ino

+ 4
- 4
frsky_arduino_rx_complete.ino 查看文件

@@ -19,7 +19,7 @@
19 19
 //#define DEBUG3
20 20
 //#define DEBUG4
21 21
 //#define DEBUG5
22
-//#define FAILSAFE
22
+#define FAILSAFE
23 23
 #define SPIBB
24 24
 //#define SPIHW
25 25
 #if defined SPIHW
@@ -32,7 +32,7 @@
32 32
 #define PPM_FrLen 22500
33 33
 #define PPM_PulseLen 300
34 34
 #define default_servo_value 1500
35
-#define onState 1  //set polarity of the pulses: 1 is positive, 0 is negative
35
+#define onState 0  //set polarity of the pulses: 1 is positive, 0 is negative
36 36
 #define sigPin 10
37 37
 
38 38
 #if defined(SPIBB)
@@ -199,8 +199,8 @@ void loop()
199 199
             missingPackets = 0;
200 200
             int i;
201 201
             for (i = 0; i < 8; i++) {
202
-                Servo_data[i] = 1500;
203
-                ppm[i] = 1500;
202
+                Servo_data[i] = 1000;
203
+                ppm[i] = 1000;
204 204
                 if (i == 2) {
205 205
                     Servo_data[2] = 1000; //THROTLE ON CHN3 here it can be changed Throttle on other channel
206 206
                     ppm[2] = 1000;

Loading…
取消
儲存