Andy, Mike, I've just been having a look at this. Turns out it is to do with the penlift_penup / pendown function being called from within another function. The penlift command has spotted that there are parameters, and thinks they are for it, but of course the parameters belong to the containing function. In this case, "rove_drawNorwegianFromFile".
So that's why it's turning to that weird angle. There's a proper way to fix this, and I'll do that for the next firmware release, but in the meantime, you can get it to behave by adding a line "
noOfParams = 0;
" to the drawNorwegian function code so it looks like:
void rove_drawNorwegianFromFile()
{
if (useRoveArea)
{
// get parameters
String filename = inParam1;
int maxAmplitude = multiplier(asInt(inParam2));
int wavelength = multiplier(asInt(inParam3));
inNoOfParams = 0;
...
|