Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Feb 5, 2024. It is now read-only.

PM Drone Restructure #186

Draft
nehasriva025 wants to merge 13 commits into
UWARG:pathManRestructureUWARG/efs-zeropilot:pathManRestructurefrom
antholuo:PM-Restructureantholuo/ZeroPilot-SW-ALuo:PM-RestructureCopy head branch name to clipboard
Draft

PM Drone Restructure #186
nehasriva025 wants to merge 13 commits into
UWARG:pathManRestructureUWARG/efs-zeropilot:pathManRestructurefrom
antholuo:PM-Restructureantholuo/ZeroPilot-SW-ALuo:PM-RestructureCopy head branch name to clipboard

Conversation

@nehasriva025

Copy link
Copy Markdown

Description

Restructured PM to be able to work with both fixed wing and multi rotor aircraft. Implemented PM functions for drone given fijo struct from CV and TM.

Documentation

Partially complete documentation can be found here: https://uwarg-docs.atlassian.net/wiki/spaces/ZP/pages/2035056654/Drone+PM+Restructure

@antholuo antholuo left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall it looks good.

There's a few issues with names starting with leading underscores, I'm not sure how hard it will be to go through and change them but it would be great if it's possible!



//Data for attitude manager to send to path manager.
typedef struct AttitudeData{

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why doesn't fixed wing have this?


#ifndef TELEM_PATH_INTERFACE_HPP
#define TELEM_PATH_INTERFACE_HPP
#define IS_FIXED_WING FALSE

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there anyway we can change these to const or constexpr? We're trying to move away from using #define directives.

double lattiude;
};

struct fijo{

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you please put a //FIXME or //TODO stating that these are to be changed for comp season


#else

_ModifyFlightPathErrorCode editFlightPath(WaypointManager& cruisingStateManager, fijo * telemetryData, _WaypointManager_Data_In input);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know a lot of this isn't your code, but is it possible to change names to no longer having leading underscores?

static pathManagerState& getInstance();
static WaypointManager takeoffPath;
static _PathData takeoffPoint;
static _PathData takeoffPoint; // target

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same thing with leading underscores here

class landingStage : public pathManagerState
{
public:
void enter(pathManager* pathMgr) {(void) pathMgr;}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

naming in this class

/**
* Structure stores information about the waypoints along our path to the destination and back. Got rid of turn radius
*/
struct _PathData {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is there a reason we have next + prev as well as lat and lon?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.