-
Notifications
You must be signed in to change notification settings - Fork 0
Implement Refueling + Tick restructuring #250
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
miyatakazuya
merged 15 commits into
feat/cv-everything
from
feat/cv-everything-mappingbound
May 29, 2025
Merged
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
cc33811
Mappingbound edits
miyatakazuya 09cbb88
Working refueling tick prototype; WTD flywaypoint diversion
miyatakazuya d05fe52
Jank but working mission flow
miyatakazuya 41dee1a
Work for Christopher LEE
miyatakazuya ed69aa3
add forward pathing
AskewParity 3e4f4ed
Added note abt ordering + update protos
miyatakazuya ab728f2
lint
kimichenn 0065157
Add dev_protos
kimichenn 5e0fc18
Add payload size to config and use it in airdrop approach, and active…
Fox-King777 ab4565f
Chris did a dumb dumb
Fox-King777 22401a0
Comment testing logic and uncomment main logic and change the locatio…
Fox-King777 8c94956
Comment testing logic and uncomment main logic and change the locatio…
Fox-King777 072a7db
Fixed manual landing; reset refueling tick wait time
miyatakazuya 0858217
Merge branch 'feat/cv-everything' into feat/cv-everything-mappingbound
miyatakazuya 9a6a366
Fixed lint
miyatakazuya File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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_REFUELING_HPP_ | ||
#define INCLUDE_TICKS_REFUELING_HPP_ | ||
|
||
#include <chrono> | ||
#include <memory> | ||
|
||
#include "ticks/tick.hpp" | ||
|
||
/* | ||
* Wait for the refueling process to finish. | ||
*/ | ||
class RefuelingTick : public Tick { | ||
public: | ||
explicit RefuelingTick(std::shared_ptr<MissionState> state); | ||
|
||
std::chrono::milliseconds getWait() const override; | ||
|
||
Tick* tick() override; | ||
}; | ||
|
||
#endif // INCLUDE_TICKS_REFUELING_HPP_ |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
---|---|---|
|
@@ -16,6 +16,7 @@ set(FILES | |
takeoff.cpp | ||
active_takeoff.cpp | ||
wait_for_takeoff.cpp | ||
refueling.cpp | ||
) | ||
|
||
set(LIB_DEPS | ||
|
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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,22 @@ | ||
#include "ticks/refueling.hpp" | ||
|
||
#include <memory> | ||
|
||
#include "ticks/active_takeoff.hpp" | ||
#include "ticks/ids.hpp" | ||
#include "ticks/mav_upload.hpp" | ||
#include "utilities/constants.hpp" | ||
|
||
RefuelingTick::RefuelingTick(std::shared_ptr<MissionState> state) | ||
: Tick(state, TickID::Refueling) {} | ||
|
||
std::chrono::milliseconds RefuelingTick::getWait() const { return REFUELING_TICK_WAIT; } | ||
|
||
Tick* RefuelingTick::tick() { | ||
AskewParity marked this conversation as resolved.
Show resolved
Hide resolved
|
||
if (state.get()->getMav()->isArmed()) { | ||
return new MavUploadTick(state, new WaitForTakeoffTick(state), state->getInitPath(), false); | ||
} | ||
|
||
return nullptr; | ||
// return new MavUploadTick(state, new WaitForTakeoffTick(state), state->getInitPath(), false); | ||
} |
This file contains hidden or 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 hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
has this been tested?