forked from LiamBindle/PyVESC
-
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.
added getter for MESSAGE_GET_VALUES message type
- Loading branch information
Showing
1 changed file
with
29 additions
and
0 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,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') | ||
] |