-
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.
* refactor config * beautiful, beautiful macros * fix lint & add camera vision config option * log read in config options * generate hover search path * kind of working coverage path * untested upload code * minor refactor to make init method in tick & fix mission not starting for flysearch * better coverage path & lots of small things * fix lint * load in mavlink parameters via config file * json with comments :) * fix merge conflict in integration test
- Loading branch information
1 parent
abedaee
commit 006ec1e
Showing
36 changed files
with
562 additions
and
274 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
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
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,47 @@ | ||
#ifndef INCLUDE_PATHING_MISSION_PATH_HPP_ | ||
#define INCLUDE_PATHING_MISSION_PATH_HPP_ | ||
|
||
#include <mavsdk/mavsdk.h> | ||
#include <mavsdk/plugins/mission_raw/mission_raw.h> | ||
|
||
#include <vector> | ||
|
||
#include "utilities/datatypes.hpp" | ||
#include "protos/obc.pb.h" | ||
|
||
/** | ||
* Class which abstracts around a waypoint mission that we will upload via mavlink. | ||
* | ||
* There are two kinds of mission paths: forward paths and hover paths | ||
* | ||
* Forward paths will just be normal paths where you fly forward through all waypoints | ||
* | ||
* Hover paths will be where you hover at each waypoint for a specified duration | ||
* | ||
* It may make sense in the future to allow mixing these, so a mission path that contains | ||
* both hovering and forward flight, but at this time it makes more sense to keep it | ||
* simple with a binary choice on the entire path. | ||
*/ | ||
class MissionPath { | ||
public: | ||
enum class Type { | ||
FORWARD, HOVER | ||
}; | ||
|
||
MissionPath(Type type, std::vector<GPSCoord> path, int hover_wait_s = 5); | ||
MissionPath() = default; | ||
|
||
const std::vector<GPSCoord>& get() const; | ||
const std::vector<mavsdk::MissionRaw::MissionItem> getCommands() const; | ||
|
||
private: | ||
Type type; | ||
std::vector<GPSCoord> path; | ||
std::vector<mavsdk::MissionRaw::MissionItem> path_mav; | ||
int hover_wait_s; | ||
|
||
void generateHoverCommands(); | ||
void generateForwardCommands(); | ||
}; | ||
|
||
#endif // INCLUDE_PATHING_MISSION_PATH_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
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.