
33
Advanced Editing
The Advanced Editing feature provides a method for configuring the buttons on the control panel and
remote control.
Once you’ve created a pose and sequence list using the XYZrobot Editor, you can save the list to an
AVR format (see
“Basic Editing”
on page 26
). The AVR file is necessary to cross reference and
synchronize the pose definition library to the remote controller and buttons on the control panel.
Before You Start
The pose/sequence library can be extended through the use of the Arduino programming platform to
provide a configuration function for your remote control and front control panel. This section describes
the steps necessary to prepare an Adruino based pose/sequence list from an AVR file (XYZrobot
Editor source file), in order to create a variable list to be used during configuration.
Creating an AVR Reference File
Before you can get started, you will need to create an AVR file which includes the list of pose and
sequence entries, which will serve as the reference for the advanced configuration procedures. See
“Basic Editing”
on page 26
.
To create an AVR file:
1.
Select
Projector > Open
and select an .xyz file to open.
2.
Select
Tool > Export to AVR
to save an .h file for use with the Arduino application.
3.
Close the XYZrobot Editor.
4.
Open the previously saved AVR file (*.h format).
NOTE:
Open the AVR file using a general text editor (such as Notepad) as .h files cannot be opened
in Arduino.
5.
Once the file is open, the Pose and Sequence information is visible in the workspace in a
compiled format. Copy the edited list, see the following example. The copied list will be later
saved in a designated file (
OTHERS_USER_MOTION.h
), defining the pose list in the Arduino
library.
const PROGMEM unit16_t U_p1[] = {6, 622, 251, 504, 602, 400, 625};
const PROGMEM unit16_t U_p2[] = {6, 400, 350, 400, 200, 850, 750};
const PROGMEM transition_t U_s1[] = {{0,2}, {p1,500}, {p2,1000}};
03
Operations