Skip to content

Commit

Permalink
fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
oxkitsune committed Nov 30, 2024
1 parent 520ec07 commit 583fe46
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion nidhogg/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ pub enum Error {
#[error("Failed to encode MessagePack message")]
MsgPackEncodeError(#[from] rmp_serde::encode::Error),

// todo: fork zmq and impl Display for `zmq_remote_api::RemoteApiError` so we can make it transparant.
// todo: fork zmq and impl Display for `zmq_remote_api::RemoteApiError` so we can make it transparent.
#[cfg(feature = "coppelia")]
#[error("Failed to connect to Coppelia simulator!")]
CoppeliaConnectError(String),
Expand Down
2 changes: 1 addition & 1 deletion nidhogg/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ pub struct NaoState {
/// There are three different kinds of waves, that might impact the value measured,
/// which can be configured in [`NaoControlMessage`].
///
/// A more detailed explanation of the diferent wave kinds can be found [here](http://doc.aldebaran.com/2-8/family/nao_technical/lola/actuator_sensor_names.html#sonars).
/// A more detailed explanation of the different wave kinds can be found [here](http://doc.aldebaran.com/2-8/family/nao_technical/lola/actuator_sensor_names.html#sonars).
pub sonar: SonarValues,
pub force_sensitive_resistors: ForceSensitiveResistors,
pub touch: Touch,
Expand Down
6 changes: 3 additions & 3 deletions nidhogg/src/types/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ impl ForceSensitiveResistors {
self.left_foot.sum() + self.right_foot.sum()
}

/// Calculates the average weigth based on the measurement from the resistors in both feet.
/// Calculates the average weight based on the measurement from the resistors in both feet.
pub fn avg(&self) -> f32 {
(self.left_foot.avg() + self.right_foot.avg()) / 2.0
}
Expand Down Expand Up @@ -314,11 +314,11 @@ pub struct SingleArmJoints<T> {
}

/// Type definition for the left arm joints of the robot.
/// Introduced for api consistenty with [`LeftLegJoints`].
/// Introduced for api consistency with [`LeftLegJoints`].
pub type LeftArmJoints<T> = SingleArmJoints<T>;

/// Type definition for the right arm joints of the robot.
/// Introduced for api consistenty with [`RightLegJoints`].
/// Introduced for api consistency with [`RightLegJoints`].
pub type RightArmJoints<T> = SingleArmJoints<T>;

/// Wrapper struct containing the arm joints of the robot.
Expand Down

0 comments on commit 583fe46

Please sign in to comment.