Skip to content

Gamepad and telemetry docs - #12

Open
28shettr wants to merge 16 commits into
NextFTC:mainfrom
28shettr:gamepad-telemetry-docs
Open

Gamepad and telemetry docs#12
28shettr wants to merge 16 commits into
NextFTC:mainfrom
28shettr:gamepad-telemetry-docs

Conversation

@28shettr

@28shettr 28shettr commented Aug 6, 2026

Copy link
Copy Markdown

split pr

Comment thread src/content/docs/robot/telemetry.mdx

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Run git rm --cached -r .idea please.

@28shettr

Copy link
Copy Markdown
Author

@zachwaffle4 please merge...

<TabItem label="Java">

```java
CommandGamepad gp1 = new CommandGamepad(Trigger.getDefaultEventLoop(), gamepad1);

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Suggested change
CommandGamepad gp1 = new CommandGamepad(Trigger.getDefaultEventLoop(), gamepad1);
CommandGamepad gp1 = new CommandGamepad(gamepad1);

<TabItem label="Kotlin">

```kotlin
val gp1 = CommandGamepad(gamepad = gamepad1)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Suggested change
val gp1 = CommandGamepad(gamepad = gamepad1)
val gp1 = CommandGamepad(gamepad1)

</TabItem>
</Tabs>

### Sticks and triggers

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Suggested change
### Sticks and triggers
### Sticks and Triggers

Comment on lines +61 to +62
Are exposed as `RangeTrigger`s instead of plain `Trigger`s, since they report an analog value rather than a simple boolean.
Allowing you to use `RangeTrigger`s like `isOver()` or `isUnder()` etc.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

neither of these are complete sentences

Comment thread src/content/docs/robot/telemetry.mdx Outdated
import { Tabs, TabItem } from "@astrojs/starlight/components";

`Telemetry` lets you send data to the Driver Station, FTC Dashboard, or anywhere else, all at once.
You don't need to create one, just call its functions directly.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Suggested change
You don't need to create one, just call its functions directly.
The `Telemetry` functions are all static; you don't need to create your own telemetry instances.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

can you please git restore this file


### Sticks and Triggers

They are exposed as `RangeTrigger`s instead of plain `Trigger`s, since they report an analog value rather than a simple boolean, letting you

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Suggested change
They are exposed as `RangeTrigger`s instead of plain `Trigger`s, since they report an analog value rather than a simple boolean, letting you
Joysticks and gamepad triggers are exposed as `RangeTrigger`s instead of regular `Trigger`s, since they report an analog value rather than a boolean value, letting you

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants