Skip to content

Commit

Permalink
tolerate 20 ticks rx drop
Browse files Browse the repository at this point in the history
  • Loading branch information
tinkerer committed May 7, 2020
1 parent 284d3a5 commit 527cac1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion flybrix-firmware.ino
Original file line number Diff line number Diff line change
Expand Up @@ -441,4 +441,4 @@ void loop() {
}
}
}
}
}
4 changes: 2 additions & 2 deletions receiver.h
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class Receiver {
RcState query();

static constexpr uint8_t recovery_rate{1};
static constexpr uint8_t refresh_delay_tolerance{1};
static constexpr uint8_t refresh_delay_tolerance{20};

struct __attribute__((packed)) ChannelProperties {
ChannelProperties();
Expand Down Expand Up @@ -114,4 +114,4 @@ extern volatile uint8_t RX_channel; // we are collecting data
#define RX_PPM_SYNCPULSE_MIN 7500 // 2.5ms
#define RX_PPM_SYNCPULSE_MAX 48000 // 16 ms (seems to be about 13.4ms on the scope)

#endif
#endif

0 comments on commit 527cac1

Please sign in to comment.