Skip to content
This repository has been archived by the owner on Feb 5, 2024. It is now read-only.

PM Takeoff/Landing Implementation #25

Open
wants to merge 15 commits into
base: main
Choose a base branch
from
Open

PM Takeoff/Landing Implementation #25

wants to merge 15 commits into from

Conversation

nehasriva025
Copy link
Contributor

@nehasriva025 nehasriva025 commented Dec 18, 2022

Description

PR for Takeoff/Landing with PM using speed targets. Includes message queue implementation with SM and AM.

Testing

Work in Progress

Documentation

https://uwarg-docs.atlassian.net/wiki/spaces/ZP/pages/2022146309/VTOL+Takeoff+and+Landing
https://uwarg-docs.atlassian.net/wiki/spaces/ZP/pages/2117664813/PM+Re+Architecture+For+MVP

Merge Checklist:

  • The changes have been well commented, particularly in hard-to-understand areas.
  • The code has been tested on hardware, either by me or someone else.
  • Comprehensive unit tests have been made for this change
  • Corresponding changes to documentation have been created and links to this documentation are provided within the pull request.
  • The changes generate no new warnings and compile and run; A screenshot of a successful compile message is attached to the bottom of this PR.

Copy link

@StanleyTang17 StanleyTang17 left a comment

Choose a reason for hiding this comment

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

Some questions about the SM changes.

SystemManager/Src/SM.cpp Outdated Show resolved Hide resolved
SystemManager/Src/SM.cpp Show resolved Hide resolved
@nehasriva025 nehasriva025 marked this pull request as ready for review February 7, 2023 20:39
uwuarg pushed a commit that referenced this pull request Feb 8, 2023
Copy link
Contributor

@SnackkOverflowError SnackkOverflowError left a comment

Choose a reason for hiding this comment

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

I cant read

PathManager/Inc/PM_LandingTakeoffManager.hpp Outdated Show resolved Hide resolved
PathManager/Inc/PM_States.hpp Outdated Show resolved Hide resolved
Comment on lines 32 to 40
void CommsWithSystemManager::execute(PathManager* pathMgr)
{
//GetSMIncomingData();
/*

*/


}
Copy link
Member

Choose a reason for hiding this comment

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

Is there something missing here? Since the thread that calls PM handles the PM side of the message queues is this necessary?

Comment on lines +113 to +114
/* TODO: All of this

Copy link
Member

Choose a reason for hiding this comment

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

:surprised pikachu:

Comment on lines 151 to 152
path_manager->setSmStruct(*pm_instructions);

Copy link
Member

Choose a reason for hiding this comment

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

Can you use the sm_pm_queue status to check if there is new data from SM and only update this if there is new data? I worry that PM takes multiple execute calls to get through a full control loop.

Comment on lines +157 to +159
AM::AttitudeManagerInput to_am_data = path_manager->getAmStruct();
void* msg_pointer = &to_am_data;

Copy link
Member

Choose a reason for hiding this comment

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

Does this AmStruct get updated after each execute call?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes

SystemManager/Src/SM.cpp Outdated Show resolved Hide resolved
PathManager/Src/PM_States.cpp Show resolved Hide resolved
PathManager/Inc/PM_DataTypes.hpp Outdated Show resolved Hide resolved
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