Skip to content
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

Update Paexo wearable device with motor control through yarp #124

Merged
merged 13 commits into from
Jul 12, 2021
Merged
2 changes: 1 addition & 1 deletion app/xml/iWearLoggerExampleTemplate.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

<!--Logger level parameter to control logging to matlab/yarp/both-->
<!--either a text parameter or a list of , separated text parameters-->
<param name="LoggerLevel">(matlab, yarp)</param>
<param name="LoggerType">(matlab, yarp)</param>

<param name="logAllQuantities">false</param>
<param name="logAccelerometers">false</param>
Expand Down
8 changes: 4 additions & 4 deletions devices/Paexo/conf/Paexo.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<device type="serialport" name="SerialportDevice">
<param name="verbose"> 0 </param>
<!--param name="comport"> COM2 </param--> <!-- //windows -->
<param name="comport"> /dev/ttyACM2 </param> <!-- //linux -->
<param name="comport"> /dev/ttyACM0 </param> <!-- //linux -->
<param name="baudrate"> 115200 </param>
<param name="xonlim"> 0 </param>
<param name="xofflim"> 0 </param>
Expand Down Expand Up @@ -72,9 +72,9 @@
<action phase="shutdown" level="4" type="detach"/>
</device>

<!-- <device type="iwear_logger" name="ProducerLoggerDevice">
<device type="iwear_logger" name="ProducerLoggerDevice">
<param name="period">0.01</param>

<param name="LoggerType">(yarp)</param>
<param name="logAllQuantities">true</param>
<param name="logAccelerometers">false</param>
<param name="logEMGSensors">false</param>
Expand Down Expand Up @@ -107,6 +107,6 @@
</paramlist>
</action>
<action phase="shutdown" level="5" type="detach"/>
</device> -->
</device>

</robot>
4 changes: 2 additions & 2 deletions devices/Paexo/conf/paexo-validation-motor-control.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash
# set n to 1
min_motor_pos=27
max_motor_pos=55
min_motor_pos=30
max_motor_pos=50
step_size=2

## Paexo initialization
Expand Down
Loading