Parameter update - Rename variables in drivers

using parameter_update.py script
This commit is contained in:
bresch
2019-04-03 15:38:50 +02:00
committed by Matthias Grob
parent aa8edbc2ba
commit ec5da55107
5 changed files with 24 additions and 24 deletions
+2 -2
View File
@@ -117,7 +117,7 @@ OSDatxxxx::init()
}
// clear the screen
int num_rows = _param_atxxxx_cfg.get() == 1 ? OSD_NUM_ROWS_NTSC : OSD_NUM_ROWS_PAL;
int num_rows = _param_osd_atxxxx_cfg.get() == 1 ? OSD_NUM_ROWS_NTSC : OSD_NUM_ROWS_PAL;
for (int i = 0; i < OSD_CHARS_PER_ROW; i++) {
for (int j = 0; j < num_rows; j++) {
@@ -185,7 +185,7 @@ OSDatxxxx::init_osd()
int ret = PX4_OK;
uint8_t data = OSD_ZERO_BYTE;
if (_param_atxxxx_cfg.get() == 2) {
if (_param_osd_atxxxx_cfg.get() == 2) {
data |= OSD_PAL_TX_MODE;
}
+1 -1
View File
@@ -176,6 +176,6 @@ private:
uint8_t _nav_state{0};
DEFINE_PARAMETERS(
(ParamInt<px4::params::OSD_ATXXXX_CFG>) _param_atxxxx_cfg
(ParamInt<px4::params::OSD_ATXXXX_CFG>) _param_osd_atxxxx_cfg
)
};