-
Notifications
You must be signed in to change notification settings - Fork 104
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can battery #793
Can battery #793
Conversation
|
@randaz81 I'll start developing the device in the next few days, for now, just the parser (ServiceParserCanBattery) class is ready. I'm writing the unit tests now.
|
@randaz81 <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE device PUBLIC "-//YARP//DTD yarprobotinterface 3.0//EN" "http://www.yarp.it/DTD/yarprobotinterfaceV3.0.dtd">
<device xmlns:xi="http://www.w3.org/2001/XInclude" name="battery" type="embObjBattery">
<xi:include href="../../general.xml" />
<xi:include href="../../hardware/electronics/face-eb22-j0_1-eln.xml" />
<group name="SERVICE">
<param name="type"> eomn_serv_AS_battery </param>
<group name="PROPERTIES">
<!-- we can have as many boards as we want,
but now the only good ones are strain and strain2.
use eoas_ft_isboardvalid() to verify -->
<group name="CANBOARDS">
<param name="type"> bat </param>
<group name="PROTOCOL">
<param name="major"> 0 </param>
<param name="minor"> 0 </param>
</group>
<group name="FIRMWARE">
<param name="major"> 0 </param>
<param name="minor"> 0 </param>
<param name="build"> 0 </param>
</group>
</group>
<group name="SENSORS">
<param name="id"> battery1 </param>
<param name="board"> bat </param>
<param name="location"> CAN2:13 </param>
</group>
</group>
<!-- we can pick up at max 4 sensors from the above list.
we can specify parameters which are different for each sensor
ft rate is in ms in range [1, 250]
temperature rate is in ms but must be transformed in seconds.
use calibration is boolean
-->
<group name="SETTINGS">
<param name="enabledSensors"> battery1 </param>
<param name="acquisitionRate"> 1000 </param> <!-- msec -->
</group>
</group>
</device> |
Hi @triccyx Remember that we need to make sure to compile against the new version of |
Yes, I'm keeping the two repos aligned |
This comment was marked as duplicate.
This comment was marked as duplicate.
Hi @triccyx |
Also, there are conflicts that need to be fixed, in particular, on this file: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll keep this PR in draft until the sister PR in icub-firmware-shared will be merged.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Waiting for CI and then I'll be happy to merge it.
Can battery new device