satnogs-rotator-firmware
Loading...
Searching...
No Matches
globals.h File Reference
#include <Arduino.h>
Include dependency graph for globals.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  _control
 
struct  _rotator
 

Enumerations

enum  _rotator_status { idle = 1 , moving = 2 , pointing = 4 , r_error = 8 }
 
enum  _rotator_error {
  no_error = 1 , sensor_error = 2 , homing_error = 4 , motor_error = 8 ,
  over_temperature = 12 , wdt_error = 16
}
 
enum  _control_mode { position = 0 , speed = 1 }
 

Variables

_control control_az
 
_control control_el
 
_rotator rotator
 

Detailed Description

It is a file to define all global variables

Licensed under the GPLv3

Definition in file globals.h.

Enumeration Type Documentation

◆ _control_mode

Rotator Control Modes

Enumerator
position 
speed 

Definition at line 25 of file globals.h.

◆ _rotator_error

Rotator Errors

Enumerator
no_error 
sensor_error 
homing_error 
motor_error 
over_temperature 
wdt_error 

Definition at line 20 of file globals.h.

◆ _rotator_status

Rotator status

Enumerator
idle 
moving 
pointing 
r_error 

Definition at line 16 of file globals.h.

Variable Documentation

◆ control_az

_control control_az
Initial value:
= { .input = 0, .input_prv = 0, .speed=0, .setpoint = 0,
.setpoint_speed = 0, .load = 0, .u = 0, .p = 8.0,
.i = 0.0, .d = 0.5 }

Definition at line 51 of file globals.h.

Referenced by easycomm::easycomm_proc(), homing(), and loop().

◆ control_el

_control control_el
Initial value:
= { .input = 0, .input_prv = 0, .speed=0, .setpoint = 0,
.setpoint_speed = 0, .load = 0, .u = 0, .p = 10.0,
.i = 0.0, .d = 0.3 }

Definition at line 54 of file globals.h.

Referenced by easycomm::easycomm_proc(), homing(), and loop().

◆ rotator

_rotator rotator
Initial value:
= { .rotator_status = idle, .rotator_error = no_error,
.control_mode = position, .homing_flag = false,
.inside_temperature = 0, .park_az = 0, .park_el = 0,
.fault_az = LOW, .fault_el = LOW , .switch_az = false,
.switch_el = false}
@ position
Definition globals.h:26
@ no_error
Definition globals.h:21
@ idle
Definition globals.h:17

Definition at line 57 of file globals.h.

Referenced by easycomm::easycomm_proc(), and loop().