mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-29 17:23:34 +08:00
FMU driver: Run slightly faster to accomodate S.BUS
This commit is contained in:
@@ -94,7 +94,7 @@
|
|||||||
* This is the analog to FMU_INPUT_DROP_LIMIT_US on the IO side
|
* This is the analog to FMU_INPUT_DROP_LIMIT_US on the IO side
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define CONTROL_INPUT_DROP_LIMIT_MS 2
|
#define CONTROL_INPUT_DROP_LIMIT_US 1500
|
||||||
#define NAN_VALUE (0.0f/0.0f)
|
#define NAN_VALUE (0.0f/0.0f)
|
||||||
|
|
||||||
class PX4FMU : public device::CDev
|
class PX4FMU : public device::CDev
|
||||||
@@ -887,7 +887,7 @@ PX4FMU::cycle()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
work_queue(HPWORK, &_work, (worker_t)&PX4FMU::cycle_trampoline, this, USEC2TICK(CONTROL_INPUT_DROP_LIMIT_MS * 1000));
|
work_queue(HPWORK, &_work, (worker_t)&PX4FMU::cycle_trampoline, this, USEC2TICK(CONTROL_INPUT_DROP_LIMIT_US));
|
||||||
}
|
}
|
||||||
|
|
||||||
void PX4FMU::work_stop()
|
void PX4FMU::work_stop()
|
||||||
|
|||||||
Reference in New Issue
Block a user