ADVERTISEMENT

One of the works done by our Robotics and Machine Learning division,
SELF-LEVELING QUADCOPTER
Arduino based Quadcopter.
Self-leveling is acheived by the aligning the quadcopter using the readings from the gryo as well as the accelerometer.
A four channel RC transmitter is used to control the movement of the quadcopter when in flight. Kindly subscribe to our YouTube Channel and stay tuned.

Monday 1 August 2016

CSE1002:OOPS;Practice Problem 1: SPEED

int main()
{
    int m;
    float s;
    scanf("%d\n%f",&m,&s);
    s=roundf(s);
    //printf("%d\n%f",m,s);
    int t=m*60+(int)s;
    float fps=5280.0/t;
    float mps=1609.34/t;
    printf("%.2f fps\n",fps);
    printf("%.2f mps",mps);
}

No comments:

Post a Comment