-
Notifications
You must be signed in to change notification settings - Fork 13.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merge AutoMapper2 and AutoMapper #11209
Comments
How about a link to the diff: https://www.diffchecker.com/ZpJnGs2N |
@Stifael I totally agree. In order to combine those similar files, I have a few question and remarks:
|
That |
Fine for me! |
Also, in #11169 I change the actual behavior of the velocity waypoint: |
Sorry I don't understand what changed there generally with a task you |
Sorry I don't undesrstand what changed. For the output setpoint of a task you |
Yes, that is possible and even better. a.) constraints during landing b.) takeoff Sure, let's have the exact same takeoff, and if necessary I can make further adjustments in AutoLine. |
sure, you can mix the xy- and z-setpoints as much as you want and combine them to get feedforward. However, there is no support for position/velocity-setpoint + thrust setpoint. This is mentioned here. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Thanks stale bot, but don't close that! |
I did this in 7e78eed Saved us a lot of flash space. |
Currently there are two code paths for two different Auto implementation. Although Flighttask was designed to make it simple to add new tasks without effecting other tasks, we still should try to keep similar functionalities together.
For instance, AutoMapper and AutoMapper2 share similar or exactly the same functionalities, but all the methods are duplicated. This means that any change to Automapper has to be done twice. However, I am quite confident that contributors will forget about it at some point and only make changes to one of the files.
An other problem with having two code paths is to find bugs. As the issue here illustrates, there is currently even a different behavior between
MPC_AUTO_MODE
0 andMPC_AUTO_MODE
1 when the vehicle arms in hold-mode. There is no reason why the two different modes cannot share the exact same code path for arming.I attached a diff-patch-file between AutoMapper and AutoMapper2. As you can see from the patch-file, the diff is mainly due to renaming and some changes in AutoMapper2 would also improve AutoMapper.
Automapper_diff.zip
The text was updated successfully, but these errors were encountered: