The board now works as expected but without idle animations
This commit is contained in:
@@ -114,9 +114,6 @@ void Board<BOARD_DIMS>::ToStackString(String &stringBuffer) const{
|
||||
for(uint32_t i = 0; i < BOARD_DIMS.x * BOARD_DIMS.y; i++){
|
||||
stringBuffer += "," + String(linearizedBoard[i]);
|
||||
}
|
||||
// TODO: Delete this before merging into develop
|
||||
this->PrintEntireBoard();
|
||||
|
||||
}
|
||||
|
||||
template <const V3D &BOARD_DIMS>
|
||||
@@ -184,8 +181,6 @@ uint32_t Board<BOARD_DIMS>::SliceBoard(const V3D &column, BOARD_TYPES::Cube ** s
|
||||
|
||||
template <const V3D &BOARD_DIMS>
|
||||
void Board<BOARD_DIMS>::PrintEntireBoard() const{
|
||||
Serial.println("begin");
|
||||
|
||||
for(uint32_t x = 0; x < BOARD_DIMS.x; x++){
|
||||
for(uint32_t y = 0; y < BOARD_DIMS.y; y++){
|
||||
for(uint32_t z = 0; z < BOARD_DIMS.z; z++){
|
||||
|
||||
@@ -149,15 +149,12 @@ void BoardManager<BOARD_DIMS>::SetColumnColors(const V3D &column, const V3D *col
|
||||
|
||||
// create a cube pointer buffer and store a board slice into it
|
||||
BOARD_TYPES::Cube * slicedBoard[columnHeight];
|
||||
Serial.println("moments before slicing");
|
||||
uint32_t sliceLength{this->board.SliceBoard(column, slicedBoard)};
|
||||
|
||||
Serial.println("setting colors");
|
||||
uint32_t maxIndex{std::min(numColors, columnHeight)};
|
||||
for(uint32_t i = 0; i < columnHeight; i++){
|
||||
slicedBoard[i]->color = color[i];
|
||||
}
|
||||
Serial.println("End of SetColumnColors");
|
||||
}
|
||||
|
||||
template <const V3D &BOARD_DIMS>
|
||||
|
||||
@@ -96,7 +96,6 @@ void parseData(Message<SERIAL_CHAR_LENGTH, SERIAL_ARG_LENGTH> &message){
|
||||
uint32_t command = args[0];
|
||||
switch(command){
|
||||
case Commands::BoardState:
|
||||
GlobalPrint::Println("Test");
|
||||
printBoardState();
|
||||
break;
|
||||
case Commands::PING:
|
||||
@@ -156,7 +155,7 @@ void UpdateBoard(void * params){
|
||||
boardManager.ClearBoardChanged();
|
||||
}
|
||||
|
||||
// boardManager.Update();
|
||||
boardManager.Update();
|
||||
|
||||
boardStateTimer += updateTickRate;
|
||||
vTaskDelay(updateTickRate.count());
|
||||
|
||||
Reference in New Issue
Block a user