Git Product home page Git Product logo

Comments (5)

knicholson32 avatar knicholson32 commented on June 29, 2024

My apologies for the huge delay in this response.

Browser Orientation
Orientation is a tricky topic with this project because it is hard to tell with 100% accuracy what device the user is using and how they want the app oriented. Even using phone accelerometer data, as an example, may be invalid if the phone is mounted to the control column. For this reason, the app will always orient itself in a 'landscape' style. Currently, there is no way to tell the application to force portrait mode.

If you are using a desktop

  • One workaround is to resize your browser window to a landscape configuration.
  • Alternately, the chrome developer tools can be used to set the browser viewport to simulate a specific device. More info on that here.

If you believe it would be beneficial to have a button on the display to force a portrait mode, please let me know.

Ground Speed Units
You can change the ground speed unit to be any unit you prefer by modifying the configuration.js file:

/** ******************************** SPEED ********************************* **/
var speedTape = {
  lowerSpeed: 0,
  upperSpeed: 200,
  speeds: [
    {
      color: COLORS.WHITE,
      start: 55,
      end: 115
    },
    {
      color: COLORS.GREEN,
      start: 64,
      end: 140
    },
    {
      color: COLORS.YELLOW,
      start: 140,
      end: 171
    },
    {
      color: COLORS.RED,
      start: 171,
      end: 200
    }
  ],
  units: UNITS.MPH // <----- Units for displaying speed. 'UNITS.KTS' for knots.
};
/** ******************************** ***** ********************************* **/

Available units are as follows:

UNITS.KTS  // Knots
UNITS.MPH  // Miles per Hour
UNITS.KPH  // Kilometers per Hour
UNITS.FPM  // Feet per Minute
UNITS.FPS  // Feet per Second
UNITS.MPS  // Meters per Second
UNITS.MPM  // Meters per Minute

from stratux_ahrs.

dougduplessis avatar dougduplessis commented on June 29, 2024

from stratux_ahrs.

knicholson32 avatar knicholson32 commented on June 29, 2024

Great example, I'll re-open this and start looking into it. Thanks for the suggestion!

from stratux_ahrs.

knicholson32 avatar knicholson32 commented on June 29, 2024

Just finished adding a button in the menu ("Toggle Rotation" - have to scroll to see it) that forces the screen to rotate orientations. It is still recommended to lock screen orientation on your device, but in that locked state you should now be able to set portrait or landscape. Let me know how it works for you - it seems to work well in Chrome and on my iPhone, but not all devices act the same in these regards.

from stratux_ahrs.

DocTopi avatar DocTopi commented on June 29, 2024

Hi Keenan, in landscape mode the readability is very good. But in my opinion the further development should prefer the portrait mode - Doug is right.
In portrait mode the readability should be improved, and furthermore portrait mode offers the possibility for splitting the screen like Aspen Avionics E5: AHRS in the upper section, compass arc in the lower section. The compass arc should be selectable orientated in geographic = true north and magnetic north and should have a bug for selectable input the GPS-desired track or magnetic heading referring to this. Next a HSI screen with lateral course deviation could computed ... and with your code the iPhone is a very great instrument for checking the certified installed avionics.
I don´t know, if the iPhone´s magnetic sensors are suitable. Or would it be more suitable upgrading the stratux project with a magnetic sensor?
Please open isssues according to my suggestions.
Thanks and kind regards
Franz

from stratux_ahrs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.