ci posti anche il tuo config.h?
annuncio
Comprimi
Ancora nessun annuncio.
BaronPilot - Autostabilizzatore Molto Economico
Comprimi
X
-
Globals.h ppmmixer
#define AIL 0 // chan1 D2
#define ELE 1
#define THR 2 // D4
#define RUD 3
#define AUX 4 // chan5 D5
#define FRONTL 0 // D9 16bit 50-500hz
#define FRONTR 1 // D10 16bit 50-500hz
#define REAR 2 // D3 8bit 488hz
#define AUX1 3 // D11 8bit 488hz
#define YAW 4 // D8 8bit 50hz
#define AUX2 5 // D12 8bit 50hz
#define MAXCHANIN 7 // max input channel
#define MAXCHANOUT 6 // max output channel
#define CENTER 1520 // in microseconds
#define DT 2020 // in microseconds
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// Global value
extern unsigned long cycleTime;
extern int __bss_end;
extern void *__brkval;
// every channel is zero centered with uS as unit so (-500,500)
int channelIn[MAXCHANIN];
int channelOut[MAXCHANOUT];
Commenta
-
Fatto e questo è il setup che ora ho caricato ......
// These are the parameters and definition that probably you need to change.
// If you want to ENABLE a feature take out the double slash comment before the defines
//////////////////////////////////////////////////////////////////////////////////////////////////////
// Direction of the sensor gyro
// + doesn't change direction
// - invert direction
// check this value with 'g' command
// Pitch must have positive value when forward is up (negative otherwise)
// Roll must have positive value when left is up (negative otherwise)
// Yaw must have positive value when you rotate CCW anti-clock-wise
#define GYROPDIR +
#define GYRORDIR -
#define GYROYDIR -
// Direction -/+ of the sensor accelerometer
// check this value with 'ai' command
// + doesn't change direction
// - invert direction
// X must have positive value when forward arm is up
// Y must have positive value when left arm is up
// Z must have positive value when vessel is not reversed up-down
#define ACCXDIR -
#define ACCYDIR -
#define ACCZDIR +
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////
//Enable advanced mode
//I2C 400Khz speed
// You must remove on WM+ the pull-up resistors from SCL SDA to Vcc and put 1khz to +5V to work
// DON'T ENABLE IT IF YOU DON'T KNOW HOW!
//#define I2C400
// Do you have a Teensy++ 2.0?
//////////////////////////////////
//#define TEENSYP
// Accelerometer?
// Stable mode need an 3 axis accelerometer
//////////////////////////////////
//#define ACCELEROMETER
// Accel type?
//#define NUNCHUCK
//#define ADXL335
// MUltiWii compatibility mode
#define MULTIWII
//////////////////////
// INPUT RX channel definition (starting with 0)
//////////////////////////////////
#ifdef MULTIWII
#define AIL 1
#define ELE 2
#define THR 0
#define RUD 3
#define MODE 4 // this channel select mode from disabled/acro/stable
#else
#define AIL 0 // D2
#define ELE 1 // D4
#define THR 2 // D5
#define RUD 3 // D6
#define MODE 4 // D7 this channel select mode from disabled/acro/stable
#endif
// VESSEL TYPE
//////////////////////////////////
//#define PLANE
//#define TRI
#define QUAD // plus config
//#define QUADX // X config
//#define HEXA // pentagram
//#define HEXACOAX // AKA tricopter coaxial
// OUTPUT channel definition (starting with 0)
// double check your connection!
//////////////////////////////////
#ifdef MULTIWII
#ifdef QUAD
# define FRONT 2
# define REAR 0
# define LEFT 3
# define RIGHT 1
#endif
#else
#ifdef PLANE
# define THR 0
# define RUD 4
# define ELE 5
#endif
#ifdef TRI
# define FRONTL 0
# define FRONTR 1
# define REAR 2
# define AUX1 3
# define YAW 4
# define AUX2 5
#endif
#ifdef QUAD
# define FRONT 0
# define REAR 1
# define LEFT 2
# define RIGHT 3
#endif
#ifdef QUADX
# define FRONTL 0
# define FRONTR 1
# define REARL 2
# define REARR 3
#endif
#ifdef HEXA
# define FRONT 0
# define REAR 1
# define LEFTFR 2
# define RIGHTFR 3
# define LEFTRE 4
# define RIGHTRE 5
#endif
#ifdef HEXACOAX
# define FRONTLUP 0
# define FRONTRUP 1
# define REARUP 2
# define FRONTLDOWN 3
# define FRONTRDOWN 4
# define REARDOWN 5
#endif
#endif
////////////////////////////////////////////////////////////////////////////////////////////////////////
// ADVANCED EXPERT SECTION
// how much us are considered perfect 0 center (0-11us)
//////////////////////////////////
#define DEADBAND 0 // microseconds
// us that your transmitter considere the "center"
// 1520 is Futaba, 1500 others.
//////////////////////////////////
#define CENTER 1520 // in microseconds
/////////////////////////////////////////////////////////////
Commenta
-
A parte il mode 1 del mio aurora che mi fa impazzire e che dovrò cambiare per comodità in mode 2 (credo di trovarmi meglio) ancora non va il motore collegato al d8 gli altri sembrano girino bene ...... l'armatura degli esc sono riuscito a farla infatti adesso accelerano e decelerano correttamente ma non hanno emesso alcun suono (come indicavano le istruzioni reperite in rete......
Commenta
-
Aggiungo questa se puo essere utile a comprendere.......Ultima modifica di merendaiomax; 11 gennaio 11, 14:36.
Commenta
-
Questo Forum sa' un po' di club e per giunta riservato peccato ..... Credo che con pochi minuti e consigli potrei essere instradato e finire l'oggetto , visto che siamo in tanti.... Ma forse siete passati tutti ad altri progetti e farei meglio anch'io a farlo, ma ritenevo questo il piu' didattico per cominciare....Saluti
P.s. Un mi ci mannate a quer paese tollerate sto' toscanaccio
Commenta
-
ciao
io potrei aiutarti su aeroquad o multiwii, questo proprio non lo conosco mi dispiace, se nessuno ti ha ancora aiutato sicuramente è sia perchè è poco diffuso ma soprattutto sono tutti in vacanza, fino alla prossima settimana non credo avrai troppe risposte.
ciaoSbagliare è umano, perseverare è diabolico!!
Commenta
-
Che mangiate ciclopiche!
Penso che ci vorranno mesi prima di ricominciare a mangiare (SEEEEEEEEEEEEE)
Comunque mi hanno "regalato" una CNC Millwood 2008, penso proprio che ne vedremo delle belle tra poco!Informatico Professionista, Amante dei 4x4 e delle auto ibride, costruttore di quadricotteri.
Commenta
Commenta