安卓权限添加
This commit is contained in:
@@ -231,8 +231,8 @@ class _DeviceStatusModalState extends State<DeviceStatusModal> {
|
||||
).translate('running_status.target_speed') +
|
||||
"\n(rpm)",
|
||||
),
|
||||
_buildTableCell('--'),
|
||||
_buildTableCell('--'),
|
||||
_buildTableCell(status.leftTargetSpeed.toStringAsFixed(0)),
|
||||
_buildTableCell(status.rightTargetSpeed.toStringAsFixed(0)),
|
||||
],
|
||||
),
|
||||
TableRow(
|
||||
@@ -243,8 +243,8 @@ class _DeviceStatusModalState extends State<DeviceStatusModal> {
|
||||
).translate('running_status.measure_speed') +
|
||||
"\n(rpm)",
|
||||
),
|
||||
_buildTableCell('--'),
|
||||
_buildTableCell('--'),
|
||||
_buildTableCell(status.leftMeasureSpeed.toStringAsFixed(0)),
|
||||
_buildTableCell(status.rightMeasureSpeed.toStringAsFixed(0)),
|
||||
],
|
||||
),
|
||||
TableRow(
|
||||
@@ -255,8 +255,8 @@ class _DeviceStatusModalState extends State<DeviceStatusModal> {
|
||||
).translate('running_status.current') +
|
||||
"(A)",
|
||||
),
|
||||
_buildTableCell('--'),
|
||||
_buildTableCell('--'),
|
||||
_buildTableCell(status.leftCurrent.toStringAsFixed(2)),
|
||||
_buildTableCell(status.rightCurrent.toStringAsFixed(2)),
|
||||
],
|
||||
),
|
||||
TableRow(
|
||||
@@ -267,8 +267,8 @@ class _DeviceStatusModalState extends State<DeviceStatusModal> {
|
||||
).translate('running_status.motor_temp') +
|
||||
"(°C)",
|
||||
),
|
||||
_buildTableCell('--'),
|
||||
_buildTableCell('--'),
|
||||
_buildTableCell(status.leftMotorTemp.toStringAsFixed(1)),
|
||||
_buildTableCell(status.rightMotorTemp.toStringAsFixed(1)),
|
||||
],
|
||||
),
|
||||
],
|
||||
@@ -318,7 +318,7 @@ class _DeviceStatusModalState extends State<DeviceStatusModal> {
|
||||
).translate('running_status.pitch_angle') +
|
||||
"(°)",
|
||||
),
|
||||
_buildTableCell('--'),
|
||||
_buildTableCell(status.pitch.toStringAsFixed(2)),
|
||||
],
|
||||
),
|
||||
TableRow(
|
||||
@@ -329,7 +329,7 @@ class _DeviceStatusModalState extends State<DeviceStatusModal> {
|
||||
).translate('running_status.roll_angle') +
|
||||
"(°)",
|
||||
),
|
||||
_buildTableCell('--'),
|
||||
_buildTableCell(status.roll.toStringAsFixed(2)),
|
||||
],
|
||||
),
|
||||
TableRow(
|
||||
@@ -351,7 +351,7 @@ class _DeviceStatusModalState extends State<DeviceStatusModal> {
|
||||
).translate('running_status.battery') +
|
||||
"(%)",
|
||||
),
|
||||
_buildTableCell('--'),
|
||||
_buildTableCell(status.battery),
|
||||
],
|
||||
),
|
||||
TableRow(
|
||||
@@ -362,7 +362,7 @@ class _DeviceStatusModalState extends State<DeviceStatusModal> {
|
||||
).translate('running_status.chip_temp') +
|
||||
"(°C)",
|
||||
),
|
||||
_buildTableCell('--'),
|
||||
_buildTableCell(status.chipTemp.toStringAsFixed(1)),
|
||||
],
|
||||
),
|
||||
TableRow(
|
||||
@@ -383,7 +383,11 @@ class _DeviceStatusModalState extends State<DeviceStatusModal> {
|
||||
context,
|
||||
).translate('running_status.control_mode'),
|
||||
),
|
||||
_buildTableCell('--'),
|
||||
_buildTableCell(
|
||||
AppLocalizations.of(context).translate(
|
||||
_getControlModeKey(int.tryParse(status.controlMode) ?? 0),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
TableRow(
|
||||
|
||||
Reference in New Issue
Block a user