Skip to content

Commit

Permalink
CA updates
Browse files Browse the repository at this point in the history
  • Loading branch information
rahil-makadia committed Sep 28, 2024
1 parent 6a32602 commit bb282ef
Show file tree
Hide file tree
Showing 4 changed files with 486 additions and 445 deletions.
2 changes: 1 addition & 1 deletion grss/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def _connected_to_internet(url='http://www.google.com/', timeout=30):
try:
_ = requests.head(url, timeout=timeout)
return True
except requests.ConnectionError:
except (requests.ConnectionError, requests.Timeout):
print("No internet connection available.")
return False

Expand Down
6 changes: 6 additions & 0 deletions include/approach.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@ void impact_r_calc(PropSimulation *propSim, const size_t &i, const size_t &j,
std::vector<real> get_rel_state(PropSimulation *propSim, const size_t &i,
const size_t &j, const real &t);

/**
* @brief Compute partials of B-plane parameters.
*/
void get_bplane_partials(PropSimulation *propSim, CloseApproachParameters *ca,
const real &mu, const real &radius);

/**
* @brief Compute the time of close approach or impact using Brent's method
* for root finding in a bracketed interval.
Expand Down
Loading

0 comments on commit bb282ef

Please sign in to comment.