Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
ahiuchingau committed Dec 11, 2023
1 parent 943e209 commit ac8662d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,8 @@ class MotionController {
S15Q16_RADIX));
}

void set_idle_holdoff(const can::messages::SetGripperJawHoldoffRequest& can_msg) {
void set_idle_holdoff(
const can::messages::SetGripperJawHoldoffRequest& can_msg) {
error_config.update_idle_holdoff_ticks(can_msg.holdoff_ticks);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,7 @@ class MotionControllerMessageHandler {
void handle(const can::messages::GripperJawHoldoffRequest& m) {
auto ticks = controller.get_idle_holdoff();
can::messages::GripperJawHoldoffResponse msg{
.message_index = m.message_index,
.holdoff_ticks = ticks};
.message_index = m.message_index, .holdoff_ticks = ticks};
can_client.send_can_message(can::ids::NodeId::host, msg);
}

Expand Down
3 changes: 2 additions & 1 deletion include/motor-control/core/tasks/messages.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ using BrushedMotionControllerTaskMessage = std::variant<
can::messages::ReadLimitSwitchRequest, can::messages::MotorPositionRequest,
can::messages::SetGripperErrorToleranceRequest,
can::messages::GetMotorUsageRequest, can::messages::GripperJawStateRequest,
can::messages::SetGripperJawHoldoffRequest, can::messages::GripperJawHoldoffRequest>;
can::messages::SetGripperJawHoldoffRequest,
can::messages::GripperJawHoldoffRequest>;

using BrushedMoveGroupTaskMessage = std::variant<
std::monostate, can::messages::ClearAllMoveGroupsRequest,
Expand Down

0 comments on commit ac8662d

Please sign in to comment.