diff --git a/classpros_1_1v5_1_1MotorGroup.html b/classpros_1_1v5_1_1MotorGroup.html index 8c7afe6..7887d24 100644 --- a/classpros_1_1v5_1_1MotorGroup.html +++ b/classpros_1_1v5_1_1MotorGroup.html @@ -453,7 +453,7 @@

Motor configuration functions std::int8_t get_port(const std::uint8_t index = 0) const virtual -
Gets the port of a motor in the motor group.
+
Gets the port of a motor in the motor group via index.
void operator+=(MotorGroup&)
diff --git a/group__cpp-motor-group.html b/group__cpp-motor-group.html index 15ae383..64d519b 100644 --- a/group__cpp-motor-group.html +++ b/group__cpp-motor-group.html @@ -450,7 +450,7 @@

Motor configuration functions std::int8_t get_port(const std::uint8_t index = 0) const virtual -
Gets the port of a motor in the motor group.
+
Gets the port of a motor in the motor group via index.
void operator+=(MotorGroup&)
@@ -2805,18 +2805,24 @@

std::int8_t get_port(const std::uint8_t index = 0) const virtual
#include <pros/motor_group.hpp>

-

Gets the port of a motor in the motor group.

+

Gets the port of a motor in the motor group via index.

+ + + + + + + + + - +
Parameters
indexOptional parameter, 0 by default. The zero indexed index of the motor in the motor group
ReturnsReturns The port of the motor at the specified index. The return value is negative if the corresponding motor is reversed
-
 * \param index Optional parameter, 0 by default.
-            The zero indexed index of the motor in the motor group
-

diff --git a/group__cpp-motors.html b/group__cpp-motors.html index 8cd825c..ddca82b 100644 --- a/group__cpp-motors.html +++ b/group__cpp-motors.html @@ -464,7 +464,7 @@

Variables

std::int8_t _port
-
+
The port of the motor.
@@ -500,7 +500,7 @@

Motor first_motor(1); //Creates a motor on port 1 without altering gearset or encoder units Motor reversed_motor(-2); //Creates a reversed motor on port 1 port 1 without altering gearset or encoder units Motor blue_motor(3, pros::v5::MotorGears::blue); //Creates a motor on port 3 with blue gear set - Motor rotations_motor(4, pros::v5::MotorGears::green, pros::v5::MotorUnits::rotations); port 4 w/ rotations + Motor rotations_motor(4, pros::v5::MotorGears::green, pros::v5::MotorUnits::rotations); //port 4 w/ rotations }

@@ -2751,7 +2751,8 @@

std::int8_t _port
#include <pros/motors.hpp>

-

+

The port of the motor.

+

Negative ports indicate that the motor is reversed

diff --git a/xml/classpros_1_1v5_1_1Motor.xml b/xml/classpros_1_1v5_1_1Motor.xml index 337618f..bd0bcda 100644 --- a/xml/classpros_1_1v5_1_1Motor.xml +++ b/xml/classpros_1_1v5_1_1Motor.xml @@ -3151,12 +3151,14 @@ This function uses the following values of errno when an error state is reached: _port +The port of the motor. +Negative ports indicate that the motor is reversed - + @@ -3213,7 +3215,7 @@ This function uses the following values of errno when an error state is reached: Motorfirst_motor(1);//Createsamotoronport1withoutalteringgearsetorencoderunits Motorreversed_motor(-2);//Createsareversedmotoronport1port1withoutalteringgearsetorencoderunits Motorblue_motor(3,pros::v5::MotorGears::blue);//Createsamotoronport3withbluegearset -Motorrotations_motor(4,pros::v5::MotorGears::green,pros::v5::MotorUnits::rotations);port4w/rotations +Motorrotations_motor(4,pros::v5::MotorGears::green,pros::v5::MotorUnits::rotations);//port4w/rotations } @@ -3280,7 +3282,7 @@ This function uses the following values of errno when an error state is reached: - + pros::v5::Motor_port pros::v5::Motorbrake diff --git a/xml/classpros_1_1v5_1_1MotorGroup.xml b/xml/classpros_1_1v5_1_1MotorGroup.xml index c475128..482ce6c 100644 --- a/xml/classpros_1_1v5_1_1MotorGroup.xml +++ b/xml/classpros_1_1v5_1_1MotorGroup.xml @@ -3057,13 +3057,19 @@ This function uses the following values of errno when an error state is reached: 0 -Gets the port of a motor in the motor group. +Gets the port of a motor in the motor group via index. - * \param index Optional parameter, 0 by default. - The zero indexed index of the motor in the motor group - -The port of the motor at the specified index. The return value is negative if the corresponding motor is reversed + + +index + + +Optional parameter, 0 by default. The zero indexed index of the motor in the motor group + + + +The port of the motor at the specified index. The return value is negative if the corresponding motor is reversed diff --git a/xml/group__cpp-motor-group.xml b/xml/group__cpp-motor-group.xml index fbeb856..993967d 100644 --- a/xml/group__cpp-motor-group.xml +++ b/xml/group__cpp-motor-group.xml @@ -3057,13 +3057,19 @@ This function uses the following values of errno when an error state is reached: 0 -Gets the port of a motor in the motor group. +Gets the port of a motor in the motor group via index. - * \param index Optional parameter, 0 by default. - The zero indexed index of the motor in the motor group - -The port of the motor at the specified index. The return value is negative if the corresponding motor is reversed + + +index + + +Optional parameter, 0 by default. The zero indexed index of the motor in the motor group + + + +The port of the motor at the specified index. The return value is negative if the corresponding motor is reversed diff --git a/xml/group__cpp-motors.xml b/xml/group__cpp-motors.xml index 155e65d..afba398 100644 --- a/xml/group__cpp-motors.xml +++ b/xml/group__cpp-motors.xml @@ -3150,12 +3150,14 @@ This function uses the following values of errno when an error state is reached: _port +The port of the motor. +Negative ports indicate that the motor is reversed - + @@ -3212,7 +3214,7 @@ This function uses the following values of errno when an error state is reached: Motorfirst_motor(1);//Createsamotoronport1withoutalteringgearsetorencoderunits Motorreversed_motor(-2);//Createsareversedmotoronport1port1withoutalteringgearsetorencoderunits Motorblue_motor(3,pros::v5::MotorGears::blue);//Createsamotoronport3withbluegearset -Motorrotations_motor(4,pros::v5::MotorGears::green,pros::v5::MotorUnits::rotations);port4w/rotations +Motorrotations_motor(4,pros::v5::MotorGears::green,pros::v5::MotorUnits::rotations);//port4w/rotations } @@ -3253,7 +3255,7 @@ This function uses the following values of errno when an error state is reached: - + const pros::Motor @@ -3270,7 +3272,7 @@ This function uses the following values of errno when an error state is reached: - + diff --git a/xml/motors_8hpp.xml b/xml/motors_8hpp.xml index c7ee8f1..43e597a 100644 --- a/xml/motors_8hpp.xml +++ b/xml/motors_8hpp.xml @@ -195,7 +195,7 @@ - + const pros::Motor @@ -212,7 +212,7 @@ - + diff --git a/xml/namespacepros_1_1v5_1_1literals.xml b/xml/namespacepros_1_1v5_1_1literals.xml index 14f72c6..bd327ca 100644 --- a/xml/namespacepros_1_1v5_1_1literals.xml +++ b/xml/namespacepros_1_1v5_1_1literals.xml @@ -81,7 +81,7 @@ - + const pros::Motor @@ -98,7 +98,7 @@ - + const pros::Optical