Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DOCS-1459: Remove i2cs and SPIs #2319

Merged
merged 7 commits into from
Dec 13, 2023

Conversation

sguequierre
Copy link
Collaborator

  • Remove from the configuration of all boards where they were supported as configuration attributes

@viambot viambot added the safe to build This pull request is marked safe to build from a trusted zone label Dec 12, 2023
@viambot
Copy link
Member

viambot commented Dec 12, 2023

Overall readability score: 56.67 (🟢 +0.16)

File Readability
model.md 31.71 (🟢 +0)
gyro-mpu6050.md 46.65 (🟢 +0)
_index.md 65.9 (🟢 +0.4)
beaglebone.md 23.83 (🔴 -1.02)
fake.md 41.92 (🟢 +5.31)
jetson.md 36.42 (🟢 +1.18)
pi.md 41.75 (🔴 -1.88)
ti.md 26.86 (🔴 -0.09)
upboard.md 46.59 (🟢 +4.18)
ams-as5048.md 44.51 (🟢 +0.52)
gps-nmea-rtk-pmtk.md 53.34 (🟢 +0)
gps-nmea.md 53.37 (🟢 +0)
imu-vectornav.md 41.53 (🔴 -0.39)
mpu6050.md 43.55 (🟢 +0)
ina219.md 54.59 (🔴 -0.32)
ina226.md 52.39 (🔴 -0.24)
bme280.md 47.06 (🟢 +0)
sensirion-sht3xd.md 49.11 (🟢 +0)
board-attr-config.md 50.35 (🟢 +0)
board-analogs.md 64.61 (🟢 +0.05)
View detailed metrics

🟢 - Shows an increase in readability
🔴 - Shows a decrease in readability

File Readability FRE GF ARI CLI DCRS
model.md 31.71 23.02 12.84 15.6 15.71 9.94
  🟢 +0 🟢 +0 🟢 +0 🟢 +0 🟢 +0 🟢 +0
gyro-mpu6050.md 46.65 45.25 11.79 14.8 13.22 8.45
  🟢 +0 🟢 +0 🟢 +0 🟢 +0 🟢 +0 🟢 +0
_index.md 65.9 46.67 7.93 13.8 12.29 5.45
  🟢 +0.4 🟢 +0.1 🟢 +0.04 🟢 +0.1 🟢 +0.12 🟢 +0
beaglebone.md 23.83 22 12.46 20.4 19 8.93
  🔴 -1.02 🟢 +6.63 🔴 -0.89 🟢 +0.5 🟢 +0 🔴 -0.41
fake.md 41.92 33 11.35 15.6 15.76 8.05
  🟢 +5.31 🟢 +7.85 🔴 -0.31 🟢 +1.6 🟢 +1.8 🔴 -0.1
jetson.md 36.42 28.23 12.4 16.5 15.14 8.82
  🟢 +1.18 🔴 -1.93 🔴 -0.7 🟢 +0.8 🟢 +1.68 🔴 -0.26
pi.md 41.75 30.87 11.33 16.3 15.3 7.89
  🔴 -1.88 🔴 -1.22 🔴 -0.67 🔴 -0.2 🟢 +0.58 🔴 -0.33
ti.md 26.86 22 11.72 19.7 18.79 8.79
  🔴 -0.09 🟢 +6.63 🔴 -0.68 🟢 +0.6 🟢 +0.21 🔴 -0.37
upboard.md 46.59 42.17 10.68 14.2 14.89 8.44
  🟢 +4.18 🟢 +8.36 🔴 -0.08 🟢 +1 🟢 +1.05 🟢 +0
ams-as5048.md 44.51 39.74 12.25 14.1 13.68 8.7
  🟢 +0.52 🟢 +0.11 🔴 -0.01 🟢 +0.2 🟢 +0.23 🔴 -0.03
gps-nmea-rtk-pmtk.md 53.34 46.37 10.05 13.8 13.05 7.88
  🟢 +0 🟢 +0 🟢 +0 🟢 +0 🟢 +0 🟢 +0
gps-nmea.md 53.37 44.64 10.69 14.5 12.35 7.43
  🟢 +0 🟢 +0 🟢 +0 🟢 +0 🟢 +0 🟢 +0
imu-vectornav.md 41.53 43.43 11.68 16.8 14.16 8.69
  🔴 -0.39 🔴 -0.1 🔴 -0.02 🔴 -0.1 🟢 +0 🔴 -0.06
mpu6050.md 43.55 44.24 12.16 15.6 13.75 8.57
  🟢 +0 🟢 +0 🟢 +0 🟢 +0 🟢 +0 🟢 +0
ina219.md 54.59 50.23 9.36 13.3 13.15 8.24
  🔴 -0.32 🔴 -0.1 🔴 -0.01 🟢 +0 🟢 +0 🔴 -0.09
ina226.md 52.39 48.91 9.88 13.8 13.27 8.3
  🔴 -0.24 🔴 -0.1 🔴 -0.01 🟢 +0 🟢 +0.06 🔴 -0.09
bme280.md 47.06 47.49 11.37 14.5 13.51 8.67
  🟢 +0 🟢 +0 🟢 +0 🟢 +0 🟢 +0 🟢 +0
sensirion-sht3xd.md 49.11 48.2 10.97 14.1 13.33 8.54
  🟢 +0 🟢 +0 🟢 +0 🟢 +0 🟢 +0 🟢 +0
board-attr-config.md 50.35 55.74 12.65 14.9 12.93 7.46
  🟢 +0 🟢 +0 🟢 +0 🟢 +0 🟢 +0 🟢 +0
board-analogs.md 64.61 55.13 10.73 10.5 10.21 7.2
  🟢 +0.05 🟢 +0.5 🟢 +0.33 🔴 -0.1 🔴 -0.41 🟢 +0.04

Averages:

  Readability FRE GF ARI CLI DCRS
Average 56.67 48.57 10.47 12.9 11.9 7.64
  🟢 +0.16 🟢 +0.17 🟢 +0.02 🟢 +0.04 🟢 +0.02 🟢 +0
View metric targets
Metric Range Ideal score
Flesch Reading Ease 100 (very easy read) to 0 (extremely difficult read) 60
Gunning Fog 6 (very easy read) to 17 (extremely difficult read) 8 or less
Auto. Read. Index 6 (very easy read) to 14 (extremely difficult read) 8 or less
Coleman Liau Index 6 (very easy read) to 17 (extremely difficult read) 8 or less
Dale-Chall Readability 4.9 (very easy read) to 9.9 (extremely difficult read) 6.9 or less

Copy link
Member

@penguinland penguinland left a comment

Choose a reason for hiding this comment

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

LGTM!

@@ -6,7 +6,7 @@ type: "docs"
description: "Configure an MPU-6050 movement sensor."
images: ["/icons/components/imu.svg"]
aliases:
- /micro-rdk/movement-sensor/gyro-mpu6050/
- "/components/movement-sensor/mpu6050/"
Copy link
Member

Choose a reason for hiding this comment

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

Naive question: I don't understand what this line means or why it changed. What's going on here?

Copy link
Contributor

Choose a reason for hiding this comment

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

This alias entry simply redirects any incoming requests forhttps://docs.viam.com/build/micro-rdk/movement-sensor/gyro-mpu6050/ (currently live, will be gone after this PR) to https://docs.viam.com/build/components/movement-sensor/gyro-mpu6050/ (not yet live, will be live after this PR) instead.

Copy link
Member

Choose a reason for hiding this comment

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

It's not obvious to me that this PR is supposed to have a change like that. Why is it in here? I thought we were removing mention of "i2cs" and "spis" config entries in the boards, not renaming the gyroscope.

but if this is just some little nit that was supposed to go in wherever's convenient, I'm fine with it going here, too. 🤷

Copy link
Contributor

@andf-viam andf-viam Dec 12, 2023

Choose a reason for hiding this comment

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

@sguequierre looks like you're intending to delete one of /build/micro-rdk/movement-sensor/gyro-mpu6050.md or /components/movement-sensor/imu/mpu6050.md ? Maybe I misinterpreted your intent with my comment to Alan above?

It looks like one of these two needs to be deleted. Are we moving this movement sensor out of the micro-rdk section into components like the rest?

@penguinland this front matter section does not handle anything substantive to the rendered copy (like a displayed component name), but rather metadata-type stuff like aliases, SEO metadata, preview images for social, etc. Component names aren't being changed here.

Copy link
Member

Choose a reason for hiding this comment

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

This sensor should be in both the micro- and regular RDKs. and since the codebases are separate, it's possible they have slightly different implementations and might need slightly different docs. Is this about unifying them to a single set of docs? I don't know what's happening in micro-rdk...

