Click here to go to the forum index Click here for the home page
 
Author Message

<  TAP and patch development  ~  Can I command Toppy to a particular FF speed?

Page 1 of 2
Goto page 1, 2  Next
MarkPax
Posted: Mon Dec 13, 2010 1:43 pm Reply with quote
Frequent contributor Joined: 07 Nov 2010 Posts: 520
Hi, can anyone help me... I want to command the Toppy to a particular fast forward speed with a single command (rather than emulating a series of keypresses).

For example, if I am currently at FFx6, I want to command the Toppy to go to FFx4. The only way I can do it at the moment is to emulate a series of keypresses (play, forward, forward). Very clunky.

Hope you guys can help me, cheers

(I want to emulate the behaviour of my old Thomson where pressing the Rewind key during fast forward would slow down the fast forward speed rather than going straight to rewind).

_________________
TF5800t, TS On, F/W: MS6 Recommended F/W 12/9/2009 +PeR0UUuWfZ
TAPs: TAP Commander 1.34; TommyFF v2.1; BlankStuff v2.5; MyInfo B5.5; EPG2MEI v0.96; MyStuff 6.5; Font Manager 1.0d; Extend v1.7; SecCache (UK) v0.4; EIT Sub v0.6; TF5000 Display v1.53;
Sig generated by MyInfo on 19/5/11
View user's profile Send private message
EMJB
Posted: Mon Dec 13, 2010 2:37 pm Reply with quote
Frequent contributor Joined: 08 Jul 2005 Posts: 3637 Location: Maldon Essex
Code:
int SetFFSpeed(int Speed)                  // speed = 0 = pause
{
   byte  *PlayMode           = (byte*)FIS_vPlaySlot();
   dword  fwSetPlaybackSpeed = FIS_fwSetPlaybackSpeed();
   static int                LastSpeed = -1;

   if (!fwSetPlaybackSpeed)
   {   
      if (!FIS_fwSetPlaybackMode())
         return (-1);
      else
         return (-2);
   }
   
   if (Speed == LastSpeed) return (1);
   LastSpeed = Speed;
   
   if (!PlayMode ) return (2);
   
   //Playback or chase play only
   if (*PlayMode != 2 && *PlayMode != 3) return (3);

   CallFirmware(fwSetPlaybackSpeed, 1000*Speed, 255, 0, 0);
   SelectedSpeed = Speed;
   return (4);
}


will allow you to set the speed to any integer value times normal, but you can easily change that if you want. You will need the FireBird library from here to use the above.

EMJB
View user's profile Send private message
MarkPax
Posted: Mon Dec 13, 2010 3:40 pm Reply with quote
Frequent contributor Joined: 07 Nov 2010 Posts: 520
Thanks a lot, I shall have a tinker with that tonight. Mark

_________________
TF5800t, TS On, F/W: MS6 Recommended F/W 12/9/2009 +PeR0UUuWfZ
TAPs: TAP Commander 1.34; TommyFF v2.1; BlankStuff v2.5; MyInfo B5.5; EPG2MEI v0.96; MyStuff 6.5; Font Manager 1.0d; Extend v1.7; SecCache (UK) v0.4; EIT Sub v0.6; TF5000 Display v1.53;
Sig generated by MyInfo on 19/5/11
View user's profile Send private message
MarkPax
Posted: Mon Dec 13, 2010 5:43 pm Reply with quote
Frequent contributor Joined: 07 Nov 2010 Posts: 520
Hi EMJB

I've put the FireBirdLib folder into my TAP directory and added
#include "FireBirdLib/libFireBird.h"
to a previously compiling TAP and get the following compile failure:-

