mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-18 21:39:06 +08:00
Fixed in-air timout, bumped protocol version
This commit is contained in:
parent
64145252d4
commit
6c45d9cb5c
@ -508,7 +508,7 @@ PX4IO::init()
|
||||
usleep(10000);
|
||||
|
||||
/* abort after 5s */
|
||||
if ((hrt_absolute_time() - try_start_time)/1000 > 50000) {
|
||||
if ((hrt_absolute_time() - try_start_time)/1000 > 3000) {
|
||||
log("failed to recover from in-air restart (1), aborting IO driver init.");
|
||||
return 1;
|
||||
}
|
||||
|
||||
@ -74,7 +74,7 @@
|
||||
#define REG_TO_FLOAT(_reg) ((float)REG_TO_SIGNED(_reg) / 10000.0f)
|
||||
#define FLOAT_TO_REG(_float) SIGNED_TO_REG((int16_t)((_float) * 10000.0f))
|
||||
|
||||
#define PX4IO_PROTOCOL_VERSION 2
|
||||
#define PX4IO_PROTOCOL_VERSION 3
|
||||
|
||||
/* static configuration page */
|
||||
#define PX4IO_PAGE_CONFIG 0
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user