Skip to content

Changing the Learn and Repeat to Record and Repaly in Braccio_Record_Peplay project #79

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 14, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions examples/Braccio_Record_and_Replay/AppState.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const char * btnm_map[] = { "RECORD", "\n", "REPLAY", "\n", "ZERO_POSITION", "\n
static float sample_buf[SAMPLE_BUF_SIZE];
static int sample_cnt;

extern LearnAndRepeatApp app;
extern RecordAndReplayApp app;

/**************************************************************************************
* FUNCTION DEFINITION
Expand Down Expand Up @@ -313,10 +313,10 @@ void ZeroState::onExit()
}

/**************************************************************************************
* LearnAndRepeatApp
* RecordAndReplayApp
**************************************************************************************/

void LearnAndRepeatApp::enableButtons()
void RecordAndReplayApp::enableButtons()
{
/* Enable buttons once init is complete. */
lv_btnmatrix_clear_btn_ctrl(btnm, 0, LV_BTNMATRIX_CTRL_DISABLED);
Expand Down
10 changes: 5 additions & 5 deletions examples/Braccio_Record_and_Replay/AppState.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef LEARN_AND_REPEAT_APP_STATE_H_
#define LEARN_AND_REPEAT_APP_STATE_H_
#ifndef RECORD_AND_REPLAY_APP_STATE_H_
#define RECORD_AND_REPLAY_APP_STATE_H_

/**************************************************************************************
* INCLUDE
Expand Down Expand Up @@ -114,10 +114,10 @@ class ZeroState : public State
virtual State * handle_OnTimerTick() override;
};

class LearnAndRepeatApp
class RecordAndReplayApp
{
public:
LearnAndRepeatApp()
RecordAndReplayApp()
: _state{nullptr}
, _mtx{}
{ }
Expand Down Expand Up @@ -151,4 +151,4 @@ class LearnAndRepeatApp
rtos::Mutex _mtx;
};

#endif /* LEARN_AND_REPEAT_APP_STATE_H_ */
#endif /* RECORD_AND_REPLAY_APP_STATE_H_ */
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* GLOBAL VARIABLES
**************************************************************************************/

LearnAndRepeatApp app;
RecordAndReplayApp app;

/**************************************************************************************
* SETUP/LOOP
Expand Down