mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-18 23:03:34 +08:00
dshot: fix clearing out esc status
This commit is contained in:
committed by
David Sidrane
parent
b0cb697f71
commit
f3ef0d6610
@@ -440,7 +440,7 @@ void up_dshot_trigger(void)
|
||||
}
|
||||
|
||||
// Calc data now since we're not event driven
|
||||
if(bdshot_recv_mask != 0x0) {
|
||||
if (bdshot_recv_mask != 0x0) {
|
||||
up_bdshot_erpm();
|
||||
bdshot_recv_mask = 0x0;
|
||||
}
|
||||
|
||||
@@ -152,6 +152,12 @@ int up_dshot_init(uint32_t channel_mask, unsigned dshot_pwm_freq, bool enable_bi
|
||||
return ret_val == OK ? channels_init_mask : ret_val;
|
||||
}
|
||||
|
||||
int up_bdshot_get_erpm(uint8_t channel, int *erpm)
|
||||
{
|
||||
// Not implemented
|
||||
return -1;
|
||||
}
|
||||
|
||||
void up_bdshot_status(void)
|
||||
{
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user