Skip to content

Conversation

@mjrand
Copy link
Contributor

@mjrand mjrand commented Jan 7, 2026

I've added in a new "two_leg" turnaround method and updated many of the turnaround docstrings.

Description

I've added in the ability to explicitly call a "two_leg" turnaround which calls a "_gen_three_leg_turnaround" with second_leg_time=0. This was already being done for type2 and type3 scans but can now be called explicitly by the LAT and the SATs in generate_constant_velocity_scan. I've updated the type2 and type3 scan generation functions to use the two_leg turnaround by default (which is the exact same functionality as was being done before). The LAT type2/3 scans should be completely unaffected by these changes.

I've also gone through and updated many of the docstrings for these generate scan functions to include all turnaround method information.

Motivation and Context

This change lets us use second_leg_time=0 turnarounds in the constant velocity scans for the SATs. I've shown these to be advantageous (especially for satp2) over the standard turnarounds.

How Has This Been Tested?

I tested two_leg turnarounds briefly on satp2 and satp1, but this exact implementation of the code has not been run. We can run this for a few minutes just to check for any syntax or spelling errors if necessary.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.

@mjrand mjrand requested review from mhasself and skhrg January 7, 2026 21:59
@mjrand mjrand self-assigned this Jan 7, 2026
@mjrand mjrand added enhancement New feature or request agent: acu labels Jan 7, 2026
@kmharrington kmharrington linked an issue Jan 8, 2026 that may be closed by this pull request
Copy link
Member

@mhasself mhasself left a comment

Choose a reason for hiding this comment

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

This seems fine. A set of typos to fix though.

We won't be able to test this on the LAT for a while, but please do test on a SAT before merging.

turnaround_method (str): The method used for generating turnaround.
Default ('standard') generates the baseline minimal jerk trajectory.
(Default) 'standard' generates the baseline minimal jerk trajectory.
'standard_gen' genetares a list of track_points throughout the turnaround
Copy link
Member

Choose a reason for hiding this comment

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

3 instances of "genetares" that should be "generates"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agent: acu enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add two-leg turnaround to ACU agent

3 participants