@@ -3,7 +3,6 @@ package org.team4099.lib.units.derived
3
3
import org.team4099.lib.units.Fraction
4
4
import org.team4099.lib.units.Product
5
5
import org.team4099.lib.units.UnitKey
6
- import org.team4099.lib.units.Unitless
7
6
import org.team4099.lib.units.Value
8
7
import org.team4099.lib.units.Velocity
9
8
import org.team4099.lib.units.base.Ampere
@@ -69,8 +68,6 @@ inline val <K : UnitKey> Value<K>.perRadianPerSecond
69
68
inline val <K : UnitKey > Value <K >.perDegreePerSecond
70
69
get() = perRadianPerSecond / RADIANS_PER_DEGREES
71
70
72
-
73
-
74
71
inline val Double .VoltsPerVolts
75
72
get() = Value <Fraction <Volt , Volt >>(this )
76
73
@@ -161,7 +158,6 @@ inline val DerivativeGain<Velocity<Radian>, Volt>.inVoltsPerDegreesPerSecondPerS
161
158
inline val DerivativeGain <Velocity <Radian >, Volt > .inVoltsPerRotationsPerMinutePerSecond: Double
162
159
get() = inVoltsPerRadiansPerSecondPerSecond / SECONDS_PER_MINUTE * RADIANS_PER_ROTATION
163
160
164
-
165
161
inline val Double .AmpsPerAmps
166
162
get() = Value <Fraction <Ampere , Ampere >>(this )
167
163
@@ -252,8 +248,7 @@ inline val DerivativeGain<Velocity<Radian>, Ampere>.inAmpsPerDegreesPerSecondPer
252
248
inline val DerivativeGain <Velocity <Radian >, Ampere > .inAmpsPerRotationsPerMinutePerSecond: Double
253
249
get() = inAmpsPerRadiansPerSecondPerSecond / SECONDS_PER_MINUTE * RADIANS_PER_ROTATION
254
250
255
-
256
- inline val Double .RadiansPerSecondPerRadiansPerSecond
251
+ inline val Double .radiansPerSecondPerRadiansPerSecond
257
252
get() = Value <Fraction <Velocity <Radian >, Velocity <Radian >>>(this )
258
253
259
254
inline val ProportionalGain <Meter , Velocity <Radian >>.inRadiansPerSecondPerMeter: Double
@@ -274,13 +269,16 @@ inline val ProportionalGain<Radian, Velocity<Radian>>.inRadiansPerSecondPerDegre
274
269
inline val ProportionalGain <Radian , Velocity <Radian >>.inRadiansPerSecondPerRotation: Double
275
270
get() = inRadiansPerSecondPerRadian * RADIANS_PER_ROTATION
276
271
277
- inline val ProportionalGain <Velocity <Meter >, Velocity <Radian >>.inRadiansPerSecondPerMetersPerSecond: Double
278
- get() = value
272
+ inline val ProportionalGain <Velocity <Meter >, Velocity <Radian >>.inRadiansPerSecondPerMetersPerSecond:
273
+ Double
274
+ get() = value
279
275
280
- inline val ProportionalGain <Velocity <Radian >, Velocity <Radian >>.inRadiansPerSecondPerRadiansPerSecond: Double
276
+ inline val ProportionalGain <
277
+ Velocity <Radian >, Velocity <Radian >>.inRadiansPerSecondPerRadiansPerSecond: Double
281
278
get() = value
282
279
283
- inline val ProportionalGain <Velocity <Radian >, Velocity <Radian >>.inRadiansPerSecondPerRotationPerMinute: Double
280
+ inline val ProportionalGain <
281
+ Velocity <Radian >, Velocity <Radian >>.inRadiansPerSecondPerRotationPerMinute: Double
284
282
get() = inRadiansPerSecondPerRadiansPerSecond * RADIANS_PER_ROTATION / SECONDS_PER_MINUTE
285
283
286
284
inline val IntegralGain <Meter , Velocity <Radian >>.inRadiansPerSecondPerMeterSeconds: Double
@@ -322,7 +320,8 @@ inline val DerivativeGain<Meter, Velocity<Radian>>.inRadiansPerSecondPerInchPerS
322
320
inline val DerivativeGain <Meter , Velocity <Radian >>.inRadiansPerSecondPerFootPerSecond: Double
323
321
get() = inRadiansPerSecondPerMeterPerSecond * METERS_PER_FOOT
324
322
325
- inline val DerivativeGain <Velocity <Meter >, Velocity <Radian >>.inRadiansPerSecondPerMetersPerSecondPerSecond: Double
323
+ inline val DerivativeGain <
324
+ Velocity <Meter >, Velocity <Radian >>.inRadiansPerSecondPerMetersPerSecondPerSecond: Double
326
325
get() = value
327
326
328
327
inline val DerivativeGain <Radian , Velocity <Radian >>.inRadiansPerSecondPerRadianPerSecond: Double
@@ -334,17 +333,19 @@ inline val DerivativeGain<Radian, Velocity<Radian>>.inRadiansPerSecondPerDegreeP
334
333
inline val DerivativeGain <Radian , Velocity <Radian >>.inRadiansPerSecondPerRotationsPerMinute: Double
335
334
get() = inRadiansPerSecondPerRadianPerSecond / SECONDS_PER_MINUTE * RADIANS_PER_ROTATION
336
335
337
- inline val DerivativeGain <Velocity <Radian >, Velocity <Radian >>.inRadiansPerSecondPerRadiansPerSecondPerSecond: Double
336
+ inline val DerivativeGain <
337
+ Velocity <Radian >, Velocity <Radian >>.inRadiansPerSecondPerRadiansPerSecondPerSecond: Double
338
338
get() = value
339
339
340
- inline val DerivativeGain <Velocity <Radian >, Velocity <Radian >>.inRadiansPerSecondPerDegreesPerSecondPerSecond: Double
340
+ inline val DerivativeGain <
341
+ Velocity <Radian >, Velocity <Radian >>.inRadiansPerSecondPerDegreesPerSecondPerSecond: Double
341
342
get() = inRadiansPerSecondPerRadiansPerSecondPerSecond * RADIANS_PER_DEGREES
342
343
343
- inline val DerivativeGain <Velocity <Radian >, Velocity <Radian >>.inRadiansPerSecondPerRotationsPerMinutePerSecond: Double
344
+ inline val DerivativeGain <
345
+ Velocity <Radian >, Velocity <Radian >>.inRadiansPerSecondPerRotationsPerMinutePerSecond: Double
344
346
get() = inRadiansPerSecondPerRadiansPerSecondPerSecond / SECONDS_PER_MINUTE * RADIANS_PER_ROTATION
345
347
346
-
347
- inline val Double .MetersPerSecondPerMetersPerSecond
348
+ inline val Double .metersPerSecondPerMetersPerSecond
348
349
get() = Value <Fraction <Velocity <Meter >, Velocity <Meter >>>(this )
349
350
350
351
inline val ProportionalGain <Meter , Velocity <Meter >>.inMetersPerSecondPerMeter: Double
@@ -365,13 +366,16 @@ inline val ProportionalGain<Radian, Velocity<Meter>>.inMetersPerSecondPerDegree:
365
366
inline val ProportionalGain <Radian , Velocity <Meter >>.inMetersPerSecondPerRotation: Double
366
367
get() = inMetersPerSecondPerRadian * RADIANS_PER_ROTATION
367
368
368
- inline val ProportionalGain <Velocity <Meter >, Velocity <Meter >>.inMetersPerSecondPerMetersPerSecond: Double
369
- get() = value
369
+ inline val ProportionalGain <Velocity <Meter >, Velocity <Meter >>.inMetersPerSecondPerMetersPerSecond:
370
+ Double
371
+ get() = value
370
372
371
- inline val ProportionalGain <Velocity <Radian >, Velocity <Meter >>.inMetersPerSecondPerRadiansPerSecond: Double
372
- get() = value
373
+ inline val ProportionalGain <Velocity <Radian >, Velocity <Meter >>.inMetersPerSecondPerRadiansPerSecond:
374
+ Double
375
+ get() = value
373
376
374
- inline val ProportionalGain <Velocity <Radian >, Velocity <Meter >>.inMetersPerSecondPerRotationPerMinute: Double
377
+ inline val ProportionalGain <
378
+ Velocity <Radian >, Velocity <Meter >>.inMetersPerSecondPerRotationPerMinute: Double
375
379
get() = inMetersPerSecondPerRadiansPerSecond * RADIANS_PER_ROTATION / SECONDS_PER_MINUTE
376
380
377
381
inline val IntegralGain <Meter , Velocity <Meter >>.inMetersPerSecondPerMeterSeconds: Double
@@ -413,7 +417,8 @@ inline val DerivativeGain<Meter, Velocity<Meter>>.inMetersPerSecondPerInchPerSec
413
417
inline val DerivativeGain <Meter , Velocity <Meter >>.inMetersPerSecondPerFootPerSecond: Double
414
418
get() = inMetersPerSecondPerMeterPerSecond * METERS_PER_FOOT
415
419
416
- inline val DerivativeGain <Velocity <Meter >, Velocity <Meter >>.inMetersPerSecondPerMetersPerSecondPerSecond: Double
420
+ inline val DerivativeGain <
421
+ Velocity <Meter >, Velocity <Meter >>.inMetersPerSecondPerMetersPerSecondPerSecond: Double
417
422
get() = value
418
423
419
424
inline val DerivativeGain <Radian , Velocity <Meter >>.inMetersPerSecondPerRadianPerSecond: Double
@@ -425,16 +430,18 @@ inline val DerivativeGain<Radian, Velocity<Meter>>.inMetersPerSecondPerDegreePer
425
430
inline val DerivativeGain <Radian , Velocity <Meter >>.inMetersPerSecondPerRotationsPerMinute: Double
426
431
get() = inMetersPerSecondPerRadianPerSecond / SECONDS_PER_MINUTE * RADIANS_PER_ROTATION
427
432
428
- inline val DerivativeGain <Velocity <Radian >, Velocity <Meter >>.inMetersPerSecondPerRadiansPerSecondPerSecond: Double
433
+ inline val DerivativeGain <
434
+ Velocity <Radian >, Velocity <Meter >>.inMetersPerSecondPerRadiansPerSecondPerSecond: Double
429
435
get() = value
430
436
431
- inline val DerivativeGain <Velocity <Radian >, Velocity <Meter >>.inMetersPerSecondPerDegreesPerSecondPerSecond: Double
437
+ inline val DerivativeGain <
438
+ Velocity <Radian >, Velocity <Meter >>.inMetersPerSecondPerDegreesPerSecondPerSecond: Double
432
439
get() = inMetersPerSecondPerRadiansPerSecondPerSecond * RADIANS_PER_DEGREES
433
440
434
- inline val DerivativeGain <Velocity <Radian >, Velocity <Meter >>.inMetersPerSecondPerRotationsPerMinutePerSecond: Double
441
+ inline val DerivativeGain <
442
+ Velocity <Radian >, Velocity <Meter >>.inMetersPerSecondPerRotationsPerMinutePerSecond: Double
435
443
get() = inMetersPerSecondPerRadiansPerSecondPerSecond / SECONDS_PER_MINUTE * RADIANS_PER_ROTATION
436
444
437
-
438
445
inline val Double .MetersPerMeters
439
446
get() = Value <Fraction <Meter , Meter >>(this )
440
447
@@ -525,7 +532,6 @@ inline val DerivativeGain<Velocity<Radian>, Meter>.inMetersPerDegreesPerSecondPe
525
532
inline val DerivativeGain <Velocity <Radian >, Meter > .inMetersPerRotationsPerMinutePerSecond: Double
526
533
get() = inMetersPerRadiansPerSecondPerSecond / SECONDS_PER_MINUTE * RADIANS_PER_ROTATION
527
534
528
-
529
535
inline val Double .DegreesPerSecondPerDegreesPerSecond
530
536
get() = Value <Fraction <Velocity <Radian >, Velocity <Radian >>>(this )
531
537
@@ -547,13 +553,16 @@ inline val ProportionalGain<Radian, Velocity<Radian>>.inDegreesPerSecondPerDegre
547
553
inline val ProportionalGain <Radian , Velocity <Radian >>.inDegreesPerSecondPerRotation: Double
548
554
get() = inDegreesPerSecondPerRadian * RADIANS_PER_ROTATION
549
555
550
- inline val ProportionalGain <Velocity <Meter >, Velocity <Radian >>.inDegreesPerSecondPerMetersPerSecond: Double
551
- get() = value
556
+ inline val ProportionalGain <Velocity <Meter >, Velocity <Radian >>.inDegreesPerSecondPerMetersPerSecond:
557
+ Double
558
+ get() = value
552
559
553
- inline val ProportionalGain <Velocity <Radian >, Velocity <Radian >>.inDegreesPerSecondPerRadiansPerSecond: Double
560
+ inline val ProportionalGain <
561
+ Velocity <Radian >, Velocity <Radian >>.inDegreesPerSecondPerRadiansPerSecond: Double
554
562
get() = value
555
563
556
- inline val ProportionalGain <Velocity <Radian >, Velocity <Radian >>.inDegreesPerSecondPerRotationPerMinute: Double
564
+ inline val ProportionalGain <
565
+ Velocity <Radian >, Velocity <Radian >>.inDegreesPerSecondPerRotationPerMinute: Double
557
566
get() = inDegreesPerSecondPerRadiansPerSecond * RADIANS_PER_ROTATION / SECONDS_PER_MINUTE
558
567
559
568
inline val IntegralGain <Meter , Velocity <Radian >>.inDegreesPerSecondPerMeterSeconds: Double
@@ -595,7 +604,8 @@ inline val DerivativeGain<Meter, Velocity<Radian>>.inDegreesPerSecondPerInchPerS
595
604
inline val DerivativeGain <Meter , Velocity <Radian >>.inDegreesPerSecondPerFootPerSecond: Double
596
605
get() = inDegreesPerSecondPerMeterPerSecond * METERS_PER_FOOT
597
606
598
- inline val DerivativeGain <Velocity <Meter >, Velocity <Radian >>.inDegreesPerSecondPerMetersPerSecondPerSecond: Double
607
+ inline val DerivativeGain <
608
+ Velocity <Meter >, Velocity <Radian >>.inDegreesPerSecondPerMetersPerSecondPerSecond: Double
599
609
get() = value
600
610
601
611
inline val DerivativeGain <Radian , Velocity <Radian >>.inDegreesPerSecondPerRadianPerSecond: Double
@@ -607,11 +617,14 @@ inline val DerivativeGain<Radian, Velocity<Radian>>.inDegreesPerSecondPerDegreeP
607
617
inline val DerivativeGain <Radian , Velocity <Radian >>.inDegreesPerSecondPerRotationsPerMinute: Double
608
618
get() = inDegreesPerSecondPerRadianPerSecond / SECONDS_PER_MINUTE * RADIANS_PER_ROTATION
609
619
610
- inline val DerivativeGain <Velocity <Radian >, Velocity <Radian >>.inDegreesPerSecondPerRadiansPerSecondPerSecond: Double
620
+ inline val DerivativeGain <
621
+ Velocity <Radian >, Velocity <Radian >>.inDegreesPerSecondPerRadiansPerSecondPerSecond: Double
611
622
get() = value
612
623
613
- inline val DerivativeGain <Velocity <Radian >, Velocity <Radian >>.inDegreesPerSecondPerDegreesPerSecondPerSecond: Double
624
+ inline val DerivativeGain <
625
+ Velocity <Radian >, Velocity <Radian >>.inDegreesPerSecondPerDegreesPerSecondPerSecond: Double
614
626
get() = inDegreesPerSecondPerRadiansPerSecondPerSecond * RADIANS_PER_DEGREES
615
627
616
- inline val DerivativeGain <Velocity <Radian >, Velocity <Radian >>.inDegreesPerSecondPerRotationsPerMinutePerSecond: Double
628
+ inline val DerivativeGain <
629
+ Velocity <Radian >, Velocity <Radian >>.inDegreesPerSecondPerRotationsPerMinutePerSecond: Double
617
630
get() = inDegreesPerSecondPerRadiansPerSecondPerSecond / SECONDS_PER_MINUTE * RADIANS_PER_ROTATION
0 commit comments