Functions | Variables
configtest.cpp File Reference
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
#include <cstdio>
#include <cstring>
#include <ctime>
#include <iostream>
#include <fstream>
#include <vector>
#include <time.h>
#include <sys/time.h>
#include "Epos2.h"
Include dependency graph for configtest.cpp:

Go to the source code of this file.

Functions

void doMovement (char type)
 Starts a motor movement. More...
 
int main (int argc, char **argv)
 Programa de prova per a obtenir escaneigs i posicions del motor. More...
 
float mqc2pdg (long int qc)
 motor [qc] to platform [°] More...
 
long int pdg2mqc (float dg)
 platform [°] to motor [qc] It truncates the value More...
 
void readData ()
 reads all epos2 data More...
 
void throwAction (char action)
 throw an action set by user More...
 

Variables

bool blocking =false
 
CEpos2epos2
 
bool finish_program =false
 
bool free_program =true
 
bool print =false
 
bool waiting =true
 

Function Documentation

void doMovement ( char  type)

Starts a motor movement.

doMovement

Parameters
typea:Profile Position Absolute r: Profile Position Relative w: Profile Velocity v: Velocity
Examples:
configtest.cpp.

Definition at line 143 of file configtest.cpp.

int main ( int  argc,
char **  argv 
)

Programa de prova per a obtenir escaneigs i posicions del motor.

MAIN

Examples:
configtest.cpp.

Definition at line 520 of file configtest.cpp.

float mqc2pdg ( long int  qc)

motor [qc] to platform [°]

Parameters
qcangle from readPosition Motor [qc]
Returns
platform angle [°]
Examples:
configtest.cpp.

Definition at line 72 of file configtest.cpp.

long int pdg2mqc ( float  dg)

platform [°] to motor [qc] It truncates the value

Parameters
dgplatform angle [°]
Returns
motor angle [qc]
Examples:
configtest.cpp.

Definition at line 85 of file configtest.cpp.

void readData ( )

reads all epos2 data

Read Data

Examples:
configtest.cpp.

Definition at line 95 of file configtest.cpp.

void throwAction ( char  action)

throw an action set by user

throwAction

Parameters
actionA char which defines what action user wants
Examples:
configtest.cpp.

Definition at line 305 of file configtest.cpp.

Variable Documentation

bool blocking =false
Examples:
configtest.cpp.

Definition at line 59 of file configtest.cpp.

CEpos2* epos2
Examples:
configtest.cpp.

Definition at line 58 of file configtest.cpp.

bool finish_program =false

INCLUDES GLOBALS

Examples:
configtest.cpp.

Definition at line 56 of file configtest.cpp.

bool free_program =true
Examples:
configtest.cpp.

Definition at line 57 of file configtest.cpp.

bool print =false
Examples:
configtest.cpp.

Definition at line 59 of file configtest.cpp.

bool waiting =true
Examples:
configtest.cpp.

Definition at line 59 of file configtest.cpp.



epos2_motor_controller
Author(s): Martí Morta Garriga , Jochen Sprickerhof
autogenerated on Mon Jul 22 2019 03:19:01