2 #include "FPUController.h"
8 for ( uint32_t a = 0 ; a < SCOPE_NAREAS ; a++ ) {
9 theXYStages[a] = std::unique_ptr<SCOPE_FPUXYCONTROL_T>(
new SCOPE_FPUXYCONTROL_T());
22 for ( uint32_t a = 0 ; a < SCOPE_NAREAS ; a++ )
27 DBOUT(L
"FPUController::MoveAbsolute");
34 DBOUT(L
"FPUController::MoveRelative direction " << _dir);
51 int ret = ::MessageBox(NULL, L
"Do you really want to set the current FPU stage position as zero?", L
"Are you sure?", MB_YESNO | MB_ICONWARNING | MB_DEFBUTTON2 | MB_TASKMODAL | MB_SETFOREGROUND | MB_TOPMOST);
std::array< double, SCOPE_NAREAS > stepsizes
step size for a relative movement
The master parameters class.
void Initialize(const parameters::Scope &_params)
Initialize the FPU's hardware.
std::array< std::unique_ptr< Area >, SCOPE_NAREAS > areas
holds AreaParameters for all areas.
void MoveAbsolute(const uint32_t &_area)
Move to an absolute position given by the scope_controller's GuiParameters.
This is the include file for standard system include files, or project specific include files that ar...
In here all declarations for all kinds of datatypes Scope needs.
#define DBOUT(s)
A debug output to the debug console.
void MoveRelative(const uint32_t &_area, const FPUMoveDirection &_dir)
Move one stepsize relative to the current position.
void SetXYZero(const uint32_t &_area)
Set the current xy position of the FPU as zero.
FPUController()
Create XYControls and ETLs and connect buttons.
static std::array< FPUButtons, SCOPE_NAREAS > FPU
Buttons for FPU nudge.
static parameters::Scope GuiParameters
The complete pseudo-global parameter set of the microscope.
std::array< std::unique_ptr< SCOPE_FPUXYCONTROL_T >, SCOPE_NAREAS > theXYStages
for xy movement of FPU stages
ScopeController scope_controller
our ScopeController