#21 new

click on waterfall sometime does not produce the correct frequency

Reported by JohnJames | April 24th, 2010 @ 03:59 PM

If the waterfall zoom is NOT all the way down (ie not zoomed out) then when you click on the waterfall it produces the wrong frequency.

Comments and changes to this ticket

  • JohnJames

    JohnJames April 24th, 2010 @ 05:40 PM

    When XTWaterfallView:: -(void)mouseUp: (NSEvent *)theEvent
    executes after zooming waterfall we get the same value for self.bounds; hence the same offset in freq will occur when zoomed as when not zoomed.

  • mcdermj (at xenotropic)

    mcdermj (at xenotropic) April 24th, 2010 @ 09:12 PM

    The code wasn't properly updated when I implemented the zoom
    function. The coordinates need to be translated from the
    CAScrollLayer that's sitting in the XTWaterfallView. A similar
    operation is done in the XTPanadapterView, I just haven't gotten to
    pushing the changes to XTWaterfallView yet.

  • JohnJames

    JohnJames April 25th, 2010 @ 04:48 AM

    This may not be the correct way but if I divide by zoomFactor it seems to fix the problem.

    transceiverController.frequency += (clickPoint.x - NSMidX(self.bounds)) * hzPerUnit / zoomFactor;

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

An open source software project implementing an amateur radio receiver for the OpenHPSDR hardware.

Shared Ticket Bins

People watching this ticket