mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-03 02:21:36 +08:00
imxrt: add up_bdshot_channel_capture_supported
This commit is contained in:
@@ -535,6 +535,15 @@ int up_bdshot_get_extended_telemetry(uint8_t channel, int type, uint8_t *value)
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int up_bdshot_channel_capture_supported(uint8_t channel)
|
||||||
|
{
|
||||||
|
if (channel >= DSHOT_TIMERS) {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
return dshot_inst[channel].init && dshot_inst[channel].bdshot;
|
||||||
|
}
|
||||||
|
|
||||||
int up_bdshot_channel_online(uint8_t channel)
|
int up_bdshot_channel_online(uint8_t channel)
|
||||||
{
|
{
|
||||||
if (channel < DSHOT_TIMERS) {
|
if (channel < DSHOT_TIMERS) {
|
||||||
|
|||||||
Reference in New Issue
Block a user