matpel
lvl.1
France
Offline
|
Hi,
I am currently working on an onboard application on the N3 using the Open Protocol framework. Because of design requirements, we directly communicate with the N3 thanks to OpenProtocol.
I manage to arm, get control authority as well as fly and many other operations, but when trying to upload a waypoint mission using the structure given here, I keep getting the error code 0xE0 (wrong parameter) in the ACK. The structure I am trying to send is the following:
wpMission.indexNumber = 2;
wpMission.maxVelocity = 10;
wpMission.idleVelocity = 5;
wpMission.finishAction = 0;
wpMission.executiveTimes = 1;
wpMission.yawMode = 1;
wpMission.traceMode = 0;
wpMission.RCLostAction = 1;
wpMission.gimbalPitch = 3.14/3;
wpMission.latitude = 47.033882 * 3.14/180; //focus lat/lon in radians (not needed in my application, but I don't know if it must be defined)
wpMission.longitude = 1.345592 * 3.14/180;
wpMission.altitude = 0;
for(int i=0;i<16;i++)
wpMission.reserved= 0;
Please note that I do not use the LB2 (which I only used the first time for activation) or DJI GO. I have activated the "Ground station status" checkbox in the SDK tab of DJI Assistant 2. When trying to upload waypoints after this mission, I get the error code 0xEA (no waypoint mission uploaded).
Is there anything wrong in the waypoint mission I am trying to define?
Regards,
Matpel
|
|