Version: Add MAVLink git hash to available versions

This commit is contained in:
Lorenz Meier
2017-06-03 11:44:45 +02:00
parent ea223505ae
commit 990ae93cae
2 changed files with 10 additions and 0 deletions

View File

@@ -254,6 +254,11 @@ uint64_t px4_firmware_version_binary(void)
return PX4_GIT_VERSION_BINARY;
}
uint64_t px4_mavlink_lib_version_binary(void)
{
return MAVLINK_LIB_GIT_VERSION_BINARY;
}
uint64_t px4_os_version_binary(void)
{
//TODO: get NuttX version via git tag

View File

@@ -123,6 +123,11 @@ __EXPORT const char *px4_firmware_version_string(void);
*/
__EXPORT uint64_t px4_firmware_version_binary(void);
/**
* MAVLink lib version in binary form (first part of the git tag)
*/
__EXPORT uint64_t px4_mavlink_lib_version_binary(void);
/**
* Operating system version in binary form (first part of the git tag)
* @return this is not available on all OSes and can return 0