Revision 8e7baefc
ID | 8e7baefc7dbf81120958932a10a70a7ae3db1a4f |
cleaned up some files - should be ready to make.
scout/analog/build/CMakeCache.txt | ||
---|---|---|
146 | 146 |
//Path to a program. |
147 | 147 |
CMAKE_STRIP:FILEPATH=/usr/bin/strip |
148 | 148 |
|
149 |
//The CMake toolchain file
|
|
150 |
CMAKE_TOOLCHAIN_FILE:FILEPATH=/opt/ros/electric/ros/core/rosbuild/rostoolchain.cmake
|
|
149 |
//No help, variable specified on the command line.
|
|
150 |
CMAKE_TOOLCHAIN_FILE:UNINITIALIZED=/opt/ros/electric/ros/core/rosbuild/rostoolchain.cmake
|
|
151 | 151 |
|
152 | 152 |
//If true, cmake will use relative paths in makefiles and projects. |
153 | 153 |
CMAKE_USE_RELATIVE_PATHS:BOOL=OFF |
scout/analog/src/analog.cpp | ||
---|---|---|
102 | 102 |
ros::ServiceServer service = n.advertiseService("query_analog", |
103 | 103 |
analog_query); |
104 | 104 |
|
105 |
/* Subscribe to the set_motors topic |
|
106 |
ros::Subscriber sub0 = n.subscribe("set_analog", QUEUE_SIZE, motors_set);*/ |
|
107 |
|
|
108 | 105 |
/* Initialize hardware for motors */ |
109 | 106 |
// Hardware init functions here |
110 | 107 |
ros::spin(); |
scout/analog/src/analog.h | ||
---|---|---|
71 | 71 |
/** @brief Analog port 14 **/ |
72 | 72 |
#define AN14 0x0E |
73 | 73 |
/** @brief Analog port 15 **/ |
74 |
#define AN15 0x0Fi
|
|
74 |
#define AN15 0x0F |
|
75 | 75 |
|
76 | 76 |
/** @brief Struct to hold the value of a particular analog port **/ |
77 | 77 |
typedef struct { |
Also available in: Unified diff