Skip to content

[MP-7]: Improving code with Dependency Injection#38

Merged
Pesterenan merged 2 commits intodevfrom
MP-7
Feb 28, 2025
Merged

[MP-7]: Improving code with Dependency Injection#38
Pesterenan merged 2 commits intodevfrom
MP-7

Conversation

@Pesterenan
Copy link
Owner

@Pesterenan Pesterenan commented Feb 28, 2025

  • Refactored classes to use dependency injection instead of volatile static classes.
  • Made connection code more robust by trying to auto-connect in case the connection drops.

Closes #37

@Pesterenan Pesterenan self-assigned this Feb 28, 2025
@Pesterenan Pesterenan merged commit 4339270 into dev Feb 28, 2025
1 check passed
@Pesterenan Pesterenan deleted the MP-7 branch February 28, 2025 20:18
Pesterenan added a commit that referenced this pull request Nov 5, 2025
* [MP-2]: Created button for Create Maneuvers Panel  (#16)

* [MP-2]: Added button for Create Maneuvers, fixed some UI

* [MP-2]: Created button for Create Maneuvers Panel

Included a fix for not finishing the maneuver burn.
Changed the 'Change Vessel' area to 10km for 'nearest'.

* [MP-2]: Making liftoff button get back to telemetry jpanel (#17)

* [MP-2]: Added button for Create Maneuvers, fixed some UI

* [MP-2]: Created button for Create Maneuvers Panel

Included a fix for not finishing the maneuver burn.
Changed the 'Change Vessel' area to 10km for 'nearest'.

* [MP-2]: Making liftoff button get back to telemetry jpanel

* [MP-2]: Incremented patch version for bugfix (#18)

* [MP-2]: Added button for Create Maneuvers, fixed some UI

* [MP-2]: Created button for Create Maneuvers Panel

Included a fix for not finishing the maneuver burn.
Changed the 'Change Vessel' area to 10km for 'nearest'.

* [MP-2]: Making liftoff button get back to telemetry jpanel

* [MP-2]: Incremented patch version for bugfix

* [DEV]: Updated KRPC, Protobuf and README

Updated KRPC to version 0.5.1 and protobuf-java to 3.22.1
README link for KRPC was updated to 0.5.1
Changed MechPeste version to 0.6.2
MechPeste now installs krpc version 0.5.1 from the menu

* [DEV]: Adding new version of KRPC, safer de-orbiting

* [MP-2]: Create the UI for maneuver creation helper (#20)

* [MP-2]: Added button for Create Maneuvers, fixed some UI

* [MP-2]: Created button for Create Maneuvers Panel

Included a fix for not finishing the maneuver burn.
Changed the 'Change Vessel' area to 10km for 'nearest'.

* [MP-2]: Making liftoff button get back to telemetry jpanel

* [MP-2]: Incremented patch version for bugfix

* [MP-2]: Created Panel and Functionality

* [MP-2]: Added event listeners for maneuver buttons

* [MP-2]: Began implementing Rendezvous code

* [MP-2]: Unified Create and Run Maneuver JPanels

* [MP-2]: Saving current changes to MechPeste

* Docking test (#21)

* [MP-2]: Added button for Create Maneuvers, fixed some UI

* [MP-2]: Created button for Create Maneuvers Panel

Included a fix for not finishing the maneuver burn.
Changed the 'Change Vessel' area to 10km for 'nearest'.

* [MP-2]: Making liftoff button get back to telemetry jpanel

* [MP-2]: Incremented patch version for bugfix

* [MP-2]: Created Panel and Functionality

* [MP-2]: Added event listeners for maneuver buttons

* [MP-2]: Began implementing Rendezvous code

* [MP-2]: Unified Create and Run Maneuver JPanels

* [MP-2]: Saving current changes to MechPeste

* -- First implementation of auto-docking

* -- Managed to debug on Neovim

* -- Changed how ControlePID works

* [Docking]: Finally have a working docking script?

* [Docking]: Working 1st and 2nd docking stage

* [Docking]: We have a docking script!

* [Docking]: Implement docking into MechPeste

* [Docking]: Organize docking code

* [Docking]: Implement maneuvering around target

* [Landing]: Fix landing speed calculation

* [Maven]: Implement Maven project manager (#22)

* [MP-2]: Added button for Create Maneuvers, fixed some UI

* [MP-2]: Created button for Create Maneuvers Panel

Included a fix for not finishing the maneuver burn.
Changed the 'Change Vessel' area to 10km for 'nearest'.

* [MP-2]: Making liftoff button get back to telemetry jpanel

* [MP-2]: Incremented patch version for bugfix

* [MP-2]: Created Panel and Functionality

* [MP-2]: Added event listeners for maneuver buttons

* [MP-2]: Began implementing Rendezvous code

* [MP-2]: Unified Create and Run Maneuver JPanels

* [MP-2]: Saving current changes to MechPeste

* -- First implementation of auto-docking

* -- Managed to debug on Neovim

* -- Changed how ControlePID works

* [Docking]: Finally have a working docking script?

* [Docking]: Working 1st and 2nd docking stage

* [Docking]: We have a docking script!

* [Docking]: Implement docking into MechPeste

* [Docking]: Organize docking code

* [Docking]: Implement maneuvering around target

* [Landing]: Fix landing speed calculation

* [Maven]: Implement Maven project manager

* [Maven]: Configure project to use Maven to deploy new versions

* [Maven]: Add version checker using Maven

* [Maven]: Update version display code, README file

* [CI]: Add CI workflow to project using Maven

* [CI]: Add KRPC as a Local Library on GHA

* [CI]: Add release script

* [CI]: Update release script

* [CI]: Install KRPC before build

* [CI]: Release script test

* [CI]: Create tags test

* [CI]: Set version using ENV variables

* [Release]: Creating tag before release

* [CI]: Updated release scripts

* [CI]: Separate env and tag steps

* [Release]: Adjust tag name

* [Release]: Release new version when pushing to master

* [MP-3]: Add docking step texts, sort lines on Bundle files (#28)

* [MP-5]: Translate portuguese variable names to english (#32)

* [MP-6]: Adding code style to project (#34)

* [MP-6]: Adding code style to project

* [MP-6]: Applying linting rules to project files

* [MP-4]: Update krpc version entries to 0.5.4 (#35)

* [MP-4]: Update krpc version entries to 0.5.4

* [MP-4]: Include krpc-java-0.5.4, fix double value

* [MP-4]: Bump minor version to 0.8.0

* [MP-7]: Improving code with Dependency Injection (#38)

* [MP-7]: Refactoring krpc connection code

* [MP-7]: Improving code with Dependency Injection

* [MP-8]: Refactor how controllers act on vessels (#39)

* [MP-8]: Update protobuf on pom.xml file

* [MP-8]: Use stream events to update telemetry data

* [MP-8]: Refactored LiftoffController to use callbacks on streams

* [MP-8]: Refactored ManeuverController to use callbacks on streams

* [MP-8]: Enforcing new formatting style

* [MP-8]: Applying new code style format

* [MP-8]: Refactoring LandingController to use callbacks on streams

* [MP-8]: Refactored ConnectionManager

* [MP-8]: Refactored VesselManager

* [MP-8]: Refactored ActiveVessel

* [MP-8]: Refactored ManeuverController

* [MP-8]: Refactored LiftoffController

* [MP-8]: Refactored LandingController

* [MP-8]: Refactoring DockingController to use callbacks on streams

* [MP-8]: Finalize work on streams

* [MP-8]: Using MissionTime Stream instead of utStream

* [MP-8]: Cleaning up PID controller use

* [MP-8]: Removing log

* [MP-8]: Update About modal with channel info

* [MP-8]: Bumping version to 0.9.0

* [MP-8]: Implement connection listener to fix connection bug

* [MP-8]: Refactor  RoverController busy-waiting

* [MP-8]: Show status ready after cancelling a module

* [MP-8]: Update controllers to use new pattern

* [MP-8]: Disabled not yet ready functions

* chore: update actions/cache version to v4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant