allMetrics property
- @override
override
A list of user-friendly explanations for each of the metrics.
Be sure to store the actual values as fields. This property should be a list of one user-friendly explanation per metric.
Implementation
@override
List<MetricLine> get allMetrics => [
MetricLine("IK: "),
MetricLine(" Current: ${data.currentPosition.prettyPrint}"),
MetricLine(" Target: ${data.targetPosition.prettyPrint}"),
MetricLine("------------------------------"),
MetricLine("Swivel: "),
...getMotorData(data.base),
MetricLine("------------------------------"),
MetricLine("Shoulder: "),
...getMotorData(data.shoulder),
MetricLine("------------------------------"),
MetricLine("Elbow: "),
...getMotorData(data.elbow),
];