#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"
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 |
| CEpos2 * | epos2 |
| bool | finish_program =false |
| bool | free_program =true |
| bool | print =false |
| bool | waiting =true |
| void doMovement | ( | char | type | ) |
Starts a motor movement.
doMovement
| type | a:Profile Position Absolute r: Profile Position Relative w: Profile Velocity v: Velocity |
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
Definition at line 520 of file configtest.cpp.
| float mqc2pdg | ( | long int | qc | ) |
motor [qc] to platform [°]
| qc | angle from readPosition Motor [qc] |
Definition at line 72 of file configtest.cpp.
| long int pdg2mqc | ( | float | dg | ) |
platform [°] to motor [qc] It truncates the value
| dg | platform angle [°] |
Definition at line 85 of file configtest.cpp.
| void readData | ( | ) |
reads all epos2 data
Read Data
Definition at line 95 of file configtest.cpp.
| void throwAction | ( | char | action | ) |
throw an action set by user
throwAction
| action | A char which defines what action user wants |
Definition at line 305 of file configtest.cpp.
| bool blocking =false |
Definition at line 59 of file configtest.cpp.
| CEpos2* epos2 |
Definition at line 58 of file configtest.cpp.
| bool finish_program =false |
| bool free_program =true |
Definition at line 57 of file configtest.cpp.
| bool print =false |
Definition at line 59 of file configtest.cpp.
| bool waiting =true |
Definition at line 59 of file configtest.cpp.