Created
July 15, 2019 21:15
-
-
Save shantanoo-desai/c920d436ed1d4bf21cf85043715db78f to your computer and use it in GitHub Desktop.
Code Snippet from cissflux repository
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
class ciss: | |
"""CISS Class""" | |
# parsing methods | |
# other necessary codes | |
def parse_payload(self, accepted_data): | |
data_type = {'measurement': 'ciss', | |
'fields': | |
{ | |
'accX': 0.0, | |
'accY': 0.0, | |
'accZ': 0.0, | |
'gyroX': 0.0, | |
'gyroY': 0.0, | |
'gyroZ': 0.0, | |
'magX': 0.0, | |
'magY': 0.0, | |
'magZ': 0.0, | |
'status': 0 | |
} | |
} | |
# other relevant logic |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment