remaining video,overrides-customizations,no-raw@video,just _random_ stuff :D - page 5 - General Discussion and Assistance - CHDK Forum  

remaining video,overrides-customizations,no-raw@video,just _random_ stuff :D

  • 44 Replies
  • 30152 Views
*

Offline Jucifer

  • *****
  • 251
  • [A710IS]
Advertisements
if get_nd_present returns 0, this means there is no ND present BUT iris is present
Hm. You're right. :]

Don't know about the get_. But I'd really like to change the syntax. I don't like using intermediary variables. On the other hand, I don't know if I'll ever need these commands, but still. :] New get-type commands (commands, that don't need parameters, only return a value that can be put into a variable) are also easier to add that way, I think.

*

Offline PhyrePhoX

  • *****
  • 2254
  • make RAW not WAR
    • PhyreWorX
hm, i dont know how to change the syntax of ubasic, do you have an idea?

*

Offline Jucifer

  • *****
  • 251
  • [A710IS]
e.g. get_tick_count has only this in ubasic.c:
Code: [Select]
case TOKENIZER_GET_TICK_COUNT:
    accept(TOKENIZER_GET_TICK_COUNT);
    r = shooting_get_tick_count();     
   break;
.
This returns a value, which can be used "as-is" or put to a variable

(versus

Code: [Select]
  case TOKENIZER_GET_ND_PRESENT:
          get_nd_present_statement();
     break;
plus
Code: [Select]
static void   get_nd_present_statement()
{
<snip>
}
)

*

Offline PhyrePhoX

  • *****
  • 2254
  • make RAW not WAR
    • PhyreWorX
hm, did you test this? if this works, i'm fine with that!
will have no time this weekend though, maybe you can do it :)

note to self:
add ubasic command to get presence of extra video button (s-series)
next note: add option display BATTERY only in playback (useful for lenghty slideshows maybe)
« Last Edit: 14 / May / 2008, 21:54:29 by PhyrePhoX »


*

Offline Jucifer

  • *****
  • 251
  • [A710IS]
Also, what I'd _really_ like to do is to change the behavior of every "get" command to (x=)command. I think it would make those commands a bit more versatile, but it would also break almost every ubasic script. :] (Scripts wouldn't need much tweaking, though.)

(I just might do it for my next build... *evil laughter*)



P.S. Oops, I did it.

:]
« Last Edit: 11 / May / 2008, 06:24:48 by Jucifer »

 

Related Topics


SimplePortal 2.3.6 © 2008-2014, SimplePortal