You don't. You never get there.Good try,
what do you now do when you get to -179 and +179 ?
Once the angle goes beyond -90 and +90 you switch to South.
The receiver has to interpret N+90 or S-90 as heading E±degrees.
You don't. You never get there.Good try,
what do you now do when you get to -179 and +179 ?



Hi A,@camerart
I'm afraid its back to the basics, and the basics are actualy easy, but lots of easy , gets complicated. It does my head in at least.
View attachment 215297


Hi T,If your compass does'nt need recalibrated on the fly then forget about beacon.
For your rectangular grid, if you want fly by 3 meters east and 3 meters north there is two options:
1) Keep AIM to north and give same time roll to east and nick to north until you reach destination
2) Turn AIM 45 degrees from north to east and give to nick channel forward (about 4+ meters), until you reach destination
But you must aware, that on end point you have to wait different readings from sensors when flying with different options. From BASE operators point of view AIM control in degrees may be convient but in your sofware calculations you may find using other values more suitable.
Hi T,In RC flying is nick channel for controlling forward or backward movements and roll is for left/right movements, yaw means rudder for aircrafts.
Different options are options 1) or 2) in my post #49. Think about position of your UAV, or better pick it by your hand and look if you move this around, if you turn AIM, then compass readings are diffrent at destination point compared to this option if you not turn AIM.
Hi T,Ok, no matter which options (post#49) you choose to navigate toward endpoint, the endpoint coordinates can be calculated with equal manner. Only yaw channel control uses different data based on you AIM value and compass readings.
I strongly agree with andrewmm that compass readings may be extemely unstable. I have several years ago working with one team who develop a IMU sensor network. They are struggling hard with IMU noise and simple readings averaging does not give good results, things go better only with Kalman filter routines applied. And worse thing was with compass, as it needed frequently calibrated against reference location.
Hi T,If you move ALT stick, then altitude changes but lateral coordinates (LAT,LON) are still same. On RC transmitter, if the forward and left/right controls are on the same stick then moving this stick diagonally amount of H reflects in electronics level to A and O movements allready. It calculates Pythagoras theorem for you mechanically![]()
Hi T,Imagine if your copter sits in BASE location in coordinates ALT 0, NORTH 0, EAST 0 and you want it to move to new coordinates ALT 3, NORTH 6, EAST 4 which path is on your drawings presented by the orange line. If you give same time throttle up, nick to north and roll to east to your copter starts moving towards desired location approximately by this same orange-line path. You must only calculate the needed movement speed by each three axis if you want follow the orange-line path. For speed calculations you can use coordinate endpoints differences, for example calculate time/speed for flying from NORTH 0 to NORTH 6 an then adjust needed speed for other endpoints (for example north (nick) speed 1m/s, east (roll) speed 0.67m/s and raising (throttle ramp-up) speed 0.5m/s) . With this method you can free your REMOTE MCU from too heavy math load. Your REMOTE must check if any of coordinates endpoint is reached and hold it, while trying to reach two others. It will be not perfect method but i think it is the simplest one.