mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-22 09:28:58 +00:00
uavcan:Removed PX4FMUv1 support
This commit is contained in:
committed by
Daniel Agar
parent
34cd7563fb
commit
5782e5c5fd
@@ -168,10 +168,7 @@ int UavcanNode::getHardwareVersion(uavcan::protocol::HardwareVersion &hwver)
|
||||
int rv = -1;
|
||||
|
||||
if (UavcanNode::instance()) {
|
||||
if (!std::strncmp(px4_board_name(), "PX4FMU_V1", 9)) {
|
||||
hwver.major = 1;
|
||||
|
||||
} else if (!std::strncmp(px4_board_name(), "PX4FMU_V2", 9)) {
|
||||
if (!std::strncmp(px4_board_name(), "PX4FMU_V2", 9)) {
|
||||
hwver.major = 2;
|
||||
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user