Instrument Neutral Distributed Interface INDI
2.2.5
drivers
rotator
wanderer_rotator_pro_v2.cpp
Go to the documentation of this file.
1
/*******************************************************************************
2
Copyright(c) 2025 Frank Wang & Jérémie Klein. All rights reserved.
3
4
WandererRotator Pro V2
5
6
This program is free software; you can redistribute it and/or modify it
7
under the terms of the GNU General Public License as published by the Free
8
Software Foundation; either version 2 of the License, or (at your option)
9
any later version.
10
11
This program is distributed in the hope that it will be useful, but WITHOUT
12
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
14
more details.
15
16
You should have received a copy of the GNU Library General Public License
17
along with this library; see the file COPYING.LIB. If not, write to
18
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19
Boston, MA 02110-1301, USA.
20
21
The full GNU General Public License is included in this distribution in the
22
file called LICENSE.
23
*******************************************************************************/
24
25
#include "
wanderer_rotator_pro_v2.h
"
26
27
// We declare an auto pointer to WandererRotatorProV2.
28
static
std::unique_ptr<WandererRotatorProV2> wandererrotatorprov2(
new
WandererRotatorProV2
());
29
30
WandererRotatorProV2::WandererRotatorProV2
(){
31
setVersion
(1, 0);
32
}
33
34
const
char
*
WandererRotatorProV2::getDefaultName
(){
35
return
"WandererRotator Pro V2"
;
36
}
37
38
const
char
*
WandererRotatorProV2::getRotatorHandshakeName
() {
39
return
"WandererRotatorProV2"
;
40
}
41
42
int
WandererRotatorProV2::getMinimumCompatibleFirmwareVersion
() {
43
return
20261025;
44
}
45
46
int
WandererRotatorProV2::getLatestFirmwareVersion
() {
47
return
20261025;
48
}
49
50
int
WandererRotatorProV2::getStepsPerDegree
() {
51
return
1349;
52
}
53
54
int
WandererRotatorProV2::getMovePositionOffset
() {
55
return
0;
56
}
INDI::DefaultDevice::setVersion
void setVersion(uint16_t vMajor, uint16_t vMinor)
Set driver version information to be defined in DRIVER_INFO property as vMajor.vMinor.
Definition
defaultdevice.cpp:1684
WandererRotatorProV2
Definition
wanderer_rotator_pro_v2.h:30
WandererRotatorProV2::getDefaultName
const char * getDefaultName() override
Definition
wanderer_rotator_pro_v2.cpp:34
WandererRotatorProV2::getMinimumCompatibleFirmwareVersion
int getMinimumCompatibleFirmwareVersion() override
Definition
wanderer_rotator_pro_v2.cpp:42
WandererRotatorProV2::getMovePositionOffset
int getMovePositionOffset() override
Definition
wanderer_rotator_pro_v2.cpp:54
WandererRotatorProV2::getRotatorHandshakeName
const char * getRotatorHandshakeName() override
Definition
wanderer_rotator_pro_v2.cpp:38
WandererRotatorProV2::getLatestFirmwareVersion
int getLatestFirmwareVersion() override
Definition
wanderer_rotator_pro_v2.cpp:46
WandererRotatorProV2::WandererRotatorProV2
WandererRotatorProV2()
Definition
wanderer_rotator_pro_v2.cpp:30
WandererRotatorProV2::getStepsPerDegree
int getStepsPerDegree() override
Definition
wanderer_rotator_pro_v2.cpp:50
wanderer_rotator_pro_v2.h
Generated on
for Instrument Neutral Distributed Interface INDI by
1.15.0