andersma / amcc Goto Github PK
View Code? Open in Web Editor NEWcopter control
License: Other
copter control
License: Other
/* * 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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.