COSMOS core
1.0.2 (beta)
Comprehensive Open-architecture Solution for Mission Operations Systems
|
prkx2su controller includes More...
#include "support/configCosmos.h"
#include "math/mathlib.h"
#include "support/cosmos-errno.h"
#include "device/serial/serialclass.h"
#include <stdio.h>
Go to the source code of this file.
Classes | |
struct | prkx2su_state |
prkx2su state More... | |
Macros | |
#define | PRKX2SU_ID 1 |
#define | PRKX2SU_BAUD 9600 |
#define | PRKX2SU_BITS 8 |
#define | PRKX2SU_PARITY 0 |
#define | PRKX2SU_STOPBITS 1 |
#define | PRKX2SU_AXIS_AZ 0 |
#define | PRKX2SU_AXIS_EL 1 |
Functions | |
int32_t | prkx2su_init (string device) |
int32_t | prkx2su_connect () |
int32_t | prkx2su_disconnect () |
int32_t | prkx2su_calibrate_offset (int32_t axis) |
float | prkx2su_get_az () |
float | prkx2su_get_el () |
int32_t | prkx2su_get_az_el (float &az, float &el) |
float | prkx2su_get_az_offset () |
float | prkx2su_get_el_offset () |
void | prkx2su_get_state (prkx2su_state &state) |
int32_t | prkx2su_goto (float az, float el) |
int32_t | prkx2su_stop (uint8_t axis) |
int32_t | prkx2su_ramp (uint8_t axis, uint8_t speed) |
int32_t | prkx2su_minimum_speed (uint8_t axis, uint8_t speed) |
int32_t | prkx2su_maximum_speed (uint8_t axis, uint8_t speed) |
int32_t | prkx2su_getdata (uint8_t axis, string buf, uint16_t buflen) |
int32_t | prkx2su_send (uint8_t axis, string buf, bool force) |
int32_t | prkx2su_test (uint8_t axis) |
int32_t | prkx2su_set_sensitivity (float sensitivity) |
int32_t | prkx2su_get_limits (uint8_t axis) |
prkx2su controller includes
Contains definitions and functions for running a Yaesu prkx2su controller.
#define PRKX2SU_ID 1 |
#define PRKX2SU_BAUD 9600 |
#define PRKX2SU_BITS 8 |
#define PRKX2SU_PARITY 0 |
#define PRKX2SU_STOPBITS 1 |
#define PRKX2SU_AXIS_AZ 0 |
#define PRKX2SU_AXIS_EL 1 |
int32_t prkx2su_init | ( | string | device | ) |
int32_t prkx2su_connect | ( | ) |
Connects to am MII prkx2su antenna controller, which in turn drives a Yaesu G-5500 antenna controller.
dev | pointer to a character string with the serial port it is connected to. |
int32_t prkx2su_disconnect | ( | ) |
Close currently open prkx2su.
int32_t prkx2su_calibrate_offset | ( | int32_t | axis | ) |
float prkx2su_get_az | ( | ) |
float prkx2su_get_el | ( | ) |
int32_t prkx2su_get_az_el | ( | float & | az, |
float & | el | ||
) |
float prkx2su_get_az_offset | ( | ) |
float prkx2su_get_el_offset | ( | ) |
void prkx2su_get_state | ( | prkx2su_state & | state | ) |
int32_t prkx2su_goto | ( | float | az, |
float | el | ||
) |
int32_t prkx2su_stop | ( | uint8_t | axis | ) |
Routine to stop current action. Whatever the current command is, it will cancelled before completeion.
int32_t prkx2su_ramp | ( | uint8_t | axis, |
uint8_t | speed | ||
) |
int32_t prkx2su_minimum_speed | ( | uint8_t | axis, |
uint8_t | speed | ||
) |
int32_t prkx2su_maximum_speed | ( | uint8_t | axis, |
uint8_t | speed | ||
) |
int32_t prkx2su_getdata | ( | uint8_t | axis, |
string | buf, | ||
uint16_t | buflen | ||
) |
Routine to use in blocking mode. Reads the serial port until a New Line is received, then returns entire buffer.
axis | Axis to read. |
buf | Pointer to a char buffer |
buflen | 32 bit signed integer indicating the maximum size of the buffer |
int32_t prkx2su_send | ( | uint8_t | axis, |
string | buf, | ||
bool | force | ||
) |
int32_t prkx2su_test | ( | uint8_t | axis | ) |
int32_t prkx2su_set_sensitivity | ( | float | sensitivity | ) |
int32_t prkx2su_get_limits | ( | uint8_t | axis | ) |