Skip to content

Commit da12f20

Browse files
committed
Updated to version 1.3.7
1 parent 34ad692 commit da12f20

3 files changed

Lines changed: 42 additions & 1 deletion

File tree

ixcom/parser.py

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -968,6 +968,35 @@ def enable_full_sysstatus(self):
968968
msgToSend.payload.data['statMode'] = 127
969969
msgToSend.payload.data['action'] = data.ParameterAction.CHANGING
970970
self.send_msg_and_waitfor_okay(msgToSend)
971+
972+
def set_ins_vel_output_frame(self, vel_output_mode: int = protocol.ParDatVelMode.NED):
973+
'''Defines the velocity output frame of the INSSOL message
974+
0: NED
975+
1: ENU
976+
2: ECEF
977+
3: BODY
978+
979+
Raises:
980+
ClientTimeoutError: Timeout while waiting for response or log from the XCOM server
981+
ResponseError: The response from the system was not 'OK'.
982+
'''
983+
msgToSend = data.getParameterWithID(data.PARDAT_VEL_Payload.parameter_id)
984+
msgToSend.payload.data['velMode'] = vel_output_mode
985+
msgToSend.payload.data['action'] = data.ParameterAction.CHANGING
986+
self.send_msg_and_waitfor_okay(msgToSend)
987+
988+
def get_ins_vel_output_frame(self):
989+
'''Convenience getter for velocity output frame of the INSSOL message
990+
991+
Raises:
992+
ClientTimeoutError: Timeout while waiting for response or parameter from the XCOM server
993+
ResponseError: The response from the system was not 'OK'.
994+
995+
'''
996+
msgToSend = data.getParameterWithID(data.PARDAT_VEL_Payload.parameter_id)
997+
msgToSend.payload.data['action'] = data.ParameterAction.REQUESTING
998+
self.send_msg_and_waitfor_okay(msgToSend)
999+
return self.wait_for_parameter()
9711000

9721001
def get_device_info(self):
9731002
'''Get information about the connected device

ixcom/protocol.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,18 @@ class DatatSelectionMask(IntEnum):
7979
ECEFPOS = 0b0000010000000000
8080
'''Position is ECEF X,Y,Z'''
8181

82+
class ParDatVelMode(IntEnum):
83+
'''Enumeration for the velocity output frame of the INSSOL message'''
84+
85+
NED = 0
86+
'''The velocity fields of the INSSOL message contain the velocity in NED frame.'''
87+
ENU = 1
88+
'''The velocity fields of the INSSOL message contain the velocity in ENU frame.'''
89+
ECEF = 2
90+
'''The velocity fields of the INSSOL message contain the velocity in ECEF frame.'''
91+
BODY = 3
92+
'''The velocity fields of the INSSOL message contain the velocity in vehicle body frame.'''
93+
8294
class MessageID(IntEnum):
8395
'''Enumeration for special message IDs'''
8496
PLUGIN = 0x64

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
long_description = open(readmePath, "rt").read()
1515

1616
setup(name='ixcom',
17-
version='1.3.6',
17+
version='1.3.7',
1818
description='Library for communicating with xcom devices over network',
1919
author='iMAR Navigation GmbH',
2020
author_email='[email protected]',

0 commit comments

Comments
 (0)