Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hardcoded Isp in thrusterStateEffector #735

Open
andrewmorell opened this issue Jun 26, 2024 · 1 comment
Open

Hardcoded Isp in thrusterStateEffector #735

andrewmorell opened this issue Jun 26, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@andrewmorell
Copy link
Contributor

Describe the bug
The thrusterStateEffector mass depletion is hardcoded to 100% for all time via line 344 in the effector's c++ file. This doesn't affect thrust output unless mass depletion force contributions are turned on, and the only other impact is when a fuel tank is connected.

To reproduce
Steps to reproduce the behavior:

  1. Create a thrusterStateEffector
  2. override the "updateOnly" parameter for that THRSimConfig to be false, enabling mass depletion force contribution calculations
  3. See thrusting force outputting even with zero thrust command message

OR

  1. Create thrusterStateEffector
  2. Create a fuelTank effector
  3. Connect the thruster to the fuel tank with fuelTank.addThruster
  4. Set thruster command to off
  5. Plot fuel mass and/or fuel mass rate
  6. See fuel mass depleting at a constant rate

Expected behavior
No mass depletion while thruster isn't firing.

Desktop (please complete the following information):

  • OS: macos
  • Version 14.4.1
  • Python version 3.10.7

Additional context
Current fix is being worked in the LASP fork of Basilisk, branch bug/thrusterStateEffector-IspFactor. Since the thrusterStateEffector already doesn't scale mass depletion according to ramp up/down (compare updateEffectorMassProps in thrusterStateEffector to computeStateContribution in thrusterDynamicEffector), the proposed solution is to change the conditional statements that check whether mass should be depleting to query against ops->ThrustFactor instead of ops->IspFactor.

@schaubh schaubh self-assigned this Jun 27, 2024
@schaubh schaubh added the bug Something isn't working label Jun 27, 2024
@schaubh
Copy link
Contributor

schaubh commented Jun 27, 2024

Howdy @spiggottCO , this is the issue we were discussing with the hard coded Isp value. Looks like two groups found this out within days of each other.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: 🏗 In progress
Development

No branches or pull requests

2 participants