Skip to content

Commit 75e2498

Browse files
authored
Fix typos (#1508)
Signed-off-by: Jade Turner <[email protected]>
1 parent 7a4ea3d commit 75e2498

File tree

28 files changed

+40
-39
lines changed

28 files changed

+40
-39
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ If you're cross-compiling, you'll need the wpilib toolchain installed. This can
4747

4848
## Out-of-Source Dependencies
4949

50-
PhotonVision uses the following additonal out-of-source repositories for building code.
50+
PhotonVision uses the following additional out-of-source repositories for building code.
5151

5252
- Base system images for Raspberry Pi & Orange Pi: https://github.com/PhotonVision/photon-image-modifier
5353
- C++ driver for Raspberry Pi CSI cameras: https://github.com/PhotonVision/photon-libcamera-gl-driver

docs/source/docs/contributing/building-docs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ The built documentation is located at `docs/build/html/index.html` relative to t
2626

2727
## Docs Builds on Pull Requests
2828

29-
Pre-merge builds of docs can be found at: `https://photonvision-docs--PRNUMBER.org.readthedocs.build/en/PRNUMBER/index.html`. These docs are republished on every commit to a pull request made to PhotonVision/photonvision-docs. For example, PR 325 would have pre-merge documentation published to `https://photonvision-docs--325.org.readthedocs.build/en/325/index.html`. Additionally, the pull requrest will have a link directly to the pre-release build of the docs. This build only runs when there is a change to files in the docs sub-folder.
29+
Pre-merge builds of docs can be found at: `https://photonvision-docs--PRNUMBER.org.readthedocs.build/en/PRNUMBER/index.html`. These docs are republished on every commit to a pull request made to PhotonVision/photonvision-docs. For example, PR 325 would have pre-merge documentation published to `https://photonvision-docs--325.org.readthedocs.build/en/325/index.html`. Additionally, the pull request will have a link directly to the pre-release build of the docs. This build only runs when there is a change to files in the docs sub-folder.
3030

3131
## Style Guide
3232

docs/source/docs/installation/sw_install/raspberry-pi.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ A Pre-Built Raspberry Pi image is available for ease of installation.
77
Download the latest release of the PhotonVision Raspberry image (.xz file) from the [releases page](https://github.com/PhotonVision/photonvision/releases). You do not need to extract the downloaded ZIP file.
88

99
:::{note}
10-
Make sure you download the image that ends in '-RasberryPi.xz'.
10+
Make sure you download the image that ends in '-RaspberryPi.xz'.
1111
:::
1212

1313
## Flashing the Pi Image

photon-client/src/types/SettingTypes.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ export interface CameraCalibrationResult {
142142
distCoeffs: JsonMatOfDouble;
143143
observations: BoardObservation[];
144144
calobjectWarp?: number[];
145-
// We might have to omit observations for bandwith, so backend will send us this
145+
// We might have to omit observations for bandwidth, so backend will send us this
146146
numSnapshots: number;
147147
meanErrors: number[];
148148
}

photon-core/src/main/java/org/photonvision/common/configuration/ConfigManager.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,8 @@ public File getModelsDirectory() {
340340

341341
/**
342342
* Disable flushing settings to disk as part of our JVM exit hook. Used to prevent uploading all
343-
* settings from getting its new configs overwritten at program exit and before theyre all loaded.
343+
* settings from getting its new configs overwritten at program exit and before they're all
344+
* loaded.
344345
*/
345346
public void disableFlushOnShutdown() {
346347
this.flushOnShutdown = false;

photon-core/src/main/java/org/photonvision/common/hardware/GPIO/pi/PigpioCommand.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public enum PigpioCommand {
2828
PCMD_WVDEL(50), // int wave_delete(unsigned wave_id)
2929
PCMD_WVTX(51), // int wave_tx_send(unsigned wave_id) (once)
3030
PCMD_WVTXR(52), // int wave_tx_send(unsigned wave_id) (repeat)
31-
PCMD_GDC(83), // int get_duty_cyle(unsigned user_gpio)
31+
PCMD_GDC(83), // int get_duty_cycle(unsigned user_gpio)
3232
PCMD_HP(86), // int hardware_pwm(unsigned gpio, unsigned PWMfreq, unsigned PWMduty)
3333
PCMD_WVTXM(100); // int wave_tx_send(unsigned wave_id, unsigned wave_mode)
3434

photon-core/src/main/java/org/photonvision/common/hardware/metrics/cmds/RK3588Cmds.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public void initCmds(HardwareConfig config) {
2727
// CPU Temperature
2828
/* The RK3588 chip has 7 thermal zones that can be accessed via:
2929
* /sys/class/thermal/thermal_zoneX/temp
30-
* where X is an interger from 0 to 6.
30+
* where X is an integer from 0 to 6.
3131
*
3232
* || Zone || Location || Comments ||
3333
* | 0 | soc | soc thermal (near the center of the chip) |

photon-core/src/main/java/org/photonvision/vision/camera/QuirkyCamera.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ private QuirkyCamera(int usbVid, int usbPid, String baseName, CameraQuirk... qui
143143
* @param usbVid USB VID of camera
144144
* @param usbPid USB PID of camera
145145
* @param baseName CSCore name of camera
146-
* @param displayName Human-friendly quicky camera name
146+
* @param displayName Human-friendly quirky camera name
147147
* @param quirks Camera quirks
148148
*/
149149
private QuirkyCamera(
@@ -160,7 +160,7 @@ private QuirkyCamera(
160160
this.quirks.put(q, true);
161161
}
162162

163-
// (2) for all other quirks in CameraQuirks (in this version of Photon), defalut to false
163+
// (2) for all other quirks in CameraQuirks (in this version of Photon), default to false
164164
for (var q : CameraQuirk.values()) {
165165
this.quirks.putIfAbsent(q, false);
166166
}

photon-core/src/main/java/org/photonvision/vision/frame/consumer/FileSaveFrameConsumer.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -152,17 +152,17 @@ private String getMatchData() {
152152
var matchType = ntMatchType.getAtomic();
153153
if (matchType.timestamp == 0) {
154154
// no NT info yet
155-
logger.warn("Did not recieve match type, defaulting to 0");
155+
logger.warn("Did not receive match type, defaulting to 0");
156156
}
157157

158158
var matchNum = ntMatchNum.getAtomic();
159159
if (matchNum.timestamp == 0) {
160-
logger.warn("Did not recieve match num, defaulting to -1");
160+
logger.warn("Did not receive match num, defaulting to -1");
161161
}
162162

163163
var eventName = ntEventName.getAtomic();
164164
if (eventName.timestamp == 0) {
165-
logger.warn("Did not recieve event name, defaulting to 'UNKNOWN'");
165+
logger.warn("Did not receive event name, defaulting to 'UNKNOWN'");
166166
}
167167

168168
String matchTypeStr =

photon-core/src/main/java/org/photonvision/vision/pipe/impl/CornerDetectionPipe.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ private List<Point> detectExtremeCornersByApproxPolyDp(TrackedTarget target, boo
140140
var compareDistToTr =
141141
Comparator.comparingDouble((Point p) -> distanceBetween(p, boundingBoxCorners.get(2)));
142142

143-
// top left and top right are the poly corners closest to the bouding box tl and tr
143+
// top left and top right are the poly corners closest to the bounding box tl and tr
144144
pointList.sort(compareDistToTl);
145145
var tl = pointList.get(0);
146146
pointList.remove(tl);

0 commit comments

Comments
 (0)