-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a01f41b
commit ef69ab9
Showing
35 changed files
with
219 additions
and
156 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,7 +27,7 @@ | |
/** | ||
* @brief ConvoyLeader application | ||
* @author Andreas Merkle <[email protected]> | ||
* | ||
* | ||
* @addtogroup Application | ||
* | ||
* @{ | ||
|
@@ -60,14 +60,10 @@ | |
class App | ||
{ | ||
public: | ||
|
||
/** | ||
* Construct the convoy leader application. | ||
*/ | ||
App() : | ||
m_systemStateMachine(), | ||
m_controlInterval(), | ||
m_smpServer(Serial) | ||
App() : m_systemStateMachine(), m_controlInterval(), m_smpServer(Serial) | ||
{ | ||
} | ||
|
||
|
@@ -89,7 +85,6 @@ class App | |
void loop(); | ||
|
||
private: | ||
|
||
/** Differential drive control period in ms. */ | ||
static const uint32_t DIFFERENTIAL_DRIVE_CONTROL_PERIOD = 5U; | ||
|
||
|
@@ -129,8 +124,9 @@ class App | |
*/ | ||
static void positionCallback(const uint8_t* payload, const uint8_t payloadSize); | ||
|
||
App(const App& app); | ||
App& operator=(const App& app); | ||
/* Not allowed. */ | ||
App(const App& app); /**< Copy construction of an instance. */ | ||
App& operator=(const App& app); /**< Assignment of an instance. */ | ||
}; | ||
|
||
/****************************************************************************** | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,7 +27,7 @@ | |
/** | ||
* @brief Error state | ||
* @author Andreas Merkle <[email protected]> | ||
* | ||
* | ||
* @addtogroup Application | ||
* | ||
* @{ | ||
|
@@ -91,21 +91,20 @@ class ErrorState : public IState | |
|
||
/** | ||
* Set error message, which to show on the display. | ||
* | ||
* | ||
* @param[in] msg Error message | ||
*/ | ||
void setErrorMsg(const char* msg); | ||
|
||
protected: | ||
private: | ||
|
||
/** | ||
* The error message string size in bytes, which | ||
* includes the terminating character. | ||
*/ | ||
static const size_t ERROR_MSG_SIZE = 20; | ||
static const size_t ERROR_MSG_SIZE = 20; | ||
|
||
char m_errorMsg[ERROR_MSG_SIZE]; /**< Error message, which to show. */ | ||
char m_errorMsg[ERROR_MSG_SIZE]; /**< Error message, which to show. */ | ||
|
||
/** | ||
* Default constructor. | ||
|
@@ -122,8 +121,9 @@ class ErrorState : public IState | |
{ | ||
} | ||
|
||
ErrorState(const ErrorState& state); | ||
ErrorState& operator=(const ErrorState& state); | ||
/* Not allowed. */ | ||
ErrorState(const ErrorState& state); /**< Copy construction of an instance. */ | ||
ErrorState& operator=(const ErrorState& state); /**< Assignment of an instance. */ | ||
}; | ||
|
||
/****************************************************************************** | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,7 +27,7 @@ | |
/** | ||
* @brief Parameter state | ||
* @author Andreas Merkle <[email protected]> | ||
* | ||
* | ||
* @addtogroup Application | ||
* | ||
* @{ | ||
|
@@ -132,8 +132,9 @@ class ParameterSets | |
*/ | ||
~ParameterSets(); | ||
|
||
ParameterSets(const ParameterSets& set); | ||
ParameterSets& operator=(const ParameterSets& set); | ||
/* Not allowed. */ | ||
ParameterSets(const ParameterSets& set); /**< Copy construction of an instance. */ | ||
ParameterSets& operator=(const ParameterSets& set); /**< Assignment of an instance. */ | ||
}; | ||
|
||
/****************************************************************************** | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,7 +27,7 @@ | |
/** | ||
* @brief Ready state | ||
* @author Andreas Merkle <[email protected]> | ||
* | ||
* | ||
* @addtogroup Application | ||
* | ||
* @{ | ||
|
@@ -116,8 +116,9 @@ class ReadyState : public IState | |
{ | ||
} | ||
|
||
ReadyState(const ReadyState& state); | ||
ReadyState& operator=(const ReadyState& state); | ||
/* Not allowed. */ | ||
ReadyState(const ReadyState& state); /**< Copy construction of an instance. */ | ||
ReadyState& operator=(const ReadyState& state); /**< Assignment of an instance. */ | ||
}; | ||
|
||
/****************************************************************************** | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,7 +27,7 @@ | |
/** | ||
* @brief Release track state | ||
* @author Andreas Merkle <[email protected]> | ||
* | ||
* | ||
* @addtogroup Application | ||
* | ||
* @{ | ||
|
@@ -111,8 +111,9 @@ class ReleaseTrackState : public IState | |
{ | ||
} | ||
|
||
ReleaseTrackState(const ReleaseTrackState& state); | ||
ReleaseTrackState& operator=(const ReleaseTrackState& state); | ||
/* Not allowed. */ | ||
ReleaseTrackState(const ReleaseTrackState& state); /**< Copy construction of an instance. */ | ||
ReleaseTrackState& operator=(const ReleaseTrackState& state); /**< Assignment of an instance. */ | ||
|
||
/** | ||
* Show choosen parameter set on LCD. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,7 +27,7 @@ | |
/** | ||
* @brief Startup state | ||
* @author Andreas Merkle <[email protected]> | ||
* | ||
* | ||
* @addtogroup Application | ||
* | ||
* @{ | ||
|
@@ -110,8 +110,9 @@ class StartupState : public IState | |
{ | ||
} | ||
|
||
StartupState(const StartupState& state); | ||
StartupState& operator=(const StartupState& state); | ||
/* Not allowed. */ | ||
StartupState(const StartupState& state); /**< Copy construction of an instance. */ | ||
StartupState& operator=(const StartupState& state); /**< Assignment of an instance. */ | ||
}; | ||
|
||
/****************************************************************************** | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,7 +27,7 @@ | |
/** | ||
* @brief Error state | ||
* @author Andreas Merkle <[email protected]> | ||
* | ||
* | ||
* @addtogroup Application | ||
* | ||
* @{ | ||
|
@@ -91,21 +91,20 @@ class ErrorState : public IState | |
|
||
/** | ||
* Set error message, which to show on the display. | ||
* | ||
* | ||
* @param[in] msg Error message | ||
*/ | ||
void setErrorMsg(const char* msg); | ||
|
||
protected: | ||
private: | ||
|
||
/** | ||
* The error message string size in bytes, which | ||
* includes the terminating character. | ||
*/ | ||
static const size_t ERROR_MSG_SIZE = 20; | ||
static const size_t ERROR_MSG_SIZE = 20; | ||
|
||
char m_errorMsg[ERROR_MSG_SIZE]; /**< Error message, which to show. */ | ||
char m_errorMsg[ERROR_MSG_SIZE]; /**< Error message, which to show. */ | ||
|
||
/** | ||
* Default constructor. | ||
|
@@ -122,8 +121,9 @@ class ErrorState : public IState | |
{ | ||
} | ||
|
||
ErrorState(const ErrorState& state); | ||
ErrorState& operator=(const ErrorState& state); | ||
/* Not allowed. */ | ||
ErrorState(const ErrorState& state); /**< Copy construction of an instance. */ | ||
ErrorState& operator=(const ErrorState& state); /**< Assignment of an instance. */ | ||
}; | ||
|
||
/****************************************************************************** | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,7 +27,7 @@ | |
/** | ||
* @brief Parameter state | ||
* @author Andreas Merkle <[email protected]> | ||
* | ||
* | ||
* @addtogroup Application | ||
* | ||
* @{ | ||
|
@@ -132,8 +132,9 @@ class ParameterSets | |
*/ | ||
~ParameterSets(); | ||
|
||
ParameterSets(const ParameterSets& set); | ||
ParameterSets& operator=(const ParameterSets& set); | ||
/* Not allowed. */ | ||
ParameterSets(const ParameterSets& set); /**< Copy construction of an instance. */ | ||
ParameterSets& operator=(const ParameterSets& set); /**< Assignment of an instance. */ | ||
}; | ||
|
||
/****************************************************************************** | ||
|
Oops, something went wrong.