Closed edwardchapin closed 8 years ago
I'll look into the bug. In this release we added an easier way to define arrays that comes out correct. Try using this format:
{
name = MOVE_PROBES
description = "Move probes to the target X, Y position in ICRS coordinates and stop."
requiredArgs = [moveFlag, moveCoords]
args = [
{
name = moveFlag
description = "Indicate which probes are to be moved."
type = array
dimensions: [3, 2]
items = {
type = boolean
}
}
{
name = moveCoords
description = "X,Y coordinate pairs for each probe (mm)"
type = array
dimensions: [3, 2]
items = {
type = float
}
}
]
}
In this case dimensions is a list of array dimensions, so that you don't need to nest the JSON array declarations.
This alternative is basically letting me define an n-dimensional array which isn't quite the same thing, but clearly it will suffice for the time being.
I checked in a fix for this to the icd master branch.
I have been experimenting with release 0.1 and notice that the following command description (this is one element of "receive" in command-model.conf):
Is rendered both in the web page and the PDF as:
The "type" column should say
array[3] of array[2] of float
instead ofarray[3] of array[3] of float
.