Copy link
Contributor

@andf-viam andf-viam Dec 12, 2023

Choose a reason for hiding this comment

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

Gotcha, thanks for the clarification. I'll let Sierra chime in with her intent then. Likely my misinterpretation, then, current PR has both files retained. 👍

Copy link
Collaborator

Choose a reason for hiding this comment

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

The file at /components/movement-sensor/mpu6050/ still exists. If it should stay - which is what penguinland is saying, we don't that second redirect. We do need the first one you deleted/edited.

Copy link
Collaborator Author

@sguequierre sguequierre Dec 13, 2023

Choose a reason for hiding this comment

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

Sorry guys, I think this was a rebase issue that slipped past me! I didn't mean to change an alias. I edited this file at all in error, reverting now...

Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks! Sorry for my confusion!

@@ -106,7 +106,7 @@ The following attributes are available for `TMC5072` motors:
<!-- prettier-ignore -->
| Name | Type | Inclusion | Description |
| ---- | ---- | --------- | ----------- |
| `spi_bus` | string | **Required** | The board [SPI bus](/components/board/#spis) over which the TMC chip communicates with the board. |
| `spi_bus` | string | **Required** | The board SPI bus over which the TMC chip communicates with the board. |
Copy link
Member

Choose a reason for hiding this comment

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

Mild preference to remove the word "board" and have this just be "The SPI bus over which..." but I don't feel strongly. We already mention the board at the end of the sentence.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Good with me!

@@ -83,7 +83,7 @@ The following attributes are available for `INA219` sensors:
<!-- prettier-ignore -->
| Attribute | Type | Inclusion | Description |
| --------- | -----| --------- | ----------- |
| `i2c_bus` | integer | **Required** | The `number` of the [I<sup>2</sup>C bus](/components/board/#i2cs) that the sensor is connected to. |
| `i2c_bus` | integer | **Required** | The index of the I<sup>2</sup>C bus that the sensor is connected to. |
Copy link
Member

Choose a reason for hiding this comment

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

👍 Nice change here!

Copy link
Contributor

@andf-viam andf-viam left a comment

Choose a reason for hiding this comment

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

This LGTM! Nice work!

@@ -6,7 +6,7 @@ type: "docs"
description: "Configure an MPU-6050 movement sensor."
images: ["/icons/components/imu.svg"]
aliases:
- /micro-rdk/movement-sensor/gyro-mpu6050/
- "/components/movement-sensor/mpu6050/"
Copy link
Contributor

Choose a reason for hiding this comment

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

This alias entry simply redirects any incoming requests forhttps://docs.viam.com/build/micro-rdk/movement-sensor/gyro-mpu6050/ (currently live, will be gone after this PR) to https://docs.viam.com/build/components/movement-sensor/gyro-mpu6050/ (not yet live, will be live after this PR) instead.

@@ -6,7 +6,7 @@ type: "docs"
description: "Configure an MPU-6050 movement sensor."
images: ["/icons/components/imu.svg"]
aliases:
- /micro-rdk/movement-sensor/gyro-mpu6050/
Copy link
Collaborator

Choose a reason for hiding this comment

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

@andf-viam @sguequierre why are you deleting previous aliases? Unless you are readding a page under that URL, previous URLs need to stay.

@@ -6,7 +6,7 @@ type: "docs"
description: "Configure an MPU-6050 movement sensor."
images: ["/icons/components/imu.svg"]
aliases:
- /micro-rdk/movement-sensor/gyro-mpu6050/
- "/components/movement-sensor/mpu6050/"
Copy link
Collaborator

Choose a reason for hiding this comment

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

The file at /components/movement-sensor/mpu6050/ still exists. If it should stay - which is what penguinland is saying, we don't that second redirect. We do need the first one you deleted/edited.

@sguequierre sguequierre requested a review from npentrel December 13, 2023 16:58
@viambot
Copy link
Member

viambot commented Dec 13, 2023

You can view a rendered version of the docs from this PR at https://docs-test.viam.dev/2319

@sguequierre sguequierre merged commit c00f354 into viamrobotics:main Dec 13, 2023
10 checks passed
@sguequierre sguequierre deleted the DOCS-1459/remove=i2c-spis branch December 13, 2023 18:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
safe to build This pull request is marked safe to build from a trusted zone
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants