Giter Site home page Giter Site logo

jellehak / drehmflight Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nickrehm/drehmflight

0.0 0.0 0.0 49.95 MB

Teensy/Arduino flight controller and stabilization for small-scale VTOL vehicles

License: GNU General Public License v3.0

C++ 77.83% C 22.17%

drehmflight's People

Contributors

abritten avatar jellehak avatar nickrehm avatar

drehmflight's Issues

Compile warnings

There are currently some warnings when compiling.

/dRehmFlight/Versions/dRehmFlight_Teensy_BETA_1.3/dRehmFlight_Teensy_BETA_1.3.ino: In function 'void calculate_IMU_error()':
/dRehmFlight/Versions/dRehmFlight_Teensy_BETA_1.3/dRehmFlight_Teensy_BETA_1.3.ino:620:35: warning: unused variable 'MgX' [-Wunused-variable]
  620 |   int16_t AcX,AcY,AcZ,GyX,GyY,GyZ,MgX,MgY,MgZ;
      |                                   ^~~
/dRehmFlight/Versions/dRehmFlight_Teensy_BETA_1.3/dRehmFlight_Teensy_BETA_1.3.ino:620:39: warning: unused variable 'MgY' [-Wunused-variable]
  620 |   int16_t AcX,AcY,AcZ,GyX,GyY,GyZ,MgX,MgY,MgZ;
      |                                       ^~~
/dRehmFlight/Versions/dRehmFlight_Teensy_BETA_1.3/dRehmFlight_Teensy_BETA_1.3.ino:620:43: warning: unused variable 'MgZ' [-Wunused-variable]
  620 |   int16_t AcX,AcY,AcZ,GyX,GyY,GyZ,MgX,MgY,MgZ;
      |                                           ^~~
/dRehmFlight/Versions/dRehmFlight_Teensy_BETA_1.3/dRehmFlight_Teensy_BETA_1.3.ino: In function 'void getIMUdata()':
/dRehmFlight/Versions/dRehmFlight_Teensy_BETA_1.3/dRehmFlight_Teensy_BETA_1.3.ino:597:13: warning: 'MgX' is used uninitialized [-Wuninitialized]
  597 |   MagX = MgX/6.0; //uT
      |          ~~~^~~~
/dRehmFlight/Versions/dRehmFlight_Teensy_BETA_1.3/dRehmFlight_Teensy_BETA_1.3.ino:598:13: warning: 'MgY' is used uninitialized [-Wuninitialized]
  598 |   MagY = MgY/6.0;
      |          ~~~^~~~
/dRehmFlight/Versions/dRehmFlight_Teensy_BETA_1.3/dRehmFlight_Teensy_BETA_1.3.ino:599:13: warning: 'MgZ' is used uninitialized [-Wuninitialized]
  599 |   MagZ = MgZ/6.0;
      |          ~~~^~~~
/dRehmFlight/Versions/dRehmFlight_Teensy_BETA_1.3/src/TFMPlus/TFMPlus.cpp: In member function 'bool TFMPlus::getData(int16_t&, int16_t&, int16_t&)':
/dRehmFlight/Versions/dRehmFlight_Teensy_BETA_1.3/src/TFMPlus/TFMPlus.cpp:142:19: warning: 'void* memcpy(void*, const void*, size_t)' accessing 9 bytes at offsets 8 and 9 overlaps 8 bytes at offset 9 [-Wrestrict]
  142 |             memcpy( frame, frame + 1, TFMP_FRAME_SIZE);
      |             ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/dRehmFlight/Versions/dRehmFlight_Teensy_BETA_1.3/src/TFMPlus/TFMPlus.cpp: In member function 'bool TFMPlus::sendCommand(uint32_t, uint32_t)':
/dRehmFlight/Versions/dRehmFlight_Teensy_BETA_1.3/src/TFMPlus/TFMPlus.cpp:275:19: warning: 'void* memcpy(void*, const void*, size_t)' accessing 8 bytes at offsets 18 and 19 overlaps 7 bytes at offset 19 [-Wrestrict]
  275 |             memcpy( reply, reply+1, TFMP_REPLY_SIZE);
      |             ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

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.