Motor positon can be null
Here is the state of a motor when the controller was not tuned ON.
{
srot_eh2: {
alias: 'srot',
callables: [
'move',
'wait',
'stop',
'rmove'
],
id: 'srot_eh2',
name: 'srot_eh2',
online: true,
properties: {
acceleration: null,
limits: [
null,
null
],
offset: null,
position: null,
sign: null,
state: [
'UNKNOWN'
],
target: null,
tolerance: 0.0001,
unit: 'deg',
velocity: null
},
protocol: 'bliss',
require_staff: false,
type: 'motor'
}
}
This is breaking the MotorTomoRotation
, and breaking the full UI at the same time.
Cannot read properties of null (reading 'toFixed')
toFixed (components/hardware/MotorTomoRotation.tsx:200:35)
Actions
- Use this state to check every motor widget in the doc (as disconnected controller)
- Protect the main layout from a single widget break