Skip to content

changes to mirror the updates to tracking antenna#25

Merged
Landwhich merged 3 commits into
mainfrom
tracking-antenna
May 13, 2026
Merged

changes to mirror the updates to tracking antenna#25
Landwhich merged 3 commits into
mainfrom
tracking-antenna

Conversation

@Landwhich
Copy link
Copy Markdown
Contributor

  • existing values for manual input should actually be fine be needs to be tested
  • added frontend antenna tracking for fix and heading

Copy link
Copy Markdown
Contributor

@codeflight1 codeflight1 left a comment

Choose a reason for hiding this comment

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

Looks good, just one note about the bearing message

Comment thread src/components/panels/MapView.tsx Outdated
Comment thread src/components/panels/MapView.tsx Outdated
Comment thread src/components/panels/MapView.tsx Outdated

const handleAntennaBearing = (message: any) => {
// Assuming the /fix message contains 'latitude' and 'longitude'
const angle = message * 360;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

What unit is this topic in? Pretty sure it is in radians. I am guessing you are trying to convert to degrees which would be *360/2pi.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

the topic actually sends out a normalized value so that the roboclaw can just do its encoder math.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Okay that's my bad. I should have caught that in the original PR. After URC we will change that to follow ros2 rfcs which is in radians. Hardware interfaces read radians and convert to encoder ticks. It makes it harder to debug if you don't follow the standard agreed upon units.

Landwhich and others added 2 commits May 13, 2026 16:00
@Landwhich Landwhich dismissed codeflight1’s stale review May 13, 2026 20:06

updated to => message.data

Copy link
Copy Markdown
Member

@ConnorNeed ConnorNeed left a comment

Choose a reason for hiding this comment

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

Make sure you test before you merge. Squash and merge when ready

@Landwhich
Copy link
Copy Markdown
Contributor Author

Tested using the normalized values from antenna bearing and moves cw as expected

@Landwhich Landwhich merged commit 45e56f6 into main May 13, 2026
1 check passed
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.

3 participants