-
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.
Merge branch 'main' of https://github.com/BlueAndi/RadonUlzer into Se…
…nsorFusion/base
- Loading branch information
Showing
26 changed files
with
129 additions
and
113 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 |
---|---|---|
|
@@ -25,7 +25,7 @@ | |
DESCRIPTION | ||
*******************************************************************************/ | ||
/** | ||
* @brief Calibration state | ||
* @brief Driving state | ||
* @author Andreas Merkle <[email protected]> | ||
*/ | ||
|
||
|
@@ -77,8 +77,6 @@ void DrivingState::entry() | |
m_trackStatus = TRACK_STATUS_ON_TRACK; /* Assume that the robot is placed on track. */ | ||
m_posMovAvg.clear(); | ||
|
||
diffDrive.enable(); | ||
|
||
/* Configure PID controller with selected parameter set. */ | ||
m_topSpeed = parSet.topSpeed; | ||
m_pidCtrl.clear(); | ||
|
@@ -140,16 +138,17 @@ void DrivingState::process(StateMachine& sm) | |
|
||
void DrivingState::exit() | ||
{ | ||
DifferentialDrive& diffDrive = DifferentialDrive::getInstance(); | ||
|
||
diffDrive.disable(); | ||
m_observationTimer.stop(); | ||
Board::getInstance().getYellowLed().enable(false); | ||
} | ||
|
||
/* PROTECTED METHODES *****************************************************************************/ | ||
/****************************************************************************** | ||
* Protected Methods | ||
*****************************************************************************/ | ||
|
||
/* PRIVATE METHODES *******************************************************************************/ | ||
/****************************************************************************** | ||
* Private Methods | ||
*****************************************************************************/ | ||
|
||
void DrivingState::processOnTrack(int16_t position, const uint16_t* lineSensorValues) | ||
{ | ||
|
@@ -363,14 +362,6 @@ void DrivingState::adaptDriving(int16_t position) | |
diffDrive.setLinearSpeed(leftSpeed, rightSpeed); | ||
} | ||
|
||
/****************************************************************************** | ||
* Protected Methods | ||
*****************************************************************************/ | ||
|
||
/****************************************************************************** | ||
* Private Methods | ||
*****************************************************************************/ | ||
|
||
/****************************************************************************** | ||
* External Functions | ||
*****************************************************************************/ | ||
|
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 |
---|---|---|
|
@@ -25,7 +25,7 @@ | |
DESCRIPTION | ||
*******************************************************************************/ | ||
/** | ||
* @brief Calibration state | ||
* @brief Error state | ||
* @author Andreas Merkle <[email protected]> | ||
*/ | ||
|
||
|
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 |
---|---|---|
|
@@ -25,7 +25,7 @@ | |
DESCRIPTION | ||
*******************************************************************************/ | ||
/** | ||
* @brief Calibration state | ||
* @brief Ready state | ||
* @author Andreas Merkle <[email protected]> | ||
*/ | ||
|
||
|
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 |
---|---|---|
|
@@ -25,7 +25,7 @@ | |
DESCRIPTION | ||
*******************************************************************************/ | ||
/** | ||
* @brief Calibration state | ||
* @brief Driving state | ||
* @author Andreas Merkle <[email protected]> | ||
*/ | ||
|
||
|
@@ -76,8 +76,6 @@ void DrivingState::entry() | |
m_lineStatus = LINE_STATUS_FIND_START_LINE; | ||
m_trackStatus = TRACK_STATUS_ON_TRACK; /* Assume that the robot is placed on track. */ | ||
|
||
diffDrive.enable(); | ||
|
||
/* Configure PID controller with selected parameter set. */ | ||
m_topSpeed = parSet.topSpeed; | ||
m_pidCtrl.clear(); | ||
|
@@ -137,16 +135,17 @@ void DrivingState::process(StateMachine& sm) | |
|
||
void DrivingState::exit() | ||
{ | ||
DifferentialDrive& diffDrive = DifferentialDrive::getInstance(); | ||
|
||
diffDrive.disable(); | ||
m_observationTimer.stop(); | ||
Board::getInstance().getYellowLed().enable(false); | ||
} | ||
|
||
/* PROTECTED METHODES *****************************************************************************/ | ||
/****************************************************************************** | ||
* Protected Methods | ||
*****************************************************************************/ | ||
|
||
/* PRIVATE METHODES *******************************************************************************/ | ||
/****************************************************************************** | ||
* Private Methods | ||
*****************************************************************************/ | ||
|
||
void DrivingState::processOnTrack(int16_t position, const uint16_t* lineSensorValues) | ||
{ | ||
|
@@ -361,14 +360,6 @@ void DrivingState::adaptDriving(int16_t position) | |
diffDrive.setLinearSpeed(leftSpeed, rightSpeed); | ||
} | ||
|
||
/****************************************************************************** | ||
* Protected Methods | ||
*****************************************************************************/ | ||
|
||
/****************************************************************************** | ||
* Private Methods | ||
*****************************************************************************/ | ||
|
||
/****************************************************************************** | ||
* External Functions | ||
*****************************************************************************/ | ||
|
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 |
---|---|---|
|
@@ -25,7 +25,7 @@ | |
DESCRIPTION | ||
*******************************************************************************/ | ||
/** | ||
* @brief Calibration state | ||
* @brief Error state | ||
* @author Andreas Merkle <[email protected]> | ||
*/ | ||
|
||
|
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 |
---|---|---|
|
@@ -25,7 +25,7 @@ | |
DESCRIPTION | ||
*******************************************************************************/ | ||
/** | ||
* @brief Calibration state | ||
* @brief Ready state | ||
* @author Andreas Merkle <[email protected]> | ||
*/ | ||
|
||
|
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 |
---|---|---|
|
@@ -25,7 +25,7 @@ | |
DESCRIPTION | ||
*******************************************************************************/ | ||
/** | ||
* @brief Calibration state | ||
* @brief Release track state | ||
* @author Andreas Merkle <[email protected]> | ||
*/ | ||
|
||
|
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 |
---|---|---|
|
@@ -25,7 +25,7 @@ | |
DESCRIPTION | ||
*******************************************************************************/ | ||
/** | ||
* @brief Calibration state | ||
* @brief Error state | ||
* @author Andreas Merkle <[email protected]> | ||
*/ | ||
|
||
|
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
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 |
---|---|---|
|
@@ -25,7 +25,7 @@ | |
DESCRIPTION | ||
*******************************************************************************/ | ||
/** | ||
* @brief Calibration state | ||
* @brief Error state | ||
* @author Andreas Merkle <[email protected]> | ||
*/ | ||
|
||
|
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 |
---|---|---|
|
@@ -25,7 +25,7 @@ | |
DESCRIPTION | ||
*******************************************************************************/ | ||
/** | ||
* @brief Calibration state | ||
* @brief Ready state | ||
* @author Andreas Merkle <[email protected]> | ||
*/ | ||
|
||
|
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 |
---|---|---|
|
@@ -25,7 +25,7 @@ | |
DESCRIPTION | ||
*******************************************************************************/ | ||
/** | ||
* @brief Calibration state | ||
* @brief Release track state | ||
* @author Andreas Merkle <[email protected]> | ||
*/ | ||
|
||
|
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
Oops, something went wrong.