# Dynamic Spikes

## Dynamic Spikes

Dynamic Spikes calculate positions on the fly. Dynamic Spikes determines the target position based on the starting point of a motor and then perform a calculation to get the final position. This makes adjustments quick and flexible.

## Why Use Dynamic Spikes?

<figure><img src="https://3040525219-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MhFI6SSKpm8M7EkrYqp%2Fuploads%2Fgit-blob-50cf79467e08724b9da63e8704c9e518895c6154%2Fdynamic-spike-example.gif?alt=media" alt="Dynamic Spike Example"><figcaption></figcaption></figure>

Dynamic Spikes are useful for situations where the target position is not fixed, such as when using a turntable, and you want to "go another 180 degrees" or you want to run the turntable to "the 3-O'clock position." Instead of having to write cues that go 180, 360, 540, etc., you can use Dynamic Spikes to go to the next increment of 180 degrees.

### Dynamic Spike Fields

Unlike Simple Spikes which have a concrete position they're targeting, Dynamic Spikes use up to two different fields to make the calculation.

#### Spike Factor

<figure><img src="https://3040525219-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MhFI6SSKpm8M7EkrYqp%2Fuploads%2Fgit-blob-dc94b39edfb5a77fa939ab6adbb3e553c8a8e1dc%2Fdynamic-spike-edit-factor.gif?alt=media" alt="Dynamic Spike Edit Factor"><figcaption></figcaption></figure>

The Spike Factor is essentially the number of different physical locations a unit can be moved to. It is really only relevant for turntables and treadmills, or other machines that can have continuous motion in a given direction.

For example, a turntable only has 360 degrees of travel before it is back to its original position. A treadmill that has a matching paint pattern every 2' could use a 24" factor so that it would always match the paint.

#### Spike Offset

<figure><img src="https://3040525219-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MhFI6SSKpm8M7EkrYqp%2Fuploads%2Fgit-blob-e13af0a7939a715515aa7c90dd6fe3314e735220%2Fdynamic-spike-edit-offset.gif?alt=media" alt="Dynamic Spike Edit Offset"><figcaption></figcaption></figure>

Spike Offset is the location away from the origin.

{% hint style="info" %}
Check out our section on [**Cue Movements**](https://github.com/creativeconners/PublicDocumentation/blob/main/spikemark-6/spikes/movements/motor-moves.md#4-spikes) to learn how to use Spikes in a cue.
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.creativeconners.com/docs/spikemark-6/spikes/dynamic-spike-types.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
