mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-02 03:49:12 +08:00
Hotfix: Make voltage scaling for standalone default
This commit is contained in:
@@ -30,6 +30,7 @@ fi
|
|||||||
# MAV_TYPE 2 = quadrotor
|
# MAV_TYPE 2 = quadrotor
|
||||||
#
|
#
|
||||||
param set MAV_TYPE 2
|
param set MAV_TYPE 2
|
||||||
|
param set BAT_V_SCALING 0.008381
|
||||||
|
|
||||||
#
|
#
|
||||||
# Start MAVLink
|
# Start MAVLink
|
||||||
|
|||||||
@@ -30,6 +30,7 @@ fi
|
|||||||
# MAV_TYPE 2 = quadrotor
|
# MAV_TYPE 2 = quadrotor
|
||||||
#
|
#
|
||||||
param set MAV_TYPE 2
|
param set MAV_TYPE 2
|
||||||
|
param set BAT_V_SCALING 0.008381
|
||||||
|
|
||||||
#
|
#
|
||||||
# Start MAVLink and MAVLink Onboard (PX4FLOW Sensor)
|
# Start MAVLink and MAVLink Onboard (PX4FLOW Sensor)
|
||||||
|
|||||||
@@ -174,7 +174,8 @@ PARAM_DEFINE_FLOAT(BAT_V_SCALING, 0.0082f);
|
|||||||
/* default is conversion factor for the PX4IO / PX4IOAR board, the factor for PX4FMU standalone is different */
|
/* default is conversion factor for the PX4IO / PX4IOAR board, the factor for PX4FMU standalone is different */
|
||||||
/* PX4IOAR: 0.00838095238 */
|
/* PX4IOAR: 0.00838095238 */
|
||||||
/* FMU standalone: 1/(10 / (47+10)) * (3.3 / 4095) = 0.00459340659 */
|
/* FMU standalone: 1/(10 / (47+10)) * (3.3 / 4095) = 0.00459340659 */
|
||||||
PARAM_DEFINE_FLOAT(BAT_V_SCALING, (3.3f * 52.0f / 5.0f / 4095.0f));
|
/* FMU with PX4IOAR: (3.3f * 52.0f / 5.0f / 4095.0f) */
|
||||||
|
PARAM_DEFINE_FLOAT(BAT_V_SCALING, 0.00459340659f);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
PARAM_DEFINE_INT32(RC_MAP_ROLL, 1);
|
PARAM_DEFINE_INT32(RC_MAP_ROLL, 1);
|
||||||
|
|||||||
Reference in New Issue
Block a user