Instrument Neutral Distributed Interface INDI 2.2.5
wanderer_rotator_mini.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 Mini V1/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
26#include "indicom.h"
28#include <cmath>
29#include <cstring>
30#include <memory>
31#include <termios.h>
32#include <unistd.h>
33#include <stdio.h>
34#include <sstream>
35#include <iostream>
36
37
38// We declare an auto pointer to WandererRotatorMini.
39static std::unique_ptr<WandererRotatorMini> wandererrotatormini(new WandererRotatorMini());
40
44
46 return "WandererRotator Mini";
47}
48
50 return "WandererRotatorMini";
51}
52
56
58 return 1142;
59}
void setVersion(uint16_t vMajor, uint16_t vMinor)
Set driver version information to be defined in DRIVER_INFO property as vMajor.vMinor.
const char * getDefaultName() override
const char * getRotatorHandshakeName() override
int getMinimumCompatibleFirmwareVersion() override
Implementations for common driver routines.