Git Product home page Git Product logo

amcc's Introduction

/*
 * AMCC (Anders Ma Copter Control)
 * <[email protected]>
 * (www.andersma.net)
 */


General Information
===================

AMCC is an utility for copter development. 
With AMCC you can monitor copter's sensors data, you can use sensors data
to develop flight control algorithm. In the future, you can use AMCC to
config and operate copter.

Licensing
=========

AMCC is released under BSD lisence.

Requirements
============

To compile AMCC, you must install following packages:

  * libgtk2.0-dev
  * libgtkglext1-dev
  * freeglut3-dev
  * lib3ds-dev
  * libxml2-dev

HOWTO
============

To use AMCC to monitor/control copter, copter must support AMCC protocol, How?

1) Copter MCU software must contain following code and linked with src/packet.c:

#include "packet.h"

char buffer[50];
packet_t p;
	
p.type = ANALOG_DATA_RESPONSE;
p.raw.analog_data.channel_number = 6;
p.raw.analog_data.value[0] = accx; /* accelerometer X axes data got from ADC */
p.raw.analog_data.value[1] = accy; /* accelerometer Y axes data got from ADC */
p.raw.analog_data.value[2] = accz; /* accelerometer Z axes data got from ADC */
p.raw.analog_data.value[3] = gyrox; /* gyroscope X axes data got from ADC */
p.raw.analog_data.value[4] = gyroy; /* gyroscope Y axes data got from ADC */
p.raw.analog_data.value[5] = gyroz; /* gyroscope Z axes data got from ADC */

packet_encode(&p);
memcpy(buffer, &p.data, p.data_length);
buffer[p.data_length] = '\0';
printf("%s", buffer); /* output data over serial port */	

2)connecting PC with copter as below:

[PC] ---serial line----- [Copter]

3) #./amcc -d /dev/SERIALDEV -s SPEED
   (replace SERIALDEV and SPEED according your environment, default is ttyUSB0, 57600)

4) Click menuitem "Monitor->Start", if copter is sending sensors data,  AMCC will draw 
   Acc & Gyro voltage graph and render 3D copter.




amcc's People

Contributors

andersma avatar

Stargazers

MonkeyRobot avatar Jerry Wang avatar  avatar

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.