Open
Conversation
added 9 commits
October 20, 2025 01:15
- Implement Mission class in uuv_mission/mission_class.py - Add from_csv class method to load depth profile and target references from mission.csv - Create main.py to demonstrate loading and printing sample data - Use pandas for CSV parsing and data handling - Pin NumPy version to <2 in requirements.txt for compatibility - Include __init__.py in uuv_mission to enable package imports
- Simulated closed-loop control using PDController with default gains - Updated demo.ipynb to load mission and plot trajectory vs reference - Made sure controller worked but trajectory did not accurately track reference so will have to adjust controller
- Added controller integration to ClosedLoop class to enable feedback control. - Added troubleshooting code to track controller variables during runtime to try and figure out strange results in simulation
…ol issues - Added integral term to the controller to see if strange data was due to poor stability. - Included clamping on integral term to prevent integral windup.
- Updated demo notebook to use PID controller. - Added more troubleshooting outputs as graphs were still unstable.
- Found the integral term actually makes little positive difference and its absence was not the issue. - Tuned PID gains to Kp=0.03, Ki=0.02, Kd=0.075 for stable control response.
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
-added mission class to extract instance from mission.csv
-added PID controller and tuned it to align with reference line