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

◆ doMovement()

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.

◆ main()

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.

◆ mqc2pdg()

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.

◆ pdg2mqc()

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.

◆ readData()

void readData ( )

reads all epos2 data

Read Data

Examples:
configtest.cpp.

Definition at line 95 of file configtest.cpp.

◆ throwAction()

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

◆ blocking

bool blocking =false
Examples:
configtest.cpp.

Definition at line 59 of file configtest.cpp.

◆ epos2

CEpos2* epos2
Examples:
configtest.cpp.

Definition at line 58 of file configtest.cpp.

◆ finish_program

bool finish_program =false

INCLUDES GLOBALS

Examples:
configtest.cpp.

Definition at line 56 of file configtest.cpp.

◆ free_program

bool free_program =true
Examples:
configtest.cpp.

Definition at line 57 of file configtest.cpp.

◆ print

bool print =false
Examples:
configtest.cpp.

Definition at line 59 of file configtest.cpp.

◆ waiting

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 Feb 28 2022 22:16:44