Skip to content
This repository was archived by the owner on Feb 3, 2023. It is now read-only.

Add the 'tile' unit of QLength#478

Merged
Octogonapus merged 4 commits into
OkapiLib:masterfrom
karmanyaahm:patch-3
May 22, 2022
Merged

Add the 'tile' unit of QLength#478
Octogonapus merged 4 commits into
OkapiLib:masterfrom
karmanyaahm:patch-3

Conversation

@karmanyaahm
Copy link
Copy Markdown
Contributor

I don't know if you guys want this, but it's a pretty small change if you do:

Description of the Change

Add a unit called 'tile' = 24 inches. Just like length values to chassis PID and other places can be 24_in, it can be done with 1_tile.

Motivation

The VRC field is 6 by 6 tiles. This could be convenient for teams coding their auton movements relative to a certain number of field tiles rather than just inches.

See this VexForum post: https://www.vexforum.com/t/tipping-point-season-code-request/102621/8?u=karmanyaahm .

Possible Drawbacks

I don't think there's any since it's not removing or changing anything

Verification Process

I've been using an equivalent of this in my competition code all year, and this is a pretty small change.

Another cool thing I do in my code, is printing odometry values (OdomState::str) as _tile instead of meter. 6 tiles is more intuitive than seeing 3.6576 m (the field dimensions). However, I'm unsure of how to implement that without any regressions, if you guys think it's a good idea, I can work on it with some advice.

GitHub deprecated the git:// protocol on Jan 11, 2022. Since then, CI runs and submodule updates just time out because the URL cannot be found.

Source: https://github.blog/2021-09-01-improving-git-protocol-security-github/.
The VRC field is 6 by 6 tiles. This could be convenient for teams coding their auton movements relative to a certain number of field tiles.

See this VexForum post for reference: https://www.vexforum.com/t/tipping-point-season-code-request/102621/8?u=karmanyaahm .
@karmanyaahm karmanyaahm marked this pull request as ready for review May 22, 2022 02:16
Copy link
Copy Markdown
Member

@Octogonapus Octogonapus left a comment

Choose a reason for hiding this comment

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

LGTM

@Octogonapus Octogonapus added the enhancement New feature or request label May 22, 2022
@codecov
Copy link
Copy Markdown

codecov Bot commented May 22, 2022

Codecov Report

Merging #478 (5f3b502) into master (2089391) will increase coverage by 0.03%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master     #478      +/-   ##
==========================================
+ Coverage   88.69%   88.72%   +0.03%     
==========================================
  Files         140      140              
  Lines        5880     5880              
==========================================
+ Hits         5215     5217       +2     
+ Misses        665      663       -2     

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

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants