Add Memory Viewer and Axis Memory Map visualization
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
|
||||
import React from 'react';
|
||||
import { X } from 'lucide-react';
|
||||
|
||||
import { AxisData } from '../types';
|
||||
import { AxisData, ADDR_AXIS_BASE, ADDR_AXIS_STRIDE, OFF_AXIS_CURRENT_POS, OFF_AXIS_TARGET_POS, OFF_AXIS_SPEED } from '../types';
|
||||
|
||||
interface SystemSetupDialogProps {
|
||||
isOpen: boolean;
|
||||
@@ -160,6 +161,20 @@ export const SystemSetupDialog: React.FC<SystemSetupDialogProps> = ({
|
||||
/>
|
||||
</div>
|
||||
|
||||
{/* Memory Map Info */}
|
||||
<div className="w-48 bg-gray-900 rounded p-3 text-[10px] font-mono text-gray-500 border border-gray-800">
|
||||
<div className="flex justify-between border-b border-gray-800 pb-1 mb-1">
|
||||
<span className="font-bold text-gray-400">MEMORY MAP</span>
|
||||
<span className="text-blue-500">Base: {ADDR_AXIS_BASE + (axis.id * ADDR_AXIS_STRIDE)}</span>
|
||||
</div>
|
||||
<div className="grid grid-cols-2 gap-x-2 gap-y-1">
|
||||
<span>Status:</span> <span className="text-right text-gray-300">+{0}</span>
|
||||
<span>Cur Pos:</span> <span className="text-right text-gray-300">+{OFF_AXIS_CURRENT_POS}</span>
|
||||
<span>Cmd Pos:</span> <span className="text-right text-purple-400">+{OFF_AXIS_TARGET_POS}</span>
|
||||
<span>Speed:</span> <span className="text-right text-gray-300">+{OFF_AXIS_SPEED}</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div className="w-32 flex flex-col gap-1">
|
||||
<label className="text-[10px] text-gray-500 font-bold uppercase tracking-wider">Type</label>
|
||||
<select
|
||||
|
||||
Reference in New Issue
Block a user