Code:
Marks-MacBook-Pro:taptest mark$ make
/usr/local/topfield-gcc/bin/mips-gcc -mlong-calls -msoft-float -mqnxpic -fno-delayed-branch -O2 -I/usr/local/topfield-gcc/topfield-sdk/include  -DOS=\"\" -Wall -I.   -c -o FFBrake.o FFBrake.c
In file included from FFBrake.c:6:
FireBirdLib/libFireBird.h:125: warning: `XDATA' redefined
/usr/local/topfield-gcc/topfield-sdk/include/tap.h:17: warning: this is the location of the previous definition
FireBirdLib/libFireBird.h:126: warning: `TS_FILE_NAME_SIZE' redefined
/usr/local/topfield-gcc/topfield-sdk/include/hdd.h:4: warning: this is the location of the previous definition
In file included from FFBrake.c:6:
FireBirdLib/libFireBird.h:663: parse error before `__off64_t'
[...]
make: *** [FFBrake.o] Error 1


I have tinkered with the various recommendations here with no luck, but I don't really know what I'm doing. Can you help? I know virtually nothing about C or compilers, so be gentle! thanks in advance

_________________
TF5800t, TS On, F/W: MS6 Recommended F/W 12/9/2009 +PeR0UUuWfZ
TAPs: TAP Commander 1.34; TommyFF v2.1; BlankStuff v2.5; MyInfo B5.5; EPG2MEI v0.96; MyStuff 6.5; Font Manager 1.0d; Extend v1.7; SecCache (UK) v0.4; EIT Sub v0.6; TF5000 Display v1.53;
Sig generated by MyInfo on 19/5/11
View user's profile Send private message
MarkPax
Posted: Mon Dec 13, 2010 6:42 pm Reply with quote
Frequent contributor Joined: 07 Nov 2010 Posts: 520
It sounds like a type not supported in Mac gcc. I've replaced it with int (not sure if that's the right thing to do, any advice would be welcome). I can get it compile now with libFireBird.h included (a few warnings though), but I haven't included any code yet. Thanks

_________________
TF5800t, TS On, F/W: MS6 Recommended F/W 12/9/2009 +PeR0UUuWfZ
TAPs: TAP Commander 1.34; TommyFF v2.1; BlankStuff v2.5; MyInfo B5.5; EPG2MEI v0.96; MyStuff 6.5; Font Manager 1.0d; Extend v1.7; SecCache (UK) v0.4; EIT Sub v0.6; TF5000 Display v1.53;
Sig generated by MyInfo on 19/5/11
View user's profile Send private message
EMJB
Posted: Mon Dec 13, 2010 6:59 pm Reply with quote
Frequent contributor Joined: 08 Jul 2005 Posts: 3637 Location: Maldon Essex
You will also need to add libFireBird.a to your makefile after the ".o"s before you can use any of the functions.

I don't think that is the cause of the above, but at times I have had some very funny reports from the cgwin compiler so can't be absolutely sure. What is particularly odd is that my version of libFireBird.h (2010-08-26) is only 29 lines long but your compileris reporting errors at lines 125/126!!

Sorry can't be of more help.

EMJB
View user's profile Send private message
MarkPax
Posted: Mon Dec 13, 2010 7:22 pm Reply with quote
Frequent contributor Joined: 07 Nov 2010 Posts: 520
EMJB wrote:
You will also need to add libFireBird.a to your makefile after the ".o"s before you can use any of the functions.

That was my next question, well anticipated!
EMJB wrote:
I don't think that is the cause of the above, but at times I have had some very funny reports from the cgwin compiler so can't be absolutely sure. What is particularly odd is that my version of libFireBird.h (2010-08-26) is only 29 lines long but your compileris reporting errors at lines 125/126!!

Now you've got me really worried, my version is many hundred lines, perhaps 1000. It says #define __FBLIB_VERSION__ "2010-11-26"
Thanks again, more moronic questions to follow I'm sure.

_________________
TF5800t, TS On, F/W: MS6 Recommended F/W 12/9/2009 +PeR0UUuWfZ
TAPs: TAP Commander 1.34; TommyFF v2.1; BlankStuff v2.5; MyInfo B5.5; EPG2MEI v0.96; MyStuff 6.5; Font Manager 1.0d; Extend v1.7; SecCache (UK) v0.4; EIT Sub v0.6; TF5000 Display v1.53;
Sig generated by MyInfo on 19/5/11
View user's profile Send private message
MarkPax
Posted: Mon Dec 13, 2010 8:33 pm Reply with quote
Frequent contributor Joined: 07 Nov 2010 Posts: 520
Hi EMJB

Next problem - the zipped version of libFireBird.h (2010-11-26) you linked to does not include a definition of FIS_vPlaySlot. But the version included with FontManager (2008-03-20) does! If I use the more recent version my compiler throws "FFBrake.c:53: warning: implicit declaration of function `FIS_vPlaySlot''". If I use the older version I can get that compile error to go away, but I still can't link because the linker throws a similar error "FFBrake.c: undefined reference to `FIS_vPlaySlot'"

I suspect the problem is the 2010 version of libFireBird.a also does not contain the right reference. I've no idea where to find an older version. Could you send me the versions of libFireBird.h and .a that you are using to get your code snippet to compile? Thanks very much!

To anyone - what's the deal with libFireBird.h and .a versions? EMJB says his version is only 29 lines, the 2010-11-26 version I have is hundreds of lines long, yet doesn't include FIS_vPlaySlot?

Thanks in advance all!

_________________
TF5800t, TS On, F/W: MS6 Recommended F/W 12/9/2009 +PeR0UUuWfZ
TAPs: TAP Commander 1.34; TommyFF v2.1; BlankStuff v2.5; MyInfo B5.5; EPG2MEI v0.96; MyStuff 6.5; Font Manager 1.0d; Extend v1.7; SecCache (UK) v0.4; EIT Sub v0.6; TF5000 Display v1.53;
Sig generated by MyInfo on 19/5/11
View user's profile Send private message
ryclark
Posted: Tue Dec 14, 2010 12:33 am Reply with quote
Frequent contributor Joined: 10 Jul 2005 Posts: 1604 Location: Shropshire
Although based in Austria Firebird does frequent these forums from time to time. So if you find a recent post from him you would probably be able to PM him for an answer direct.

_________________
TF5800t, TS On, F/W: MS6 Recommended F/W 12/9/2009 -Fm
TAPs: PcControl B1.4; MyInfo B5.6; EPG2MEI v0.96; MyStuff 6.6; MHEG On/Off A3; Extend v1.7; SecCache (UK) v0.4; EIT Sub (Game) v0.6; TSSaver v0.5;
Sig generated by MyInfo on 13/10/14
?
View user's profile Send private message
Valiant
Posted: Tue Dec 14, 2010 5:37 am Reply with quote
Frequent contributor Joined: 19 May 2008 Posts: 296
EMJB wrote:
What is particularly odd is that my version of libFireBird.h (2010-08-26) is only 29 lines long but your compileris reporting errors at lines 125/126!!

Sorry can't be of more help.

EMJB


The one I'm using is 2010-05-26. EMJB seems to have a later version. There are older versions which are 3700 ish lines long but these appear to have been superceded by the 29 line version with generic, TMS, and TF5000 related includes. Is there a latest one somewhere, preferably with a change log included/attached?

_________________
TF5810, F/W: MS6 Recommended F/W 12/9/2009 -Fm+BmFsIPsUUuUxZ
TAPs: MyInfo B5.6; EPG2MEI v0.96; Extend v1.7; SecCache (UK) v0.4; MyStuff 6.5; (EIT Sub v0.6 SnG);
Sig generated by MyInfo on 25/3/14
View user's profile Send private message 5810
MarkPax
Posted: Tue Dec 14, 2010 8:52 am Reply with quote
Frequent contributor Joined: 07 Nov 2010 Posts: 520
ryclark wrote:
Although based in Austria Firebird does frequent these forums from time to time. So if you find a recent post from him you would probably be able to PM him for an answer direct.

Good idea, I've PM'd him. He last posted a couple of weeks ago so hopefully he will read my message
cheers

_________________
TF5800t, TS On, F/W: MS6 Recommended F/W 12/9/2009 +PeR0UUuWfZ
TAPs: TAP Commander 1.34; TommyFF v2.1; BlankStuff v2.5; MyInfo B5.5; EPG2MEI v0.96; MyStuff 6.5; Font Manager 1.0d; Extend v1.7; SecCache (UK) v0.4; EIT Sub v0.6; TF5000 Display v1.53;
Sig generated by MyInfo on 19/5/11
View user's profile Send private message
mstombs
Posted: Wed Dec 15, 2010 10:41 am Reply with quote
Frequent contributor Joined: 31 Dec 2006 Posts: 938
This appears to be the main link/discussion of the latest source of Firebird lib - will be the same as the one as MarkPax has

http://www.topfield-europe.com/forum/showthread.php?t=7454

Google translate make its readable - above function mentioned in changelog from 2008

_________________
TF5800 1.5TB, TS On, NSLU2 + unslung 6.10 + WD500GB + MWI 0.66, F/W: MS6 Recommended F/W 12/9/2009 -Fm+AfBmC0CfCtFsIMPePfPsScUWfWs
TAPs: EPG2MEI v0.96; QuickJump 1.72; SecCache (UK) v0.4; (MyInfo B5.6); MHEG On/Off A3; Extend v1.7; MyStuff 6.6; DumbWidescreenTV 2.44; TF5000 Display v1.53; PruneEPG 1.0; (EIT Sub v0.6 SnG);
Sig generated with help from MyInfo on 18/4/15
?
View user's profile Send private message TF5800
FireBird
Posted: Wed Dec 15, 2010 2:16 pm Reply with quote
Frequent contributor Joined: 05 May 2005 Posts: 358 Location: Vienna/Austria
MarkPax wrote:
I've PM'd him. He last posted a couple of weeks ago so hopefully he will read my message

Whatever has happened, I didn't receive the PM. Rolling Eyes

Because the 5000 models are dying here in Europe, I did a big cleanup and completely removed the 5k code. This is the last version including the 5000 functions. This doesn?t mean that I won?t do any bug fixes, but the support is somewhat limited because my TF5000 Masterpiece is already sleeping in a box.
View user's profile Send private message
MarkPax
Posted: Wed Dec 15, 2010 5:54 pm Reply with quote
Frequent contributor Joined: 07 Nov 2010 Posts: 520
Hi FireBird, thanks very much for posting this.

I included the libFireBird.h, but on my Mac the compiler throws up a bunch of errors when I put the new library in my include folder and "include libFireBird.h" in my TAP code:-

Here's the list, it looks like a lot but it's confined to just a couple of places. I am only a C beginner, so I don't understand variadic functions and so on! I don't know whether these errors are because I am using gcc on a Mac, or what...

I hope you can help me, thanks for your help so far. Mark

Compiler output below...

/usr/local/topfield-gcc/topfield-sdk/include/libFireBird_TF5000.h:1490: parse error before `{'
/usr/local/topfield-gcc/topfield-sdk/include/libFireBird_TF5000.h:1492: stray '\' in program
/usr/local/topfield-gcc/topfield-sdk/include/libFireBird_TF5000.h:1493: stray '\' in program
/usr/local/topfield-gcc/topfield-sdk/include/libFireBird_TF5000.h:1495: initializer element is not constant
/usr/local/topfield-gcc/topfield-sdk/include/libFireBird_TF5000.h:1496: parse error before `__volatile__'
/usr/local/topfield-gcc/topfield-sdk/include/libFireBird_TF5000.h:1496: stray '\' in program
/usr/local/topfield-gcc/topfield-sdk/include/libFireBird_TF5000.h:1497: stray '\' in program
/usr/local/topfield-gcc/topfield-sdk/include/libFireBird_TF5000.h:1499: warning: type defaults to `int' in declaration of `res'
/usr/local/topfield-gcc/topfield-sdk/include/libFireBird_TF5000.h:1499: warning: implicit declaration of function `f'
/usr/local/topfield-gcc/topfield-sdk/include/libFireBird_TF5000.h:1499: `__VA_ARGS__' undeclared here (not in a function)
/usr/local/topfield-gcc/topfield-sdk/include/libFireBird_TF5000.h:1499: initializer element is not constant
/usr/local/topfield-gcc/topfield-sdk/include/libFireBird_TF5000.h:1499: warning: data definition has no type or storage class
/usr/local/topfield-gcc/topfield-sdk/include/libFireBird_TF5000.h:1500: parse error before `__volatile__'
/usr/local/topfield-gcc/topfield-sdk/include/libFireBird_TF5000.h:1500: stray '\' in program
/usr/local/topfield-gcc/topfield-sdk/include/libFireBird_TF5000.h:1501: stray '\' in program
/usr/local/topfield-gcc/topfield-sdk/include/libFireBird_TF5000.h:1504: warning: type defaults to `int' in declaration of `res'
/usr/local/topfield-gcc/topfield-sdk/include/libFireBird_TF5000.h:1504: warning: data definition has no type or storage class
/usr/local/topfield-gcc/topfield-sdk/include/libFireBird_TF5000.h:1505: parse error before `}'
/usr/local/topfield-gcc/topfield-sdk/include/libFireBird_TF5000.h:1533: parse error before `:'
/usr/local/topfield-gcc/topfield-sdk/include/libFireBird_TF5000.h:1534: parse error before `:'
/usr/local/topfield-gcc/topfield-sdk/include/libFireBird_TF5000.h:1546: parse error before `}'
/usr/local/topfield-gcc/topfield-sdk/include/libFireBird_TF5000.h:1546: warning: type defaults to `int' in declaration of `tOSDInfo'
/usr/local/topfield-gcc/topfield-sdk/include/libFireBird_TF5000.h:1546: warning: data definition has no type or storage class
/usr/local/topfield-gcc/topfield-sdk/include/libFireBird_TF5000.h:2494: parse error before `tRECHeader'
/usr/local/topfield-gcc/topfield-sdk/include/libFireBird_TF5000.h:2494: warning: no semicolon at end of struct or union
/usr/local/topfield-gcc/topfield-sdk/include/libFireBird_TF5000.h:2495: warning: type defaults to `int' in declaration of `tPlaySlot'
/usr/local/topfield-gcc/topfield-sdk/include/libFireBird_TF5000.h:2495: warning: data definition has no type or storage class
/usr/local/topfield-gcc/topfield-sdk/include/libFireBird_TF5000.h:2497: parse error before `tRECHeaderInfo'
/usr/local/topfield-gcc/topfield-sdk/include/libFireBird_TF5000.h:2502: parse error before `*'
/usr/local/topfield-gcc/topfield-sdk/include/libFireBird_TF5000.h:2502: warning: type defaults to `int' in declaration of `HDD_PlaySlotGetAddress'
/usr/local/topfield-gcc/topfield-sdk/include/libFireBird_TF5000.h:2502: warning: data definition has no type or storage class
/usr/local/topfield-gcc/topfield-sdk/include/libFireBird_TF5000.h:2503: parse error before `tRECHeaderInfo'

_________________
TF5800t, TS On, F/W: MS6 Recommended F/W 12/9/2009 +PeR0UUuWfZ
TAPs: TAP Commander 1.34; TommyFF v2.1; BlankStuff v2.5; MyInfo B5.5; EPG2MEI v0.96; MyStuff 6.5; Font Manager 1.0d; Extend v1.7; SecCache (UK) v0.4; EIT Sub v0.6; TF5000 Display v1.53;
Sig generated by MyInfo on 19/5/11
View user's profile Send private message
FireBird
Posted: Wed Dec 15, 2010 6:38 pm Reply with quote
Frequent contributor Joined: 05 May 2005 Posts: 358 Location: Vienna/Austria
Hi Mark,

MarkPax wrote:
/usr/local/topfield-gcc/topfield-sdk/include/libFireBird_TF5000.h:1490: parse error before `{'

This one is not needed by the lib, so you can remark the whole ifndef block from line 1488 to 1508. Let?s see if this fixes the other messages.

Cheers,
Alex
View user's profile Send private message

Display posts from previous:  

All times are GMT + 1 Hour
Page 1 of 2
Goto page 1, 2  Next

Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum