FlexSEA Wiki

A WEARABLE ROBOTICS TOOLKIT

User Tools

Site Tools


demodescriptions

Demo Scripts

The current scripts consist of seven demos in three languages (Python, C/C++, MATLAB). Each script shows how to perform various operations using the fx_plan_stack API. Each of the scripts are functionally equivalent across the languages.

Read Only

This script demonstrates how to configure the FlexSEA device in order to read information from it. It will configure the device to stream multiple variables, then read and display them.

Open Control

This script demonstrates how to configure the FlexSEA device to enable the motor and start it spinning. It ramps the motor voltage up then down. This is repeated twice. At the end, the motor is turned off.

Current Control

This script demonstrates how to configure the FlexSEA device for current control mode. It programs an initial hold current and keeps it there for 10 seconds. The hold current is then ramped down to zero and the device is disabled.

Hold Position

This script demonstrates how to configure the FlexSEA device to hold a specified position and return to it when the user moves it. The script first reads the initial position then loops displaying the data. If the user changes the position of them device, it will return the initial position.

Find Poles

This script demonstrates how to run the internal calibration routine of the FlexSEA device. There is little user interaction although the script is some languages will display a message indicating how long it has been running. The user will note that the FlexSEA device will make some noise as this routine is executing.

Two Device Position Control

This script demonstrates how two devices can be configured to maintain their current position. The initial position for each device is read and the position is returned to as the user rotates the device.

Two Device Leader/Follower

This script demonstrates how one device is configured as a “controller” for the second device. The position of the first device is used to make the second device follow it. As the user rotates the first device, the second device will rotate an equivalent amount.

Notes

  • Two Device scripts do not require one board to be Manage 2, they can both be Manage 1
demodescriptions.txt · Last modified: 2019/03/19 13:53 by jfduval