If you have a problem or need to report a bug please email : support@dsprobotics.com
There are 3 sections to this support area:
DOWNLOADS: access to product manuals, support files and drivers
HELP & INFORMATION: tutorials and example files for learning or finding pre-made modules for your projects
USER FORUMS: meet with other users and exchange ideas, you can also get help and assistance here
NEW REGISTRATIONS - please contact us if you wish to register on the forum
rotate a bitmap about it's centre
7 posts
• Page 1 of 1
rotate a bitmap about it's centre
trying to rotate a bitmap of a compass card around its own centre.
Any pointers would be appreciated!
Any pointers would be appreciated!
- nimbusgb
- Posts: 11
- Joined: Sun Oct 09, 2011 5:55 am
Re: rotate a bitmap about it's centre
might have sorted some of it but i need to calculate the centre of the plotted bitmap. If the gui display is resized then the centre of rotation moves and things go wrong.
I have attached a copy of my display but not sure if that encapsulates the bitmaps??
It should display this
Can I just add how blown away I am at this! What a cracking piece of software! The manuals could do with a bit of work, working out where to put things like the redraw of a bitmap is mostly trial and error but 2 days ago I had not heard of Flowstone and in one evening I produced a working compass display, got a feed from a com port going, filtered out a csv stream and can control my display from a piece of hardware.
Excellent! I'll certainly be spreading the word to some of the user groups I am in!
I have attached a copy of my display but not sure if that encapsulates the bitmaps??
It should display this
Can I just add how blown away I am at this! What a cracking piece of software! The manuals could do with a bit of work, working out where to put things like the redraw of a bitmap is mostly trial and error but 2 days ago I had not heard of Flowstone and in one evening I produced a working compass display, got a feed from a com port going, filtered out a csv stream and can control my display from a piece of hardware.
Excellent! I'll certainly be spreading the word to some of the user groups I am in!
- Attachments
-
- compass.fsm
- (32.16 KiB) Downloaded 1165 times
- nimbusgb
- Posts: 11
- Joined: Sun Oct 09, 2011 5:55 am
Re: rotate a bitmap about it's centre
Looks good!
To optimize the redrawing a bit you can change the Redraw primitive to a Redraw Area to make the redraw area as small as possible. Also using a Float Changed can reduce triggers when triggers are sent without changing value.
To optimize the redrawing a bit you can change the Redraw primitive to a Redraw Area to make the redraw area as small as possible. Also using a Float Changed can reduce triggers when triggers are sent without changing value.
- Morph
- Posts: 53
- Joined: Tue Jul 13, 2010 1:59 pm
Re: rotate a bitmap about it's centre
Well done.
I have to say that's one of the best looking graphic bitmaps I've seen on these forums.
I have to say that's one of the best looking graphic bitmaps I've seen on these forums.
- fixstuff555
- Posts: 151
- Joined: Thu Oct 21, 2010 3:24 pm
Re: rotate a bitmap about it's centre
good work on the compass
used this with the phidgets 3/3/3 for spatial info for my Land Rover
does anyone know how to use the 3 axis compass readings to allow pitch and roll compensation?
used this with the phidgets 3/3/3 for spatial info for my Land Rover
does anyone know how to use the 3 axis compass readings to allow pitch and roll compensation?
- Attachments
-
- CarAttitudeMeter.fsm
- Land Rover Attitude Meter
- (63.9 KiB) Downloaded 1143 times
- horaceoz
- Posts: 2
- Joined: Sat Oct 22, 2011 5:08 am
Re: rotate a bitmap about it's centre
Depends what it is your controlling. But it will involve using the PID module to give nice progressive results.
- Embedded
- Posts: 143
- Joined: Sat Oct 30, 2010 1:42 pm
Re: rotate a bitmap about it's centre
At the mo I am using the yaw for compass heading for testing but I would like to use the compass data
- horaceoz
- Posts: 2
- Joined: Sat Oct 22, 2011 5:08 am
7 posts
• Page 1 of 1
Who is online
Users browsing this forum: Google [Bot] and 102 guests