Hi everyone ))
I am working on a project Quadcopter, I want to make my own controller(Joystick), flight controller(MPU-6050+HMC5883L+NEO ublox 6M GPS+ATmega1284p), I am designing my own frame, so everything would be homemade. I have written C code in Atmel Studio 6, but I have problems and some questions to you.
First: I written code for MPU-6050(Initialization, PID, DCM) but I don't know how to write about HMC5883L magnetometer to hold orientation and I don't know same for GPS. Can someone help me with that?
Second(HIGH PRIORITY ): So Im using xBee to communicate Controller and Quadcopter. xBee sends data trough UART. But I have here a PROBLEM:
I want to send ADC values(I have connected joystick modules to ADC) > Throttle: 0 Yaw: 512 Pitch: 512 Roll: 512 < Than my controller on Quad will read this values and convert it to PWM(0=1000ms 512=1500ms 512=1500ms 512=1500ms) So I don't know how can I send: > Throttle: 0 Yaw: 512 Pitch: 512 Roll: 512 <> 0 512 512 512 < and than read it separately. Can someone help me to write C code with Atmel Studio 6?
Thanks for all... (y)
Also see attachment>
I am working on a project Quadcopter, I want to make my own controller(Joystick), flight controller(MPU-6050+HMC5883L+NEO ublox 6M GPS+ATmega1284p), I am designing my own frame, so everything would be homemade. I have written C code in Atmel Studio 6, but I have problems and some questions to you.
First: I written code for MPU-6050(Initialization, PID, DCM) but I don't know how to write about HMC5883L magnetometer to hold orientation and I don't know same for GPS. Can someone help me with that?
Second(HIGH PRIORITY ): So Im using xBee to communicate Controller and Quadcopter. xBee sends data trough UART. But I have here a PROBLEM:
I want to send ADC values(I have connected joystick modules to ADC) > Throttle: 0 Yaw: 512 Pitch: 512 Roll: 512 < Than my controller on Quad will read this values and convert it to PWM(0=1000ms 512=1500ms 512=1500ms 512=1500ms) So I don't know how can I send: > Throttle: 0 Yaw: 512 Pitch: 512 Roll: 512 <> 0 512 512 512 < and than read it separately. Can someone help me to write C code with Atmel Studio 6?
Thanks for all... (y)
Also see attachment>