forked from Archive/PX4-Autopilot
Compare commits
1 Commits
main
...
pr-delete-
Author | SHA1 | Date |
---|---|---|
Silvan Fuhrer | 676fc0a83e |
|
@ -24,8 +24,6 @@ param set-default CBRK_SUPPLY_CHK 894281
|
|||
# - without safety switch
|
||||
param set-default CBRK_IO_SAFETY 22027
|
||||
|
||||
param set-default BAT_N_CELLS 3
|
||||
|
||||
param set-default SIH_T_MAX 6
|
||||
param set-default SIH_MASS 0.3
|
||||
param set-default SIH_IXX 0.00402
|
||||
|
|
|
@ -33,8 +33,6 @@ param set-default CBRK_SUPPLY_CHK 894281
|
|||
# - without safety switch
|
||||
param set-default CBRK_IO_SAFETY 22027
|
||||
|
||||
param set-default BAT_N_CELLS 3
|
||||
|
||||
param set-default SIH_T_MAX 2
|
||||
param set-default SIH_Q_MAX 0.0165
|
||||
param set-default SIH_MASS 0.2
|
||||
|
|
|
@ -44,8 +44,6 @@ param set-default CBRK_SUPPLY_CHK 894281
|
|||
# - without safety switch
|
||||
param set-default CBRK_IO_SAFETY 22027
|
||||
|
||||
param set-default BAT_N_CELLS 3
|
||||
|
||||
param set SIH_T_MAX 6
|
||||
param set SIH_MASS 0.3
|
||||
param set SIH_IXX 0.00402
|
||||
|
|
|
@ -62,8 +62,6 @@ param set-default CBRK_SUPPLY_CHK 894281
|
|||
# - without safety switch
|
||||
param set-default CBRK_IO_SAFETY 22027
|
||||
|
||||
param set-default BAT_N_CELLS 3
|
||||
|
||||
param set SIH_T_MAX 2.0
|
||||
param set SIH_Q_MAX 0.0165
|
||||
param set SIH_MASS 0.2
|
||||
|
|
|
@ -13,7 +13,6 @@ param set-default SENS_EN_THERMAL 1 # Enable heater
|
|||
param set-default SENS_TEMP_ID 2359314 # Heated IMU ID
|
||||
|
||||
# Battery scaling
|
||||
param set-default BAT_N_CELLS 4
|
||||
param set-default BAT1_N_CELLS 4
|
||||
|
||||
param set-default BAT1_V_DIV 15.51
|
||||
|
|
|
@ -240,7 +240,7 @@ int Batmon::get_batmon_startup_info()
|
|||
_cell_count = math::min((uint8_t)num_cells, (uint8_t)MAX_CELL_COUNT);
|
||||
|
||||
int32_t _num_cells = num_cells;
|
||||
param_set(param_find("BAT_N_CELLS"), &_num_cells);
|
||||
param_set(param_find("BAT1_N_CELLS"), &_num_cells);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
|
|
@ -1,70 +0,0 @@
|
|||
/****************************************************************************
|
||||
*
|
||||
* Copyright (c) 2012-2019 PX4 Development Team. All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions
|
||||
* are met:
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above copyright
|
||||
* notice, this list of conditions and the following disclaimer.
|
||||
* 2. Redistributions in binary form must reproduce the above copyright
|
||||
* notice, this list of conditions and the following disclaimer in
|
||||
* the documentation and/or other materials provided with the
|
||||
* distribution.
|
||||
* 3. Neither the name PX4 nor the names of its contributors may be
|
||||
* used to endorse or promote products derived from this software
|
||||
* without specific prior written permission.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
||||
* FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
||||
* COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
||||
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
||||
* BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
||||
* OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
||||
* AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
|
||||
* ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
/**
|
||||
* @file battery_params_deprecated.c
|
||||
*
|
||||
* Defines the deprcated single battery configuration which are temporarily kept for backwards compatibility with QGC.
|
||||
*/
|
||||
|
||||
/**
|
||||
* This parameter is deprecated. Please use BAT1_V_EMPTY instead.
|
||||
*
|
||||
* @group Battery Calibration
|
||||
* @category system
|
||||
*/
|
||||
PARAM_DEFINE_FLOAT(BAT_V_EMPTY, 3.6f);
|
||||
|
||||
/**
|
||||
* This parameter is deprecated. Please use BAT1_V_CHARGED instead.
|
||||
*
|
||||
* @group Battery Calibration
|
||||
* @category system
|
||||
*/
|
||||
PARAM_DEFINE_FLOAT(BAT_V_CHARGED, 4.05f);
|
||||
|
||||
/**
|
||||
* This parameter is deprecated. Please use BAT1_V_LOAD_DROP instead.
|
||||
*
|
||||
* @group Battery Calibration
|
||||
* @category system
|
||||
*/
|
||||
PARAM_DEFINE_FLOAT(BAT_V_LOAD_DROP, 0.3f);
|
||||
|
||||
/**
|
||||
* This parameter is deprecated. Please use BAT1_N_CELLS instead.
|
||||
*
|
||||
* @group Battery Calibration
|
||||
* @category system
|
||||
*/
|
||||
PARAM_DEFINE_INT32(BAT_N_CELLS, 3);
|
|
@ -292,10 +292,6 @@ MavlinkParametersManager::send()
|
|||
param_find("BAT_CRIT_THR");
|
||||
param_find("BAT_EMERGEN_THR");
|
||||
param_find("BAT_LOW_THR");
|
||||
param_find("BAT_N_CELLS"); // deprecated
|
||||
param_find("BAT_V_CHARGED"); // deprecated
|
||||
param_find("BAT_V_EMPTY"); // deprecated
|
||||
param_find("BAT_V_LOAD_DROP"); // deprecated
|
||||
param_find("CAL_ACC0_ID");
|
||||
param_find("CAL_GYRO0_ID");
|
||||
param_find("CAL_MAG0_ID");
|
||||
|
|
Loading…
Reference in New Issue