Hi,
thank you for your help. I wrote a simple sequenz to try if I can arm it with Yaw-left. Unfortunately it did not solve the problem. The drone still does not react on my commands.
Enclosed you can find some more screenshots an the code.
char sequence = '0'
while(sequence != '3')
{
if(sequence == '0')
{
lps.request(MANUALCONTROLCOMMAND_OBJID);
if(lps.receive(MANUALCONTROLCOMMAND_OBJID, ManualControlCommandDataUnion.arr,200))
{
Serial.println("Throttle auf negativ");
ManualControlCommandDataUnion.data.Throttle = -1.0;
lps.send(MANUALCONTROLCOMMAND_OBJID, ManualControlCommandDataUnion.arr,200);
sequence = '1';
}
}
lps.request(MANUALCONTROLCOMMAND_OBJID);
if(sequence == '1')
{
if(lps.receive(MANUALCONTROLCOMMAND_OBJID, ManualControlCommandDataUnion.arr,200))
{
Serial.println("Yaw negativ");
ManualControlCommandDataUnion.data.Yaw = -1;
lps.send(MANUALCONTROLCOMMAND_OBJID, ManualControlCommandDataUnion.arr,200);
sequence = '2';
}
}
lps.request(MANUALCONTROLCOMMAND_OBJID);
if(sequence == '2'){
delay(5000);
if(lps.receive(MANUALCONTROLCOMMAND_OBJID, ManualControlCommandDataUnion.arr,200))
{
Serial.println("Yaw neutral, Throttle neutral");
ManualControlCommandDataUnion.data.Yaw = 0.0;
ManualControlCommandDataUnion.data.Throttle = 0.0;
lps.send(MANUALCONTROLCOMMAND_OBJID, ManualControlCommandDataUnion.arr,200);
sequence = '3';
}
}
}