[docs] Add missing JavaDocs (#6146)

This commit is contained in:
Tyler Veness
2024-01-04 08:38:06 -08:00
committed by GitHub
parent 6e58db398d
commit f29a7d2e50
145 changed files with 1106 additions and 94 deletions

View File

@@ -26,19 +26,28 @@ class WPILIB_DLLEXPORT DCMotor {
units::unit_t<units::compound_unit<units::newton_meters,
units::inverse<units::ampere>>>;
/// Voltage at which the motor constants were measured.
units::volt_t nominalVoltage;
/// Torque when stalled.
units::newton_meter_t stallTorque;
/// Current draw when stalled.
units::ampere_t stallCurrent;
/// Current draw under no load.
units::ampere_t freeCurrent;
/// Angular velocity under no load.
units::radians_per_second_t freeSpeed;
// Resistance of motor
/// Motor internal resistance.
units::ohm_t R;
// Motor velocity constant
/// Motor velocity constant.
radians_per_second_per_volt_t Kv;
// Torque constant
/// Motor torque constant.
newton_meters_per_ampere_t Kt;
/**

View File

@@ -20,6 +20,9 @@
#include "units/voltage.h"
namespace frc {
/**
* Linear system ID utility functions.
*/
class WPILIB_DLLEXPORT LinearSystemId {
public:
template <typename Distance>