more code cleanup

This commit is contained in:
Ruixiang Du
2020-06-17 11:38:29 +08:00
parent 44b89ee5f9
commit 2b9f7cc616
45 changed files with 580 additions and 129 deletions

View File

@@ -58,7 +58,7 @@ short CursorColor(int fg)
}
} // namespace
namespace wescore
namespace westonrobot
{
void NColors::InitColors()
{
@@ -111,4 +111,4 @@ void NColors::WUnsetColor(WINDOW *win, int fg, int bg)
if (IsBold(fg))
wattroff(win, A_BOLD);
}
} // namespace wescore
} // namespace westonrobot

View File

@@ -9,7 +9,7 @@
#include "monitor/nshapes.hpp"
namespace wescore
namespace westonrobot
{
void NShapes::DrawRectangle(int tl_y, int tl_x, int br_y, int br_x)
{
@@ -38,4 +38,4 @@ void NShapes::WDrawRectangle(WINDOW *win, int tl_y, int tl_x, int br_y, int br_x
mvwprintw(win, br_y, i, "-");
}
}
} // namespace wescore
} // namespace westonrobot

View File

@@ -111,7 +111,7 @@ struct StopWatch
};
} // namespace
namespace wescore
namespace westonrobot
{
ScoutMonitor::ScoutMonitor()
{
@@ -655,4 +655,4 @@ void ScoutMonitor::ShowMotorInfo(int y, int x, double cur, int rpm, int temp, bo
std::string temp_str = "TMP:" + ConvertFloatToString(temp, 0);
mvwprintw(body_info_win_, y + 3, col_title, temp_str.c_str());
}
} // namespace wescore
} // namespace westonrobot