Question:

I would like to send aircraft attitude information via I2C to another arduino. Has anyone attempted this? If my understanding is correct (probably isn't) I could use the same I2C port as the magnetometer, and the call to send it would be in the same loop as the GCS commands (medium or slow).

Thanks for the help!

Views: 170

Reply to This

Replies to This Discussion

// This case deals with sending high rate telemetry
//-------------------------------------------------
case 3:
medium_loopCounter++;

#if HIL_MODE != HIL_MODE_ATTITUDE
if ((g.log_bitmask & MASK_LOG_ATTITUDE_MED) && !(g.log_bitmask & MASK_LOG_ATTITUDE_FAST))
Log_Write_Attitude((int)dcm.roll_sensor, (int)dcm.pitch_sensor, (uint16_t)dcm.yaw_sensor);

if (g.log_bitmask & MASK_LOG_CTUN)
Log_Write_Control_Tuning();
#endif

Reply to Discussion

RSS

Groups

Season Two of the Trust Time Trial (T3) Contest 
A list of all T3 contests is here. The current round, the Vertical Horizontal one, is here

© 2020   Created by Chris Anderson.   Powered by

Badges  |  Report an Issue  |  Terms of Service