COSMOS core
1.0.2 (beta)
Comprehensive Open-architecture Solution for Mission Operations Systems
|
#include "support/configCosmos.h"
#include "device/general/prkx2su_lib.h"
#include <cstring>
#include <cmath>
Functions | |
int32_t | prkx2su_init (string dev) |
int32_t | prkx2su_connect () |
int32_t | prkx2su_disconnect () |
int32_t | prkx2su_getdata (uint8_t axis, string buf, uint16_t buflen) |
int32_t | prkx2su_status (uint8_t axis) |
int32_t | prkx2su_get_limits (uint8_t axis) |
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_goto (float az, float el) |
float | prkx2su_get_az () |
float | prkx2su_get_el () |
int32_t | prkx2su_get_az_el (float &az, float &el) |
int32_t | prkx2su_write_calibration (uint8_t axis, float value) |
float | prkx2su_get_az_offset () |
float | prkx2su_get_el_offset () |
void | prkx2su_get_state (prkx2su_state &state) |
int32_t | prkx2su_test (uint8_t axis) |
int32_t | prkx2su_send (uint8_t axis, string buf, bool force) |
int32_t | prkx2su_set_sensitivity (float sensitivity) |
Variables | |
static Serial * | prkx2su_serial [2] |
prkx2su serial handle More... | |
static prkx2su_state | ant_state |
int32_t prkx2su_init | ( | string | dev | ) |
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_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_status | ( | uint8_t | axis | ) |
Poll controller for Status and Heading. Turns calibration mode on in prkx2su.
axis | 32 bit signed integer , 0 = Azimuth, 1 = Elevation |
int32_t prkx2su_get_limits | ( | uint8_t | axis | ) |
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_goto | ( | float | az, |
float | el | ||
) |
float prkx2su_get_az | ( | ) |
float prkx2su_get_el | ( | ) |
int32_t prkx2su_get_az_el | ( | float & | az, |
float & | el | ||
) |
int32_t prkx2su_write_calibration | ( | uint8_t | axis, |
float | value | ||
) |
float prkx2su_get_az_offset | ( | ) |
float prkx2su_get_el_offset | ( | ) |
void prkx2su_get_state | ( | prkx2su_state & | state | ) |
int32_t prkx2su_test | ( | uint8_t | axis | ) |
int32_t prkx2su_send | ( | uint8_t | axis, |
string | buf, | ||
bool | force | ||
) |
int32_t prkx2su_set_sensitivity | ( | float | sensitivity | ) |
|
static |
prkx2su serial handle
Internal descriptor for cssl serial control of prkx2su.
|
static |