Mag declination limited to 20?

This forum is dedicated to software development related to MultiWii.
It is not the right place to submit a setup problem.
Software download
Post Reply
PeterWeb
Posts: 11
Joined: Wed Jul 02, 2014 7:43 am

Mag declination limited to 20?

Post by PeterWeb »

Hi folks,
MultiWii is a fabulous ecosystem - I've just cut my teeth on some simple in-house patches.

I've noticed one minor glitch I haven't been able to address with a quick look:

The MAG_DECLINATION setting seems to be limited to 20 - both in the GUI and even if I set a higher value in config.h (or perhaps it IS being interpreted correctly in code but displayed as 20 in the GUI; that makes some sense).

Is there some bit-related reason for the cap of 20 or is it just an arbitrary coding limit?

In my neck of the woods, declination is +23.5 - not that the extra three degrees matters a whole lot. But it's a bit like encountering software which can't cope with a UTC+13 timezone. :)

PatrikE
Posts: 1976
Joined: Tue Apr 12, 2011 6:35 pm
Location: Sweden
Contact:

Re: Mag declination limited to 20?

Post by PatrikE »

There's no limit in MWii code.
The numberbox is limited to +/20 in the Gui.
What is the largest MAG_DECLINATION that can be expected?
is +/-30 reasonable limits?

I increased to 30 and uploaded it to be included in next release.
A compiled copy can be downloaded here.

PeterWeb
Posts: 11
Joined: Wed Jul 02, 2014 7:43 am

Re: Mag declination limited to 20?

Post by PeterWeb »

Thanks PatrikE!

According to Yahoo Answers, 40-50 is possible in "normal" locations, though it can get higher if quite close to the magnetic N pole or its opposite. https://nz.answers.yahoo.com/question/index?qid=20090918080032AAMZFO9

Post Reply