eep! 2? my understanding of stucts must be way off then here is what i understood it to be
RPYtransmit(ToDeg(roll),ToDeg(pitch),ToDeg(yaw));
void RPYtransmit(float inRoll, float inPitch, float inYaw){ //recieve current vals for ToDeg(roll),ToDeg(pitch),ToDeg(yaw)
typedef struct
{
float roll; // place for roll value here
float pitch;// place for pitch value here
float yaw; // place for yaw value here
}RPYT_type; // lable the struct
RPYT_type imuArray[2]; // create an array to hold roll,pitch,yaw for transmission
imuArray[0].roll = inRoll; // give float roll in RPYT_type value from incoming function argument inRoll
imuArray[0].pitch = inPitch;// give float pitch in RPYT_type value from incoming function argument inPitch
imuArray[0].yaw = inYaw;// give float yaw in RPYT_type value from incoming function argument inYaw
imuArray[1] = (RPYT_type) {inRoll,inPitch,inYaw}; // combine inRoll,inPitch,inYaw from RPYT_type into imuArray position 2 (0 being first position in array)
Mirf.setTADDR((byte *)"base1"); // set name of Receiver
Mirf.send(imuArray[2]); // figure out how to access and transmit second array segment containing inRoll,inPitch,inYaw
while(Mirf.isSending()){
}
delay(10);
}