Browse Source

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

The onState is backwards.
Read Error 10 years ago
parent
commit
1ce995548f
1 changed files with 4 additions and 4 deletions
  1. 4
    4
      frsky_arduino_rx_complete.ino

+ 4
- 4
frsky_arduino_rx_complete.ino View File

19
 //#define DEBUG3
19
 //#define DEBUG3
20
 //#define DEBUG4
20
 //#define DEBUG4
21
 //#define DEBUG5
21
 //#define DEBUG5
22
-//#define FAILSAFE
22
+#define FAILSAFE
23
 #define SPIBB
23
 #define SPIBB
24
 //#define SPIHW
24
 //#define SPIHW
25
 #if defined SPIHW
25
 #if defined SPIHW
32
 #define PPM_FrLen 22500
32
 #define PPM_FrLen 22500
33
 #define PPM_PulseLen 300
33
 #define PPM_PulseLen 300
34
 #define default_servo_value 1500
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
 #define sigPin 10
36
 #define sigPin 10
37
 
37
 
38
 #if defined(SPIBB)
38
 #if defined(SPIBB)
199
             missingPackets = 0;
199
             missingPackets = 0;
200
             int i;
200
             int i;
201
             for (i = 0; i < 8; i++) {
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
                 if (i == 2) {
204
                 if (i == 2) {
205
                     Servo_data[2] = 1000; //THROTLE ON CHN3 here it can be changed Throttle on other channel
205
                     Servo_data[2] = 1000; //THROTLE ON CHN3 here it can be changed Throttle on other channel
206
                     ppm[2] = 1000;
206
                     ppm[2] = 1000;

Loading…
Cancel
Save