mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-16 14:53:34 +08:00
Fix MAVLink reporting of Firmware version, implement dev / release version reporting
This commit is contained in:
@@ -1222,8 +1222,8 @@ void Mavlink::send_autopilot_capabilites()
|
||||
msg.capabilities |= MAV_PROTOCOL_CAPABILITY_SET_ATTITUDE_TARGET;
|
||||
msg.capabilities |= MAV_PROTOCOL_CAPABILITY_SET_POSITION_TARGET_LOCAL_NED;
|
||||
msg.capabilities |= MAV_PROTOCOL_CAPABILITY_SET_ACTUATOR_TARGET;
|
||||
msg.flight_sw_version = version_tag_to_number(px4_git_version);
|
||||
msg.middleware_sw_version = version_tag_to_number(px4_git_version);
|
||||
msg.flight_sw_version = version_tag_to_number(px4_git_tag);
|
||||
msg.middleware_sw_version = version_tag_to_number(px4_git_tag);
|
||||
msg.os_sw_version = version_tag_to_number(os_git_tag);
|
||||
msg.board_version = px4_board_version;
|
||||
memcpy(&msg.flight_custom_version, &px4_git_version_binary, sizeof(msg.flight_custom_version));
|
||||
|
||||
@@ -125,6 +125,7 @@ PARAM_DEFINE_FLOAT(BAT_V_LOAD_DROP, 0.3f);
|
||||
*
|
||||
* @group Battery Calibration
|
||||
* @unit S
|
||||
* @value 0 Unconfigured
|
||||
* @value 2 2S Battery
|
||||
* @value 3 3S Battery
|
||||
* @value 4 4S Battery
|
||||
@@ -141,7 +142,7 @@ PARAM_DEFINE_FLOAT(BAT_V_LOAD_DROP, 0.3f);
|
||||
* @value 15 15S Battery
|
||||
* @value 16 16S Battery
|
||||
*/
|
||||
PARAM_DEFINE_INT32(BAT_N_CELLS, 3);
|
||||
PARAM_DEFINE_INT32(BAT_N_CELLS, 0);
|
||||
|
||||
/**
|
||||
* Battery capacity.
|
||||
|
||||
Reference in New Issue
Block a user