mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-24 13:36:37 +08:00
Differential Rover: PR fixes
This commit is contained in:
committed by
Per Frivik
parent
056e41af8c
commit
3de5c609a4
@@ -226,7 +226,7 @@ int GZBridge::init()
|
||||
return PX4_ERROR;
|
||||
}
|
||||
|
||||
if (!_mixing_interface_motor.init(_model_name)) {
|
||||
if (!_mixing_interface_wheel.init(_model_name)) {
|
||||
PX4_ERR("failed to init motor output");
|
||||
return PX4_ERROR;
|
||||
}
|
||||
@@ -729,7 +729,7 @@ void GZBridge::Run()
|
||||
|
||||
_mixing_interface_esc.stop();
|
||||
_mixing_interface_servo.stop();
|
||||
_mixing_interface_motor.stop();
|
||||
_mixing_interface_wheel.stop();
|
||||
|
||||
exit_and_cleanup();
|
||||
return;
|
||||
@@ -745,7 +745,7 @@ void GZBridge::Run()
|
||||
|
||||
_mixing_interface_esc.updateParams();
|
||||
_mixing_interface_servo.updateParams();
|
||||
_mixing_interface_motor.updateParams();
|
||||
_mixing_interface_wheel.updateParams();
|
||||
}
|
||||
|
||||
ScheduleDelayed(10_ms);
|
||||
@@ -761,8 +761,8 @@ int GZBridge::print_status()
|
||||
PX4_INFO_RAW("Servo outputs:\n");
|
||||
_mixing_interface_servo.mixingOutput().printStatus();
|
||||
|
||||
PX4_INFO_RAW("Motor outputs:\n");
|
||||
_mixing_interface_motor.mixingOutput().printStatus();
|
||||
PX4_INFO_RAW("Wheel outputs:\n");
|
||||
_mixing_interface_wheel.mixingOutput().printStatus();
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user