![]() |
COSMOS core
1.0.2 (beta)
Comprehensive Open-architecture Solution for Mission Operations Systems
|
#include "support/configCosmos.h"#include "device/general/gs232b_lib.h"#include <cstring>#include <cmath>Functions | |
| int32_t | gs232b_connect (string dev) |
| int32_t | gs232b_disconnect () |
| int32_t | gs232b_getdata (char *buf, int32_t buflen) |
| int32_t | gs232b_offset_wait (int32_t axis) |
| int32_t | gs232b_offset_accept () |
| int32_t | gs232b_az_speed (int32_t speed) |
| int32_t | gs232b_goto (float az, float el) |
| int32_t | gs232b_stop () |
| float | gs232b_get_az () |
| float | gs232b_get_el () |
| int32_t | gs232b_get_az_el (float &az, float &el) |
| float | gs232b_get_az_offset () |
| float | gs232b_get_el_offset () |
| void | gs232b_get_state (gs232b_state &state) |
| int32_t | gs232b_test () |
| int32_t | gs232b_send (char *buf, bool force) |
| int32_t | gs232b_set_sensitivity (float sensitivity) |
Variables | |
| static cssl_t * | gs232b_serial = NULL |
| GS-232B serial handle. More... | |
| static gs232b_state | ant_state |
| int32_t gs232b_connect | ( | string | dev | ) |
Connects to a Yaesu GS-232B computer 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 gs232b_disconnect | ( | ) |
Close currently open GS-232B.
| int32_t gs232b_getdata | ( | char * | buf, |
| int32_t | buflen | ||
| ) |
Routine to use in blocking mode. Reads the serial port until a New Line is received, then returns entire buffer.
| buf | Pointer to a char buffer |
| buflen | 32 bit signed integer indicating the maximum size of the buffer |
| int32_t gs232b_offset_wait | ( | int32_t | axis | ) |
Routine to help calibrate rotor offset on specified axis. Turns calibration mode on in GS-232B.
| axis | 32 bit signed integer , 0 = Azimuth, 1 = Elevation |
| int32_t gs232b_offset_accept | ( | ) |
Accept rotor offset calibration for currently calibrating axis.
| int32_t gs232b_az_speed | ( | int32_t | speed | ) |
| int32_t gs232b_goto | ( | float | az, |
| float | el | ||
| ) |
| int32_t gs232b_stop | ( | ) |
Routine to stop current action. Whatever the current command is, it will cancelled before completeion.
| float gs232b_get_az | ( | ) |
| float gs232b_get_el | ( | ) |
| int32_t gs232b_get_az_el | ( | float & | az, |
| float & | el | ||
| ) |
| float gs232b_get_az_offset | ( | ) |
| float gs232b_get_el_offset | ( | ) |
| void gs232b_get_state | ( | gs232b_state & | state | ) |
| int32_t gs232b_test | ( | ) |
| int32_t gs232b_send | ( | char * | buf, |
| bool | force | ||
| ) |
| int32_t gs232b_set_sensitivity | ( | float | sensitivity | ) |
|
static |
GS-232B serial handle.
Internal descriptor for cssl serial control of GS-232B.
|
static |