Skip to content

Commit 0204f33

Browse files
authored
fix packrate in examples (#51)
Signed-off-by: Michael Anderson <anderson@mbari.org>
1 parent 12276ac commit 0204f33

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

buoy_api_cpp/examples/torque_controller.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ PBTorqueController::PBTorqueController(const std::string & node_name)
2525
policy_.reset(new PBTorqueControlPolicy());
2626
set_params();
2727

28-
set_pc_pack_rate_param();
28+
set_pc_pack_rate();
2929
}
3030

3131
void PBTorqueController::power_callback(const buoy_interfaces::msg::PCRecord & data)

buoy_api_py/buoy_api/examples/bias_damping.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def __init__(self):
6060
self.policy = NLBiasDampingPolicy()
6161
self.set_params()
6262
print(self.policy)
63-
self.set_sc_pack_rate_param()
63+
self.set_sc_pack_rate(blocking=False)
6464

6565
def set_params(self):
6666
self.declare_parameter('bias_damping.position_breaks', self.policy.breaks)

buoy_api_py/buoy_api/examples/torque_controller.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def __init__(self):
6666
self.policy = PBTorqueControlPolicy()
6767
self.set_params()
6868

69-
self.set_pc_pack_rate_param()
69+
self.set_pc_pack_rate(blocking=False)
7070

7171
def power_callback(self, data):
7272
wind_curr = self.policy.winding_current_target(data.rpm, data.scale, data.retract)

0 commit comments

Comments
 (0)