Skip to content

Commit

Permalink
build fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pmoegenburg committed Apr 30, 2024
1 parent 070ad67 commit a553c8b
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 6 deletions.
4 changes: 4 additions & 0 deletions include/motor-control/core/stepper_motor/motor.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,11 @@ using namespace freertos_message_queue;

template <lms::MotorMechanicalConfig MEConfig>
struct Motor {
#ifdef USE_SENSOR_MOVE
using GenericQueue = FreeRTOSMessageQueue<SensorSyncMove>;
#else
using GenericQueue = FreeRTOSMessageQueue<Move>;
#endif
using UpdatePositionQueue = FreeRTOSMessageQueue<
can::messages::UpdateMotorPositionEstimationRequest>;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,26 +49,46 @@ struct Empty {

template <class SensorClient>
struct SensorClientHelper {
inline static void send_to_pressure_sensor_queue(
inline static void send_to_pressure_sensor_queue_rear(
SensorClient& sensor_client,
can::messages::BindSensorOutputRequest& m) {
sensor_client.send_pressure_sensor_queue_rear_isr(m);
}
inline static void send_to_capacitive_sensor_queue(
inline static void send_to_pressure_sensor_queue_front(
SensorClient& sensor_client,
can::messages::BindSensorOutputRequest& m) {
sensor_client.send_pressure_sensor_queue_front_isr(m);
}
inline static void send_to_capacitive_sensor_queue_rear(
SensorClient& sensor_client,
can::messages::BindSensorOutputRequest& m) {
sensor_client.send_capacitive_sensor_queue_rear_isr(m);
}
inline static void send_to_capacitive_sensor_queue_front(
SensorClient& sensor_client,
can::messages::BindSensorOutputRequest& m) {
sensor_client.send_capacitive_sensor_queue_front_isr(m);
}
};

template <>
struct SensorClientHelper<Empty> {
inline static void send_to_pressure_sensor_queue(
inline static void send_to_pressure_sensor_queue_rear(
Empty& sensor_client, can::messages::BindSensorOutputRequest& m) {
std::ignore = sensor_client;
std::ignore = m;
}
inline static void send_to_pressure_sensor_queue_front(
Empty& sensor_client, can::messages::BindSensorOutputRequest& m) {
std::ignore = sensor_client;
std::ignore = m;
}
inline static void send_to_capacitive_sensor_queue_rear(
Empty& sensor_client, can::messages::BindSensorOutputRequest& m) {
std::ignore = sensor_client;
std::ignore = m;
}
inline static void send_to_capacitive_sensor_queue(
inline static void send_to_capacitive_sensor_queue_front(
Empty& sensor_client, can::messages::BindSensorOutputRequest& m) {
std::ignore = sensor_client;
std::ignore = m;
Expand Down
4 changes: 2 additions & 2 deletions pipettes/core/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ function(target_pipettes_core_multi TARGET REVISION)
target_pipettes_core_common(${TARGET} ${REVISION})
target_compile_definitions(${TARGET} PUBLIC PIPETTE_TYPE_DEFINE=EIGHT_CHANNEL)
if(${USE_SENSOR_MOVE})
target_compile_definitions(${TARGET} PUBLIC P_BUFF_SIZE=1800)
target_compile_definitions(${TARGET} PUBLIC P_BUFF_SIZE=1700)
target_compile_definitions(${TARGET} PUBLIC USE_TWO_BUFFERS=true)
endif()
target_sources(${TARGET} PUBLIC
Expand All @@ -39,7 +39,7 @@ function(target_pipettes_core_96 TARGET REVISION)
target_pipettes_core_common(${TARGET} ${REVISION})
target_compile_definitions(${TARGET} PUBLIC PIPETTE_TYPE_DEFINE=NINETY_SIX_CHANNEL)
if(${USE_SENSOR_MOVE})
target_compile_definitions(${TARGET} PUBLIC P_BUFF_SIZE=900)
target_compile_definitions(${TARGET} PUBLIC P_BUFF_SIZE=800)
target_compile_definitions(${TARGET} PUBLIC USE_TWO_BUFFERS=true)
endif()
target_sources(${TARGET} PUBLIC
Expand Down

0 comments on commit a553c8b

Please sign in to comment.