-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
skeleton layout of remaining mission ticks (#130)
skeleton headers and source files for ticks outlined on the wiki https://tritonuas.github.io/wiki/software/obc/tick_architecture/tick_overview/
- Loading branch information
Showing
24 changed files
with
338 additions
and
39 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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#ifndef INCLUDE_TICKS_AIRDROP_APPROACH_HPP_ | ||
#define INCLUDE_TICKS_AIRDROP_APPROACH_HPP_ | ||
|
||
#include <memory> | ||
#include <chrono> | ||
|
||
#include "ticks/tick.hpp" | ||
|
||
/* | ||
* Fly to aidrop points and communicate with airdrop mechanism. | ||
* | ||
* See https://tritonuas.github.io/wiki/software/obc/tick_architecture/ticks/airdropapproach/ | ||
*/ | ||
class AirdropApproachTick : public Tick { | ||
public: | ||
explicit AirdropApproachTick(std::shared_ptr<MissionState> state); | ||
|
||
std::chrono::milliseconds getWait() const override; | ||
|
||
Tick* tick() override; | ||
}; | ||
|
||
#endif // INCLUDE_TICKS_AIRDROP_APPROACH_HPP_ |
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#ifndef INCLUDE_TICKS_AUTO_LANDING_HPP_ | ||
#define INCLUDE_TICKS_AUTO_LANDING_HPP_ | ||
|
||
#include <memory> | ||
#include <chrono> | ||
|
||
#include "ticks/tick.hpp" | ||
|
||
/* | ||
* See https://tritonuas.github.io/wiki/software/obc/tick_architecture/ticks/autolanding/ | ||
*/ | ||
class AutoLandingTick : public Tick { | ||
public: | ||
explicit AutoLandingTick(std::shared_ptr<MissionState> state); | ||
|
||
std::chrono::milliseconds getWait() const override; | ||
|
||
Tick* tick() override; | ||
}; | ||
|
||
#endif // INCLUDE_TICKS_AUTO_LANDING_HPP_ |
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#ifndef INCLUDE_TICKS_CV_LOITER_HPP_ | ||
#define INCLUDE_TICKS_CV_LOITER_HPP_ | ||
|
||
#include <memory> | ||
#include <chrono> | ||
|
||
#include "ticks/tick.hpp" | ||
|
||
/* | ||
* Stop taking photos, loiter away from the search zone | ||
* and wait until CV processing is done. | ||
* | ||
* See https://tritonuas.github.io/wiki/software/obc/tick_architecture/ticks/cvloiter/ | ||
*/ | ||
class CVLoiterTick : public Tick { | ||
public: | ||
explicit CVLoiterTick(std::shared_ptr<MissionState> state); | ||
|
||
std::chrono::milliseconds getWait() const override; | ||
|
||
Tick* tick() override; | ||
}; | ||
|
||
#endif // INCLUDE_TICKS_CV_LOITER_HPP_ |
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#ifndef INCLUDE_TICKS_FLY_SEARCH_HPP_ | ||
#define INCLUDE_TICKS_FLY_SEARCH_HPP_ | ||
|
||
#include <memory> | ||
#include <chrono> | ||
|
||
#include "ticks/tick.hpp" | ||
|
||
/* | ||
* Take photos and run CV pipeline while flying over | ||
* search region | ||
* | ||
* See https://tritonuas.github.io/wiki/software/obc/tick_architecture/ticks/flysearch/ | ||
*/ | ||
class FlySearchTick : public Tick { | ||
public: | ||
explicit FlySearchTick(std::shared_ptr<MissionState> state); | ||
|
||
std::chrono::milliseconds getWait() const override; | ||
|
||
Tick* tick() override; | ||
}; | ||
|
||
#endif // INCLUDE_TICKS_FLY_SEARCH_HPP_ |
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#ifndef INCLUDE_TICKS_FLY_WAYPOINTS_HPP_ | ||
#define INCLUDE_TICKS_FLY_WAYPOINTS_HPP_ | ||
|
||
#include <memory> | ||
#include <chrono> | ||
|
||
#include "ticks/tick.hpp" | ||
|
||
/* | ||
* Handles logic during flight of initial waypoints | ||
* | ||
* See https://tritonuas.github.io/wiki/software/obc/tick_architecture/ticks/flywaypoints/ | ||
*/ | ||
class FlyWaypointsTick : public Tick { | ||
public: | ||
explicit FlyWaypointsTick(std::shared_ptr<MissionState> state); | ||
|
||
std::chrono::milliseconds getWait() const override; | ||
|
||
Tick* tick() override; | ||
}; | ||
|
||
#endif // INCLUDE_TICKS_FLY_WAYPOINTS_HPP_ |
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#ifndef INCLUDE_TICKS_MANUAL_LANDING_HPP_ | ||
#define INCLUDE_TICKS_MANUAL_LANDING_HPP_ | ||
|
||
#include <memory> | ||
#include <chrono> | ||
|
||
#include "ticks/tick.hpp" | ||
|
||
/* | ||
* See https://tritonuas.github.io/wiki/software/obc/tick_architecture/ticks/manuallanding/ | ||
*/ | ||
class ManualLandingTick : public Tick { | ||
public: | ||
explicit ManualLandingTick(std::shared_ptr<MissionState> state); | ||
|
||
std::chrono::milliseconds getWait() const override; | ||
|
||
Tick* tick() override; | ||
}; | ||
|
||
#endif // INCLUDE_TICKS_MANUAL_LANDING_HPP_ |
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#ifndef INCLUDE_TICKS_MISSION_DONE_HPP_ | ||
#define INCLUDE_TICKS_MISSION_DONE_HPP_ | ||
|
||
#include <memory> | ||
#include <chrono> | ||
|
||
#include "ticks/tick.hpp" | ||
|
||
/* | ||
* See https://tritonuas.github.io/wiki/software/obc/tick_architecture/ticks/missiondone/ | ||
*/ | ||
class MissionDoneTick : public Tick { | ||
public: | ||
explicit MissionDoneTick(std::shared_ptr<MissionState> state); | ||
|
||
std::chrono::milliseconds getWait() const override; | ||
|
||
Tick* tick() override; | ||
}; | ||
|
||
#endif // INCLUDE_TICKS_MISSION_DONE_HPP_ |
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
14 changes: 7 additions & 7 deletions
14
include/ticks/mission_start.hpp → include/ticks/takeoff.hpp
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 |
---|---|---|
@@ -1,24 +1,24 @@ | ||
#ifndef INCLUDE_TICKS_MISSION_START_HPP_ | ||
#define INCLUDE_TICKS_MISSION_START_HPP_ | ||
#ifndef INCLUDE_TICKS_TAKEOFF_HPP_ | ||
#define INCLUDE_TICKS_TAKEOFF_HPP_ | ||
|
||
#include <memory> | ||
#include <chrono> | ||
#include <string> | ||
#include <future> | ||
|
||
#include "ticks/tick.hpp" | ||
|
||
/* | ||
* Waits until the plane has been switched into autopilot mode, then switches to the | ||
* next state. IF we ever implement autonomous takeoff, this will need to be replaced. | ||
* | ||
* See https://tritonuas.github.io/wiki/software/obc/tick_architecture/ticks/takeoff/ | ||
*/ | ||
class MissionStartTick: public Tick { | ||
class TakeoffTick: public Tick { | ||
public: | ||
explicit MissionStartTick(std::shared_ptr<MissionState> state); | ||
explicit TakeoffTick(std::shared_ptr<MissionState> state); | ||
|
||
std::chrono::milliseconds getWait() const override; | ||
|
||
Tick* tick() override; | ||
}; | ||
|
||
#endif // INCLUDE_TICKS_MISSION_START_HPP_ | ||
#endif // INCLUDE_TICKS_TAKEOFF_HPP_ |
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#include "ticks/airdrop_approach.hpp" | ||
|
||
#include <memory> | ||
|
||
#include "ticks/ids.hpp" | ||
#include "utilities/constants.hpp" | ||
|
||
AirdropApproachTick::AirdropApproachTick(std::shared_ptr<MissionState> state) | ||
:Tick(state, TickID::AirdropApproach) {} | ||
|
||
std::chrono::milliseconds AirdropApproachTick::getWait() const { | ||
return AIRDROP_APPROACH_TICK_WAIT; | ||
} | ||
|
||
Tick* AirdropApproachTick::tick() { | ||
return nullptr; | ||
} |
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#include "ticks/auto_landing.hpp" | ||
|
||
#include <memory> | ||
|
||
#include "ticks/ids.hpp" | ||
#include "utilities/constants.hpp" | ||
|
||
AutoLandingTick::AutoLandingTick(std::shared_ptr<MissionState> state) | ||
:Tick(state, TickID::AutoLanding) {} | ||
|
||
std::chrono::milliseconds AutoLandingTick::getWait() const { | ||
return AUTO_LANDING_TICK_WAIT; | ||
} | ||
|
||
Tick* AutoLandingTick::tick() { | ||
return nullptr; | ||
} |
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#include "ticks/cv_loiter.hpp" | ||
|
||
#include <memory> | ||
|
||
#include "ticks/ids.hpp" | ||
#include "utilities/constants.hpp" | ||
|
||
CVLoiterTick::CVLoiterTick(std::shared_ptr<MissionState> state) | ||
:Tick(state, TickID::CVLoiter) {} | ||
|
||
std::chrono::milliseconds CVLoiterTick::getWait() const { | ||
return CV_LOITER_TICK_WAIT; | ||
} | ||
|
||
Tick* CVLoiterTick::tick() { | ||
return nullptr; | ||
} |
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#include "ticks/fly_search.hpp" | ||
|
||
#include <memory> | ||
|
||
#include "ticks/ids.hpp" | ||
#include "utilities/constants.hpp" | ||
|
||
FlySearchTick::FlySearchTick(std::shared_ptr<MissionState> state) | ||
:Tick(state, TickID::FlySearch) {} | ||
|
||
std::chrono::milliseconds FlySearchTick::getWait() const { | ||
return FLY_SEARCH_TICK_WAIT; | ||
} | ||
|
||
Tick* FlySearchTick::tick() { | ||
return nullptr; | ||
} |
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#include "ticks/fly_waypoints.hpp" | ||
|
||
#include <memory> | ||
|
||
#include "ticks/ids.hpp" | ||
#include "utilities/constants.hpp" | ||
|
||
FlyWaypointsTick::FlyWaypointsTick(std::shared_ptr<MissionState> state) | ||
:Tick(state, TickID::FlyWaypoints) {} | ||
|
||
std::chrono::milliseconds FlyWaypointsTick::getWait() const { | ||
return FLY_WAYPOINTS_TICK_WAIT; | ||
} | ||
|
||
Tick* FlyWaypointsTick::tick() { | ||
return nullptr; | ||
} |
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#include "ticks/manual_landing.hpp" | ||
|
||
#include <memory> | ||
|
||
#include "ticks/ids.hpp" | ||
#include "utilities/constants.hpp" | ||
|
||
ManualLandingTick::ManualLandingTick(std::shared_ptr<MissionState> state) | ||
:Tick(state, TickID::ManualLanding) {} | ||
|
||
std::chrono::milliseconds ManualLandingTick::getWait() const { | ||
return MANUAL_LANDING_TICK_WAIT; | ||
} | ||
|
||
Tick* ManualLandingTick::tick() { | ||
return nullptr; | ||
} |
Oops, something went wrong.