mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
Parameter update - Rename variables in modules/events
using parameter_update.py script
This commit is contained in:
parent
2ca8ddd8af
commit
c6e7c0fa5d
@ -70,11 +70,11 @@ int SendEvent::task_spawn(int argc, char *argv[])
|
||||
|
||||
SendEvent::SendEvent() : ModuleParams(nullptr)
|
||||
{
|
||||
if (_param_status_display.get()) {
|
||||
if (_param_ev_tsk_stat_dis.get()) {
|
||||
_status_display = new status::StatusDisplay(_subscriber_handler);
|
||||
}
|
||||
|
||||
if (_param_rc_loss.get()) {
|
||||
if (_param_ev_tsk_rc_loss.get()) {
|
||||
_rc_loss_alarm = new rc_loss::RC_Loss_Alarm(_subscriber_handler);
|
||||
}
|
||||
}
|
||||
|
||||
@ -138,10 +138,10 @@ private:
|
||||
/** @note Declare local parameters using defined parameters. */
|
||||
DEFINE_PARAMETERS(
|
||||
/** @var _param_status_display Parameter to enable/disable the LED status display. */
|
||||
(ParamBool<px4::params::EV_TSK_STAT_DIS>) _param_status_display,
|
||||
(ParamBool<px4::params::EV_TSK_STAT_DIS>) _param_ev_tsk_stat_dis,
|
||||
|
||||
/** @var _param_rc_loss The RC comms loss status flag. */
|
||||
(ParamBool<px4::params::EV_TSK_RC_LOSS>) _param_rc_loss
|
||||
(ParamBool<px4::params::EV_TSK_RC_LOSS>) _param_ev_tsk_rc_loss
|
||||
)
|
||||
};
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user