Skip to content

Commit

Permalink
Actually compile Synapse, fix array initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterBowman committed Aug 26, 2023
1 parent 4d7b658 commit 9b9159b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion libraries/DextraRawControlBoardLib/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ if(ENABLE_DextraRawControlBoardLib)
IPositionControlRawImpl.cpp
IPositionDirectRawImpl.cpp
LogComponent.hpp
LogComponent.cpp)
LogComponent.cpp
Synapse.hpp
Synapse.cpp)

target_link_libraries(DextraRawControlBoardLib PUBLIC YARP::YARP_dev
PRIVATE YARP::YARP_os)
Expand Down
4 changes: 2 additions & 2 deletions libraries/DextraRawControlBoardLib/Synapse.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ constexpr int FLOAT_SIZE = sizeof(Synapse::setpoint_t);
constexpr int MESSAGE_SIZE = (FLOAT_SIZE + 1) * Synapse::DATA_POINTS;
constexpr unsigned char FINGER_ADDRESS[Synapse::DATA_POINTS] = {0x01, 0x02, 0x03, 0x04, 0x05, 0x06};

const std::array<std::pair<Synapse::setpoint_t, Synapse::setpoint_t>, Synapse::DATA_POINTS> Synapse::LIMITS = {
const std::array<std::pair<Synapse::setpoint_t, Synapse::setpoint_t>, Synapse::DATA_POINTS> Synapse::LIMITS = {{
{0.0f, 90.0f},
{0.0f, 10.0f},
{0.0f, 20.0f},
{0.0f, 20.0f},
{0.0f, 20.0f},
{0.0f, 20.0f}
};
}};

const std::array<std::string, Synapse::DATA_POINTS> Synapse::LABELS = {
"HandAbductor",
Expand Down

0 comments on commit 9b9159b

Please sign in to comment.