Skip to content

Commit

Permalink
added getter for MESSAGE_GET_VALUES message type
Browse files Browse the repository at this point in the history
  • Loading branch information
ausshir committed Apr 9, 2017
1 parent 1bd57eb commit d3674fe
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions pyvesc/messages/getters.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
from pyvesc.messages.base import VESCMessage

class GetValues(metaclass=VESCMessage):
""" Gets internal sensor data
"""
id = 4
# When sending the request for this info, a blank ID must be sent
# fields = []
fields = [
('temp_mos1', 'e'),
('temp_mos2', 'e'),
('temp_mos3', 'e'),
('temp_mos4', 'e'),
('temp_mos5', 'e'),
('temp_mos6', 'e'),
('temp_pcb', 'e'),
('current_motor', 'f'),
('current_in', 'f'),
('duty_now', 'e'),
('rpm', 'f'),
('v_in', 'e'),
('amp_hours', 'f'),
('amp_hours_charged', 'f'),
('watt_hours', 'f'),
('watt_hours_charged', 'f'),
('tachometer', 'l'),
('tachometer_abs', 'l'),
('mc_fault_code', 'c')
]

0 comments on commit d3674fe

Please sign in to comment.