Giter VIP home page Giter VIP logo

qc-embedded's People

Contributors

hongjiawu avatar jbmiog avatar makbut avatar

Watchers

 avatar  avatar  avatar

qc-embedded's Issues

panic mode to safe mode transition

panic mode to safe mode from keyboard is ok

When battery is low and we enter panic mode due to that, we reach safe mode, but since the pc continues sending packets with "manual" info in the mode field we do circles forever.

We should insert a bat_high flag in safe mode and switch between modes when this flag is true.

Same for connection

I will handle that!

Proper Full Control Mode

So guys, there are two new branches, the one is called "last_lab_working" which is the code that worked perfectly in the last lab with the difference that yaw, pitch and roll movements were too harsh.

The other one is called "new_edited_version" and basically I changed the way the motor values are computed in order for it to be more smooth. However, as I commented in another issue Wu should change again the joystick scales as I told him in that issue and we can test that as well. The only problem with that version is that we may need to calculate again the p, p1 and p2 values but this is like a 30 minutes procedure. This version is better in terms of smoothly controlling the drone and I suggest to keep that if it is proven so by the testing.

Also, we cannot divide the generated joystick value as we did, because by dividing the generated joystick values we narrow down the resolution so I think this is bad, that's why I thought of new way to calculate the motor values!!!!!!

Char overflow corret

Guys, we should still protect the chars for overflows! I'm adding this issue because else i might forget

Joystick scales

Lift: 0-127 The first half will occupy 0-32 and the second half will occupy 32-127
Roll,Yaw,Pitch: -16-15

rotor speed when in panic mode

The TA just mentioned the drone, in it current state (in working branch) would fall like a brick when entering panic mode. I suggest we decrease the engine speed linearly from the current speed, when entering panic mode.

fix static offset does not return to 0

Hey,

We noticed when putting the static offset to a value like 127, and go back, we cannot go back to 0 again, but it goes to something like 5 and decreasing it will make it go to -1.

We should fix it :)

check time between packets

Hi, makis and I just testd and it seems that the time between each packt is 17 ms, which is different from the time in the terminal. Maybe this causes the delay?

Data logging

We should implement data logging. Jeffrey declared interest

PC send packet rate

In the temporary branch, at pc-terminal folder, at pc-terminal1.c, when creating the time loop we get the time in nanoseconds and then we divide with NANO_SECOND_MULTIPLIER which is equal to 1 000 000.

That means that we don't convert to milliseconds (10^-3) but to (10^-9 * 10^-6 = 10^ -15) which is very very small. Therefore, the packets were sent very fast. Maybe that was causing the delay issue, since the drone was receiving packets at very fast rate.

Normally nanosecond = 10^-9 second, thus in order to convert nanosecond to millisecond, you have to multiply with one million (10^6) and get 10^-3 second=millisecond. I don't know if it was the problem, but for sure the way it is written now is wrong.

Filter

MA filter for raw yaw control and Kalman filter for raw roll and pitch control is done, waiting for test.

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.