Author Topic: Convert PicoC script to run on TCC?  (Read 5653 times)

gerk.raisen

  • Member
  • ***
  • Posts: 161
Convert PicoC script to run on TCC?
« on: May 27, 2013, 02:23:08 PM »
Now that many people (me too) are trying raw_rec module (so with PicoC disabled and TCC enabled),
I was figuring out how to convert simple scripts from PicoC to TCC.

I read that with TCC scripting is a little more complicated.

For example (taken from brack.c)
What i need to run to make it work?



// Custom bracket sequence
// ISO 3200 1/10 f1.8
// ISO 100 1/10 f8
// ISO 100 1" f8
// ISO 100 10" f8

console_hide();

set_aperture(1.8);
set_iso(3200);
set_shutter(1./10);
takepic();

set_aperture(8);
set_iso(100);
takepic();

set_shutter(1);
takepic();

set_shutter(10);
takepic();

g3gg0

  • Developer
  • Hero Member
  • *****
  • Posts: 3190
Re: Convert PicoC script to run on TCC?
« Reply #1 on: May 27, 2013, 02:24:31 PM »
wrap it with

int main()
{
...
}

thats the most important stuff.
then we will see which functions are missing.
Help us with datasheets - Help us with register dumps
magic lantern: 1Magic9991E1eWbGvrsx186GovYCXFbppY, server expenses: paypal@g3gg0.de
ONLY donate for things we have done, not for things you expect!

federico.albertini

  • New to the forum
  • *
  • Posts: 6
Re: Convert PicoC script to run on TCC?
« Reply #2 on: November 01, 2013, 06:53:06 PM »
From where do you run a script, within ML?

cheers, F.