Skip to content

Commit

Permalink
Fix MacOS compile error
Browse files Browse the repository at this point in the history
  • Loading branch information
knro committed Dec 26, 2021
1 parent 3d3067b commit a407e85
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions drivers/telescope/pmc8.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
INDI Explore Scientific PMC8 driver
Copyright (C) 2017 Michael Fulbright
Additional contributors:
Additional contributors:
Thomas Olson, Copyright (C) 2019
Karl Rees, Copyright (C) 2019-2021
Based on IEQPro driver.
This library is free software; you can redistribute it and/or
Expand All @@ -32,10 +32,10 @@
typedef enum { PMC8_MOVE_INACTIVE, PMC8_MOVE_RAMPING, PMC8_MOVE_ACTIVE } PMC8_MOVE_STATE;
typedef enum { PMC8_RAMP_UP, PMC8_RAMP_DOWN } PMC8_RAMP_DIRECTION;

typedef struct
typedef struct PMC8MoveInfo
{
PMC8_MOVE_STATE state = PMC8_MOVE_INACTIVE;
uint8_t moveDir = 0;
uint8_t moveDir = 0;
int targetRate = 0;
int rampIteration = 0;
int rampLastStep = 0;
Expand Down Expand Up @@ -121,14 +121,14 @@ class PMC8 : public INDI::Telescope, public INDI::GuiderInterface
//GUIDE variables.
int GuideNSTID;
int GuideWETID;

// Move
static void rampTimeoutHelperN(void *p);
static void rampTimeoutHelperS(void *p);
static void rampTimeoutHelperE(void *p);
static void rampTimeoutHelperW(void *p);
bool ramp_movement(PMC8_DIRECTION calldir);

int getSlewRate();

private:
Expand All @@ -137,8 +137,8 @@ class PMC8 : public INDI::Telescope, public INDI::GuiderInterface
*/
void getStartupData();

uint8_t convertToPMC8TrackMode(uint8_t mode);
uint8_t convertFromPMC8TrackMode(uint8_t mode);
uint8_t convertToPMC8TrackMode(uint8_t mode);
uint8_t convertFromPMC8TrackMode(uint8_t mode);

/* Firmware */
IText FirmwareT[1] {};
Expand All @@ -154,7 +154,7 @@ class PMC8 : public INDI::Telescope, public INDI::GuiderInterface
INumber LegacyGuideRateN[1];
INumberVectorProperty LegacyGuideRateNP;

/* Move Ramp Settings */
/* Move Ramp Settings */
INumber RampN[3];
INumberVectorProperty RampNP;

Expand All @@ -172,10 +172,10 @@ class PMC8 : public INDI::Telescope, public INDI::GuiderInterface
double currentTrackRate = 0;

int trackingPollCounter = 0;

bool isPulsingNS = false;
bool isPulsingWE = false;

PMC8MoveInfo moveInfoRA, moveInfoDEC;

//PMC8Info scopeInfo;
Expand Down

0 comments on commit a407e85

Please sign in to comment.