AP_GPS: uniform naming

This commit is contained in:
Eugene Shamaev 2018-03-11 12:20:23 +02:00 committed by Tom Pittenger
parent 13954f97cf
commit 9985d4a937

View File

@ -437,14 +437,14 @@ void AP_GPS::detect_instance(uint8_t instance)
continue;
}
uint8_t gps_node = uavcan->find_gps_without_listener();
uint8_t gps_node = ap_uavcan->find_gps_without_listener();
if (gps_node == UINT8_MAX) {
continue;
}
new_gps = new AP_GPS_UAVCAN(*this, state[instance], nullptr);
((AP_GPS_UAVCAN*) new_gps)->set_uavcan_manager(i);
if (uavcan->register_gps_listener_to_node(new_gps, gps_node)) {
if (ap_uavcan->register_gps_listener_to_node(new_gps, gps_node)) {
if (AP_BoardConfig_CAN::get_can_debug() >= 2) {
printf("AP_GPS_UAVCAN registered\n\r");
}