mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-20 07:33:34 +08:00
ver:Add support for HW versioning
1) Add hwtypecmp command to allow rc to further enumerate PX4FMU_V2
for sub types of 'V2' -FMUv2 'V2M' PixhawkMini, 'V30' Cube
2) Extend hw to report to display
HW type
HW version
HW revision
This commit is contained in:
committed by
Lorenz Meier
parent
afb01d015e
commit
4832ad3191
@@ -66,6 +66,30 @@ static inline const char *px4_board_name(void)
|
||||
return BOARD_NAME;
|
||||
}
|
||||
|
||||
/**
|
||||
* get the board sub type
|
||||
*/
|
||||
static inline const char *px4_board_sub_type(void)
|
||||
{
|
||||
return board_get_hw_type_name();
|
||||
}
|
||||
|
||||
/**
|
||||
* get the board HW version
|
||||
*/
|
||||
static inline int px4_board_hw_version(void)
|
||||
{
|
||||
return board_get_hw_version();
|
||||
}
|
||||
|
||||
/**
|
||||
* get the board HW revision
|
||||
*/
|
||||
static inline int px4_board_hw_revision(void)
|
||||
{
|
||||
return board_get_hw_revision();
|
||||
}
|
||||
|
||||
/**
|
||||
* get the build URI (used for crash logging)
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user