Skip to content

Commit

Permalink
simulator fix
Browse files Browse the repository at this point in the history
  • Loading branch information
pmoegenburg committed May 31, 2024
1 parent 60b7cc1 commit 0e61d34
Showing 1 changed file with 5 additions and 28 deletions.
33 changes: 5 additions & 28 deletions pipettes/simulator/interfaces.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,9 @@ auto linear_motor::get_interrupt(
}

auto linear_motor::get_interrupt_driver(
sim_motor_hardware_iface::SimMotorHardwareIface& hw,
LowThroughputInterruptQueues& queues,
MotorInterruptHandlerType<linear_motor_tasks::QueueClient,
linear_motor_tasks::tmc2130_driver::QueueClient>&
handler)
sim_motor_hardware_iface::SimMotorHardwareIface& hw, MoveQueue& queue,
MotorInterruptHandlerType<linear_motor_tasks::QueueClient>& handler,
UpdatePositionQueue& update_queue)
#ifdef USE_SENSOR_MOVE
-> motor_interrupt_driver::MotorInterruptDriver<
linear_motor_tasks::QueueClient, motor_messages::SensorSyncMove,
Expand All @@ -67,29 +65,8 @@ auto linear_motor::get_interrupt_driver(
linear_motor_tasks::QueueClient, motor_messages::Move,
sim_motor_hardware_iface::SimMotorHardwareIface> {
#endif
return motor_interrupt_driver::MotorInterruptDriver(
queues.plunger_queue, handler, hw, queues.plunger_update_queue);
}

auto linear_motor::get_interrupt_driver(
sim_motor_hardware_iface::SimMotorHardwareIface& hw,
HighThroughputInterruptQueues& queues,
MotorInterruptHandlerType<linear_motor_tasks::QueueClient,
linear_motor_tasks::tmc2160_driver::QueueClient>&
handler)
#ifdef USE_SENSOR_MOVE
-> motor_interrupt_driver::MotorInterruptDriver<
linear_motor_tasks::QueueClient,
motor_messages::SensorSyncMove,
sim_motor_hardware_iface::SimMotorHardwareIface> {
#else
-> motor_interrupt_driver::MotorInterruptDriver<
linear_motor_tasks::QueueClient,
motor_messages::Move,
sim_motor_hardware_iface::SimMotorHardwareIface> {
#endif
return motor_interrupt_driver::MotorInterruptDriver(
queues.plunger_queue, handler, hw, queues.plunger_update_queue);
return motor_interrupt_driver::MotorInterruptDriver(queue, handler, hw,
update_queue);
}

auto linear_motor::get_motor_hardware()
Expand Down

0 comments on commit 0e61d34

Please sign in to comment.