mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
uavcan_main: replaced printf messages with PX4_INFO
Signed-off-by: Claudio Micheli <claudio@auterion.com>
This commit is contained in:
parent
1e04d718f6
commit
75c336c00c
@ -89,9 +89,6 @@ private:
|
||||
*/
|
||||
uint8_t check_escs_status();
|
||||
|
||||
|
||||
|
||||
|
||||
static constexpr unsigned MAX_RATE_HZ = 200; ///< XXX make this configurable
|
||||
static constexpr unsigned ESC_STATUS_UPDATE_RATE_HZ = 10;
|
||||
static constexpr unsigned UAVCAN_COMMAND_TRANSFER_PRIORITY = 5; ///< 0..31, inclusive, 0 - highest, 31 - lowest
|
||||
|
||||
@ -919,7 +919,6 @@ int UavcanNode::run()
|
||||
|
||||
new_output = true;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
if (new_output) {
|
||||
@ -994,7 +993,6 @@ int UavcanNode::run()
|
||||
_esc_controller.enable_idle_throttle_when_armed(_idle_throttle_when_armed > 0);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
orb_unsubscribe(params_sub);
|
||||
@ -1125,11 +1123,11 @@ UavcanNode::ioctl(file *filp, int cmd, unsigned long arg)
|
||||
} else {
|
||||
|
||||
_mixers->groups_required(_groups_required);
|
||||
printf("Groups required %d \n", _groups_required);
|
||||
PX4_INFO("Groups required %d", _groups_required);
|
||||
|
||||
_rotor_count = _mixers->get_multirotor_count();
|
||||
_esc_controller.set_rotor_count(_rotor_count);
|
||||
printf("Number of rotors %d \n", _rotor_count);
|
||||
PX4_INFO("Number of rotors %d", _rotor_count);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -1634,7 +1634,6 @@ Commander::run()
|
||||
status_flags.condition_escs_error = false;
|
||||
}
|
||||
|
||||
|
||||
estimator_check(&status_changed);
|
||||
airspeed_use_check();
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user