Support

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

Users are reminded of the forum rules they sign up to which prohibits any activity that violates any laws including posting material covered by copyright

rotate a bitmap about it's centre

For general discussion related FlowStone

rotate a bitmap about it's centre

Postby nimbusgb » Tue Oct 11, 2011 9:29 pm

trying to rotate a bitmap of a compass card around its own centre.

Any pointers would be appreciated!
nimbusgb
 
Posts: 11
Joined: Sun Oct 09, 2011 5:55 am

Re: rotate a bitmap about it's centre

Postby nimbusgb » Wed Oct 12, 2011 6:49 am

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

Image


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 1235 times
nimbusgb
 
Posts: 11
Joined: Sun Oct 09, 2011 5:55 am

Re: rotate a bitmap about it's centre

Postby Morph » Wed Oct 12, 2011 10:06 am

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.
compass_redraw_area.fsm
(32.4 KiB) Downloaded 1268 times
Morph
 
Posts: 53
Joined: Tue Jul 13, 2010 1:59 pm

Re: rotate a bitmap about it's centre

Postby fixstuff555 » Thu Oct 13, 2011 12:41 am

Well done.

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

Postby horaceoz » Thu Dec 22, 2011 11:03 pm

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?
Attachments
CarAttitudeMeter.fsm
Land Rover Attitude Meter
(63.9 KiB) Downloaded 1209 times
horaceoz
 
Posts: 2
Joined: Sat Oct 22, 2011 5:08 am

Re: rotate a bitmap about it's centre

Postby Embedded » Fri Dec 23, 2011 12:30 am

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

Postby horaceoz » Fri Dec 23, 2011 12:39 am

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


Return to General

Who is online

Users browsing this forum: No registered users and 76 guests