Model Railroad System
2.2.1
main.h
1
// -!- c++ -!- //////////////////////////////////////////////////////////////
2
//
3
// System :
4
// Module :
5
// Object Name : $RCSfile$
6
// Revision : $Revision$
7
// Date : $Date$
8
// Author : $Author$
9
// Created By : Robert Heller
10
// Created : Tue Jul 14 12:40:17 2015
11
// Last Modified : <150820.1602>
12
//
13
// Description
14
//
15
// Notes
16
//
17
// History
18
//
19
/////////////////////////////////////////////////////////////////////////////
20
//
21
// Copyright (C) 2015 Robert Heller D/B/A Deepwoods Software
22
// 51 Locke Hill Road
23
// Wendell, MA 01379-9728
24
//
25
// This program is free software; you can redistribute it and/or modify
26
// it under the terms of the GNU General Public License as published by
27
// the Free Software Foundation; either version 2 of the License, or
28
// (at your option) any later version.
29
//
30
// This program is distributed in the hope that it will be useful,
31
// but WITHOUT ANY WARRANTY; without even the implied warranty of
32
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
33
// GNU General Public License for more details.
34
//
35
// You should have received a copy of the GNU General Public License
36
// along with this program; if not, write to the Free Software
37
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
38
//
39
//
40
//
41
//////////////////////////////////////////////////////////////////////////////
42
43
#ifndef __MAIN_H
44
#define __MAIN_H
45
/** @mainpage Example Yard CTC Panels
46
*
47
* The Chubb_FoxYard.tcl file contains part of the layout shown in Chapters 12
48
* (Figure 12-11 on page 12-27) and 14 (Figure 14-3 on page 14-7) of The
49
* Computer/Model Railroad Interface User's Manual Version 3.
50
*
51
* @dontinclude Chubb_FoxYard.tcl
52
*
53
* First we will connect to the Chubb CmriNet via a USB serial port (a USB <=>
54
* RS485 adaptor).
55
* @skip # Add User code after this line
56
* @skipline ## Connect to the Chubb CmriNet
57
* @until openport
58
* Then we will initialize the two SMINI nodes
59
* @until Donaldson
60
* Then we will create abstract objects for all trackwork.
61
* @until BK18
62
* Then we will initialize the Direction Of Travel to no direction.
63
* @until DOT3
64
* Then in the main loop we will Invoke all trackwork and get occupicency.
65
* @until BK17
66
* And then activate the switch motors.
67
* @until TG11Plate
68
* We will then compute the direction of travel.
69
* @until set DOT3 nodirection
70
* @line }
71
* We will then set the aspects of the Eastbound signals from west to east.
72
* @until SIG16RA setaspect green
73
* @line }
74
* @line }
75
* @line }
76
* Then the aspects of the Westbound signals east to west.
77
* @until SIG20LA setaspect
78
* @until SIG20LA setaspect
79
* @line }
80
* @line }
81
* @line }
82
* @line }
83
* @line }
84
* Then we light the Direction Of Travel lamps
85
* @until ctcpanel setv DOT3-West on
86
* @line }
87
* Finally, the main loop ends.
88
* @until }
89
*
90
*/
91
92
#endif // __MAIN_H
93
Generated on Mon Jun 26 2023 12:41:46 for Model Railroad System by
1.8.17