mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-22 01:12:31 +00:00
tap_esc: enable closed loop control if supported by board
This commit is contained in:
committed by
Lorenz Meier
parent
173001e73a
commit
6b8c0f7db2
@@ -72,6 +72,10 @@
|
||||
# define BOARD_TAP_ESC_NO_VERIFY_CONFIG 0
|
||||
#endif
|
||||
|
||||
#if !defined(BOARD_TAP_ESC_MODE)
|
||||
# define BOARD_TAP_ESC_MODE 0
|
||||
#endif
|
||||
|
||||
/*
|
||||
* This driver connects to TAP ESCs via serial.
|
||||
*/
|
||||
@@ -252,6 +256,8 @@ TAP_ESC::init()
|
||||
ConfigInfoBasicRequest &config = packet.d.reqConfigInfoBasic;
|
||||
memset(&config, 0, sizeof(ConfigInfoBasicRequest));
|
||||
config.maxChannelInUse = _channels_count;
|
||||
/* Enable closed-loop control if supported by the board */
|
||||
config.controlMode = BOARD_TAP_ESC_MODE;
|
||||
|
||||
/* Asign the id's to the ESCs to match the mux */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user