mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-20 08:29:05 +08:00
imxrt: add up_bdshot_channel_capture_supported
This commit is contained in:
parent
6f8ba007d1
commit
ac5fba4c28
@ -535,6 +535,15 @@ int up_bdshot_get_extended_telemetry(uint8_t channel, int type, uint8_t *value)
|
||||
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)
|
||||
{
|
||||
if (channel < DSHOT_TIMERS) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user