mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-01 02:55:07 +08:00
Parameter update - Rename variables in modules/events
using parameter_update.py script
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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
|
||||||
)
|
)
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user