Sending aircraft attutude via I2C

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!

You need to be a member of diydrones to add comments!

Join diydrones

Email me when people reply –

Replies

  • // 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
This reply was deleted.

Activity

David Hori liked Isabella Domi's profile
Jan 12
More…