mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-02 04:51:35 +08: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;
|
int rv = -1;
|
||||||
|
|
||||||
if (UavcanNode::instance()) {
|
if (UavcanNode::instance()) {
|
||||||
if (!std::strncmp(px4_board_name(), "PX4FMU_V1", 9)) {
|
if (!std::strncmp(px4_board_name(), "PX4FMU_V2", 9)) {
|
||||||
hwver.major = 1;
|
|
||||||
|
|
||||||
} else if (!std::strncmp(px4_board_name(), "PX4FMU_V2", 9)) {
|
|
||||||
hwver.major = 2;
|
hwver.major = 2;
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user