API
timeSeriesSimulator.hpp File Reference

The MagAO-X XXXXXX header file. More...

#include <cmath>
#include <iostream>
#include <iomanip>
#include <sstream>
#include "../../libMagAOX/libMagAOX.hpp"
#include "../../magaox_git_version.h"
Include dependency graph for timeSeriesSimulator.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  MagAOX::app::timeSeriesSimulator
 The MagAO-X xxxxxxxx. More...
 
struct  MagAOX::app::timeSeriesSimulator::MotionRequest
 

Namespaces

 MagAOX
 
 MagAOX::app
 

Functions

 MagAOX::app::std::cerr<< "setProperty cb for gizmos"<< std::endl;auto it=gizmos.begin();while(it !=gizmos.end()) { pcf::IndiProperty *gizmoPtr=*it;pcf::IndiProperty theGizmo=*gizmoPtr;if(ipName==theGizmo.getName()) { std::cerr<< "Adjusting prop "<< ipName<< std::endl;if(ipRecv.find("target")) { double currentPos=theGizmo["current"].get< double > ()
 
 MagAOX::app::msg<< "Setting '"<< theGizmo.getName()<< "' to "<< targetPos<< " currently "<< currentPos;log< software_notice > ({__FILE__, __LINE__, msg.str()})
 
std::cerr<< msg.str()<< std::endl;requestGizmoTarget(gizmoPtr, targetPos);theGizmo.setState(pcf::IndiProperty::Busy);m_indiDriver-> MagAOX::app::sendSetProperty (theGizmo)
 
 MagAOX::app::if (ipRecv.find("period"))
 
 MagAOX::app::if (ipRecv.find("amplitude"))
 
duty_cycle MagAOX::app::setState (pcf::IndiProperty::Ok)
 
m_indiDriver MagAOX::app::sendSetProperty (duty_cycle)
 
 MagAOX::app::updateVals ()
 
 MagAOX::app::switch (myFunction)
 
 MagAOX::app::INDI_VALIDATE_CALLBACK_PROPS (function, ipRecv)
 
 MagAOX::app::for (auto fname :SimFunctionNames)
 
 MagAOX::app::if (currentFunctionName=="sin")
 
m_indiDriver MagAOX::app::sendSetProperty (function)
 

Variables

double MagAOX::app::targetPos = ipRecv["target"].get<double>()
 
std::stringstream MagAOX::app::msg
 
 MagAOX::app::it
 
auto MagAOX::app::updatedSwitches = ipRecv.getElements()
 

Detailed Description

The MagAO-X XXXXXX header file.

Definition in file timeSeriesSimulator.hpp.


Class Documentation

◆ MagAOX::app::timeSeriesSimulator::MotionRequest

struct MagAOX::app::timeSeriesSimulator::MotionRequest

Definition at line 73 of file timeSeriesSimulator.hpp.

Collaboration diagram for MagAOX::app::timeSeriesSimulator::MotionRequest:
Collaboration graph
Class Members
IndiProperty * property
double requestTime
double startPos
double targetPos