Skip to content

Feature ps2 dance mat#17

Open
Official12345 wants to merge 8 commits into
releasefrom
feature-PS2_dance_mat
Open

Feature ps2 dance mat#17
Official12345 wants to merge 8 commits into
releasefrom
feature-PS2_dance_mat

Conversation

@Official12345
Copy link
Copy Markdown

working dance mat controller

Copy link
Copy Markdown

@streefje1996 streefje1996 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Missing doxygen comments
  • does the ps2 mat have the same interface as a ps2 controller, maybe you could change it to an ps2 controller interface that supports both controller and mat

Copy link
Copy Markdown

@streefje1996 streefje1996 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • tabs on the doxygen code is not aligned well
  • missing r2d2 namespace
  • build errors

Comment thread code/headers/ps2_bus.hpp Outdated

#include <hwlib.hpp>
#include <array>
/*
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing r2d2 namepace

Comment thread code/headers/ps2_bus.hpp Outdated
public:
/*
* Constructor of the ps2 bus.
* @param attention
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

params miss explenation

Comment thread code/headers/ps2_mat.hpp Outdated
/*
*Struct that contains the states of all buttons.
*/
struct button_states_s {
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing r2d2 namespace

Comment thread code/main.cpp Outdated

auto test = r2d2::manual_control::steering_wheel_controller_c(
1, button1, button2, button3, button4, wheel, pedals);
//const uint8_t poll_command[8] = {0x01, 0x42, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove old code

Comment thread code/main.cpp Outdated
r2d2::manual_control::module_c controller(comm, test);
ps2_bus_c bus(ss, sclk, miso, mosi, ack);
ps2_controller_c controller(bus);
//std::array<uint8_t, 9> data = mat.read_write(poll_command, 8);
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove old code

Copy link
Copy Markdown

@streefje1996 streefje1996 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it might be worth/preference to put an extra tab on comments so they align with the variables/functions.
code looks good

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants