Setting threshold to Torque device
This commit is contained in:
@@ -70,7 +70,7 @@ class TelemetryService
|
||||
'PowerLoss_value' => [
|
||||
['threshold' => 2.5, 'color' => 'green'],
|
||||
['threshold' => 5, 'color' => 'orange'],
|
||||
['threshold' => 7.55, 'color' => 'red']
|
||||
['threshold' => 7.5, 'color' => 'red']
|
||||
],
|
||||
'GlobalLevel_value' => [
|
||||
['threshold' => 2, 'color' => 'green'],
|
||||
@@ -89,7 +89,7 @@ class TelemetryService
|
||||
{
|
||||
return [
|
||||
'ChannelSpeed' => [
|
||||
['min' => 0, 'color' => 5000]
|
||||
['min' => 0, 'color' => 50000]
|
||||
],
|
||||
'PowerLoss_value' => [
|
||||
['min' => 0, 'color' => 10]
|
||||
@@ -97,6 +97,12 @@ class TelemetryService
|
||||
'GlobalLevel_value' => [
|
||||
['min' => 0, 'color' => 10]
|
||||
],
|
||||
'StaticTorque_value' => [
|
||||
['min' => 0, 'color' => 50000]
|
||||
],
|
||||
'StaticPower_value' => [
|
||||
['min' => 0, 'color' => 500000]
|
||||
],
|
||||
'default' => [
|
||||
['min' => 0, 'color' => 100]
|
||||
]
|
||||
@@ -136,7 +142,7 @@ class TelemetryService
|
||||
|
||||
$transformedTelemetry[] = [
|
||||
'display_name' => $displayNameMap[$key] ?? $key,
|
||||
'value' => (string)$value,
|
||||
'value' => number_format((float)$value, 2),
|
||||
'health_status' => $status,
|
||||
'thresholds' => $thresholds,
|
||||
'limit' => $thresholdLimits
|
||||
|
||||
Reference in New Issue
Block a user