Parameter update - Rename variables in modules/events

using parameter_update.py script
This commit is contained in:
bresch
2019-03-20 11:22:15 +01:00
committed by Matthias Grob
parent 2ca8ddd8af
commit c6e7c0fa5d
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -70,11 +70,11 @@ int SendEvent::task_spawn(int argc, char *argv[])
SendEvent::SendEvent() : ModuleParams(nullptr) SendEvent::SendEvent() : ModuleParams(nullptr)
{ {
if (_param_status_display.get()) { if (_param_ev_tsk_stat_dis.get()) {
_status_display = new status::StatusDisplay(_subscriber_handler); _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); _rc_loss_alarm = new rc_loss::RC_Loss_Alarm(_subscriber_handler);
} }
} }
+2 -2
View File
@@ -138,10 +138,10 @@ private:
/** @note Declare local parameters using defined parameters. */ /** @note Declare local parameters using defined parameters. */
DEFINE_PARAMETERS( DEFINE_PARAMETERS(
/** @var _param_status_display Parameter to enable/disable the LED status display. */ /** @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. */ /** @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
) )
}; };