-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mount: position feedback based on HBSTEP counter, clean code, better …
…HBSTEP setting, modify RUN function of HBSTEP, right tracking speed, software for mount calibration (1 revolution steps counter), new AWS weatheunderground methods (real time upload)
- Loading branch information
1 parent
c8116e3
commit 53e0148
Showing
6 changed files
with
450 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
#!/usr/bin/env python | ||
# -*- coding: utf-8 -*- | ||
|
||
import math | ||
import time | ||
import rospy | ||
import std_msgs | ||
import json | ||
import os | ||
from std_msgs.msg import String | ||
from std_msgs.msg import Float32 | ||
from arom.srv import * | ||
from arom.msg import * | ||
import numpy as np | ||
import pylirc | ||
from drivers.__init__ import AromNode | ||
|
||
try: | ||
import xml.etree.cElementTree as ET | ||
except ImportError: | ||
import xml.etree.ElementTree as ET | ||
|
||
recieved = [] | ||
|
||
def manager_callback(recive): | ||
global recieved | ||
recieved.append(recive.data) | ||
#print recive, recieved | ||
|
||
class arom_manager(AromNode): | ||
node_name = "arom_manager" | ||
node_type = "arom_manager" | ||
node_pymlab = True | ||
|
||
def __init__(self, rows = 2, cols = 2, file = None): | ||
print os.path.abspath(__file__) | ||
|
||
rospy.Subscriber("/arom/manager", std_msgs.msg.String, manager_callback) | ||
|
||
AromNode.__init__(self) | ||
self.set_feature('arom_nodes',{'publish': '/arom/manager'}) | ||
|
||
## | ||
## Konec zakladni inicializace | ||
## | ||
|
||
rate = rospy.Rate(10) | ||
while not rospy.is_shutdown(): | ||
try: | ||
if len(recieved) > 0: | ||
print recieved | ||
except Exception, e: | ||
print e | ||
time.sleep(0.5) | ||
|
||
|
||
|
||
|
||
if __name__ == '__main__': | ||
m = arom_manager() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -76,7 +76,7 @@ | |
|
||
i2c2 = str({ | ||
"device": "serial", | ||
"port": '/dev/ttyUSB2', | ||
"port": '/dev/ttyUSB0', | ||
}) | ||
bus2 = str([ | ||
{ | ||
|
Oops, something went wrong.