#include <skywatcher-simulator.h>
|
void | setupVersion (const char *mcversion) |
|
void | setupRA (unsigned int nb_teeth, unsigned int gear_ratio_num, unsigned int gear_ratio_den, unsigned int nb_steps, unsigned int nb_microsteps, unsigned int highspeed) |
|
void | setupDE (unsigned int nb_teeth, unsigned int gear_ratio_num, unsigned int gear_ratio_den, unsigned int nb_steps, unsigned int nb_microsteps, unsigned int highspeed) |
|
void | process_command (const char *cmd, int *received) |
|
void | get_reply (char *buf, int *len) |
|
|
static char | hexa [16] = { '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F' } |
|
◆ motorstatus
Enumerator |
---|
INITIALIZED | |
RUNNING | |
SLEWMODE | |
BACKWARD | |
HIGHSPEED | |
◆ compute_de_position()
void SkywatcherSimulator::compute_de_position |
( |
| ) |
|
|
private |
◆ compute_ra_position()
void SkywatcherSimulator::compute_ra_position |
( |
| ) |
|
|
private |
◆ compute_timer_de()
void SkywatcherSimulator::compute_timer_de |
( |
unsigned int |
wormperiod | ) |
|
|
private |
◆ compute_timer_ra()
void SkywatcherSimulator::compute_timer_ra |
( |
unsigned int |
wormperiod | ) |
|
|
private |
◆ de_pause()
void SkywatcherSimulator::de_pause |
( |
| ) |
|
|
private |
◆ de_resume()
void SkywatcherSimulator::de_resume |
( |
| ) |
|
|
private |
◆ de_stop()
void SkywatcherSimulator::de_stop |
( |
| ) |
|
|
private |
◆ get_reply()
void SkywatcherSimulator::get_reply |
( |
char * |
buf, |
|
|
int * |
len |
|
) |
| |
◆ get_u24()
unsigned int SkywatcherSimulator::get_u24 |
( |
const char * |
cmd | ) |
|
|
private |
◆ get_u8()
unsigned int SkywatcherSimulator::get_u8 |
( |
const char * |
cmd | ) |
|
|
private |
◆ process_command()
void SkywatcherSimulator::process_command |
( |
const char * |
cmd, |
|
|
int * |
received |
|
) |
| |
◆ ra_pause()
void SkywatcherSimulator::ra_pause |
( |
| ) |
|
|
private |
◆ ra_resume()
void SkywatcherSimulator::ra_resume |
( |
| ) |
|
|
private |
◆ ra_stop()
void SkywatcherSimulator::ra_stop |
( |
| ) |
|
|
private |
◆ send_byte()
void SkywatcherSimulator::send_byte |
( |
unsigned char |
c | ) |
|
|
private |
◆ send_string()
void SkywatcherSimulator::send_string |
( |
const char * |
s | ) |
|
|
private |
◆ send_u12()
void SkywatcherSimulator::send_u12 |
( |
unsigned int |
n | ) |
|
|
private |
◆ send_u24()
void SkywatcherSimulator::send_u24 |
( |
unsigned int |
n | ) |
|
|
private |
◆ send_u8()
void SkywatcherSimulator::send_u8 |
( |
unsigned char |
n | ) |
|
|
private |
◆ setupDE()
void SkywatcherSimulator::setupDE |
( |
unsigned int |
nb_teeth, |
|
|
unsigned int |
gear_ratio_num, |
|
|
unsigned int |
gear_ratio_den, |
|
|
unsigned int |
nb_steps, |
|
|
unsigned int |
nb_microsteps, |
|
|
unsigned int |
highspeed |
|
) |
| |
◆ setupRA()
void SkywatcherSimulator::setupRA |
( |
unsigned int |
nb_teeth, |
|
|
unsigned int |
gear_ratio_num, |
|
|
unsigned int |
gear_ratio_den, |
|
|
unsigned int |
nb_steps, |
|
|
unsigned int |
nb_microsteps, |
|
|
unsigned int |
highspeed |
|
) |
| |
◆ setupVersion()
void SkywatcherSimulator::setupVersion |
( |
const char * |
mcversion | ) |
|
◆ de_breaks
unsigned int SkywatcherSimulator::de_breaks |
|
private |
◆ de_gear_ratio_den
unsigned int SkywatcherSimulator::de_gear_ratio_den |
|
private |
◆ de_gear_ratio_num
unsigned int SkywatcherSimulator::de_gear_ratio_num |
|
private |
◆ de_highspeed_ratio
unsigned int SkywatcherSimulator::de_highspeed_ratio |
|
private |
◆ de_microstep
unsigned char SkywatcherSimulator::de_microstep |
|
private |
◆ de_microsteps
unsigned int SkywatcherSimulator::de_microsteps |
|
private |
◆ de_nb_steps
unsigned int SkywatcherSimulator::de_nb_steps |
|
private |
◆ de_nb_teeth
unsigned int SkywatcherSimulator::de_nb_teeth |
|
private |
◆ de_period
unsigned int SkywatcherSimulator::de_period |
|
private |
◆ de_position
unsigned int SkywatcherSimulator::de_position |
|
private |
◆ de_pwmindex
unsigned char SkywatcherSimulator::de_pwmindex |
|
private |
◆ de_status
unsigned int SkywatcherSimulator::de_status |
|
private |
◆ de_steps_360
unsigned int SkywatcherSimulator::de_steps_360 |
|
private |
◆ de_steps_worm
unsigned int SkywatcherSimulator::de_steps_worm |
|
private |
◆ de_target
unsigned int SkywatcherSimulator::de_target |
|
private |
◆ de_target_current
unsigned int SkywatcherSimulator::de_target_current |
|
private |
◆ de_target_slow
unsigned int SkywatcherSimulator::de_target_slow |
|
private |
◆ de_wormperiod
unsigned int SkywatcherSimulator::de_wormperiod |
|
private |
◆ hexa
char SkywatcherSimulator::hexa = { '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F' } |
|
staticprivate |
◆ lastdeTime
struct timeval SkywatcherSimulator::lastdeTime |
|
private |
◆ lastraTime
struct timeval SkywatcherSimulator::lastraTime |
|
private |
◆ ra_breaks
unsigned int SkywatcherSimulator::ra_breaks |
|
private |
◆ ra_gear_ratio_den
unsigned int SkywatcherSimulator::ra_gear_ratio_den |
|
private |
◆ ra_gear_ratio_num
unsigned int SkywatcherSimulator::ra_gear_ratio_num |
|
private |
◆ ra_highspeed_ratio
unsigned int SkywatcherSimulator::ra_highspeed_ratio |
|
private |
◆ ra_microstep
unsigned char SkywatcherSimulator::ra_microstep |
|
private |
◆ ra_microsteps
unsigned int SkywatcherSimulator::ra_microsteps |
|
private |
◆ ra_nb_steps
unsigned int SkywatcherSimulator::ra_nb_steps |
|
private |
◆ ra_nb_teeth
unsigned int SkywatcherSimulator::ra_nb_teeth |
|
private |
◆ ra_period
unsigned int SkywatcherSimulator::ra_period |
|
private |
◆ ra_position
unsigned int SkywatcherSimulator::ra_position |
|
private |
◆ ra_pwmindex
unsigned char SkywatcherSimulator::ra_pwmindex |
|
private |
◆ ra_status
unsigned int SkywatcherSimulator::ra_status |
|
private |
◆ ra_steps_360
unsigned int SkywatcherSimulator::ra_steps_360 |
|
private |
◆ ra_steps_worm
unsigned int SkywatcherSimulator::ra_steps_worm |
|
private |
◆ ra_target
unsigned int SkywatcherSimulator::ra_target |
|
private |
◆ ra_target_current
unsigned int SkywatcherSimulator::ra_target_current |
|
private |
◆ ra_target_slow
unsigned int SkywatcherSimulator::ra_target_slow |
|
private |
◆ ra_wormperiod
unsigned int SkywatcherSimulator::ra_wormperiod |
|
private |
◆ read
unsigned char SkywatcherSimulator::read |
|
private |
◆ reply
char SkywatcherSimulator::reply[32] |
|
private |
◆ replyindex
unsigned char SkywatcherSimulator::replyindex |
|
private |
◆ version
const char* SkywatcherSimulator::version |
|
private |
The documentation for this class was generated from the following files: