mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-11-29 20:20:56 +08:00
Increase RC buffer size
This commit is contained in:
1 parent
4cfd84b56a
commit
ed62957474
1 file changed
+2
-2
@@ -195,7 +195,7 @@ private:
|
||||
unsigned _num_outputs;
|
||||
int _class_instance;
|
||||
int _rcs_fd;
|
||||
uint8_t _rcs_buf[SBUS_FRAME_SIZE];
|
||||
uint8_t _rcs_buf[SBUS_BUFFER_SIZE * 2];
|
||||
|
||||
volatile bool _initialized;
|
||||
bool _throttle_armed;
|
||||
@@ -1281,7 +1281,7 @@ PX4FMU::cycle()
|
||||
}
|
||||
|
||||
// read all available data from the serial RC input UART
|
||||
int newBytes = ::read(_rcs_fd, &_rcs_buf[0], SBUS_FRAME_SIZE);
|
||||
int newBytes = ::read(_rcs_fd, &_rcs_buf[0], sizeof(_rcs_buf) / sizeof(_rcs_buf[0]));
|
||||
|
||||
switch (_rc_scan_state) {
|
||||
case RC_SCAN_SBUS:
|
||||
|
||||
Reference in new issue
Block a user