Skip to content

Commit

Permalink
Revert "increase panda pulse width"
Browse files Browse the repository at this point in the history
This reverts commit 6b5f1a7.
  • Loading branch information
olliesilvester committed Sep 19, 2024
1 parent 3b25a3b commit 45f5b67
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/mx_bluesky/hyperion/device_setup_plans/setup_panda.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
MM_TO_ENCODER_COUNTS = 200000
GENERAL_TIMEOUT = 60
TICKS_PER_MS = 1000 # Panda sequencer prescaler will be set to us
PULSE_WIDTH_US = 50


class Enabled(Enum):
Expand Down Expand Up @@ -79,6 +78,8 @@ def _get_seq_table(

delay_between_pulses = time_between_steps_ms * TICKS_PER_MS

PULSE_WIDTH_US = 1

assert delay_between_pulses > PULSE_WIDTH_US

# BITA_1 trigger wired from TTLIN1, this is the trigger input
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@

from mx_bluesky.hyperion.device_setup_plans.setup_panda import (
MM_TO_ENCODER_COUNTS,
PULSE_WIDTH_US,
disarm_panda_for_gridscan,
set_panda_directory,
setup_panda_for_flyscan,
Expand Down Expand Up @@ -140,6 +139,8 @@ def test_setup_panda_correctly_configures_table(
][0]

table = table_msg.args[0]

PULSE_WIDTH_US = 1
SPACE_WIDTH_US = int(time_between_x_steps_ms * 1000 - PULSE_WIDTH_US)
expected_seq_rows: list[SeqRow] = [
SeqRow(1, SeqTrigger.BITA_1, 0, 0, 0, 1, 0),
Expand Down

0 comments on commit 45f5b67

Please sign in to comment.