Commit Graph

109 Commits

Author SHA1 Message Date
Dennis Mannhart 25ff03445e FlightTasks: remove description from cpp files 2018-04-05 07:30:12 +02:00
Dennis Mannhart 3b4870b2c2 FlightTaskManual: define as abstract class 2018-04-05 07:30:12 +02:00
Dennis Mannhart 46f0a14c28 FlightTaskStabilized: remove yaw prediction 2018-04-05 07:30:12 +02:00
Dennis Mannhart 5a6ca148ad CMakeListsts FlightTasks: add stabilized 2018-04-05 07:30:12 +02:00
Dennis Mannhart dcdf4d50a0 FlightTasks: add stabilized and fix switchTask for Altitude and Position 2018-04-05 07:30:12 +02:00
Dennis Mannhart 39731277ad FlightTaskSport: inherit from FlightTaskPosition; only change stickscaling 2018-04-05 07:30:12 +02:00
Dennis Mannhart 72624e14cb FlightTaskManualPosition: make position lock simpler; add underline for protected/private
methods
2018-04-05 07:30:12 +02:00
Dennis Mannhart 24b5d30a0a FlightTaskManualAltitude: remove everything related to yaw, which is now
handled by FlightTaskManualStabilized. Make altitude lock more simple
2018-04-05 07:30:12 +02:00
Dennis Mannhart e763642a8b FlightTaskManualStabilized: this task will geerate thrust and yaw setpoints.
Thrust is not yet supported
2018-04-05 07:30:12 +02:00
Dennis Mannhart 4b856717b7 FlightTaskManual: replace hold_dz with stick_dz 2018-04-05 07:30:12 +02:00
Dennis Mannhart a9ac94dd83 Add FlightTasksManual/Altitude to position controller 2018-04-05 07:30:12 +02:00
Dennis Mannhart 98e4afaf6e FlightTaskSport: temporary inherit from FlightTaskManualPosition 2018-04-05 07:30:12 +02:00
Dennis Mannhart 3b0373afda FlightTaskManual: remove unused methods 2018-04-05 07:30:12 +02:00
Dennis Mannhart 720271332d FlightTaskManual/Alt/Position: update comments 2018-04-05 07:30:12 +02:00
Dennis Mannhart 55b6f19367 FlightTaskManual: remove stick_deadzone because base class already has it.
Remove deadzone check for vel in xy/z because expo already contains deadzone
2018-04-05 07:30:12 +02:00
Dennis Mannhart e6f04ad34a FlightTaskManualPosition: fix position lock 2018-04-05 07:30:12 +02:00
Dennis Mannhart 46c7b1c26c FlightTaskManualAltitude: fix position lock; use default constructor for initialization 2018-04-05 07:30:12 +02:00
Dennis Mannhart f1b3010c70 FlightTaskManualAlt/Pos: add deadzone fox xy/z 2018-04-05 07:30:12 +02:00
Dennis Mannhart ec4089cebf FlightTaskManualAltitude: add deadzone for yaw 2018-04-05 07:30:12 +02:00
Dennis Mannhart cd1e01d5a0 FlightTaskManual: add px4_defines 2018-04-05 07:30:12 +02:00
Dennis Mannhart 6276d0a8ef FlightTasks CMakeLists: add FlightTaskManualPosition 2018-04-05 07:30:12 +02:00
Dennis Mannhart 26a5eae7b1 FlightTasks: add FlighttaskManualPosition 2018-04-05 07:30:12 +02:00
Dennis Mannhart 0afd0807bb FlightTaskPosition: brake depends on acceleration 2018-04-05 07:30:12 +02:00
Dennis Mannhart deac27ee52 FlightTaskManualAltitude: brake depends on acceleration; description clean up 2018-04-05 07:30:12 +02:00
Dennis Mannhart 10a50dd97e FlightTaskManual: switch to camel case 2018-04-05 07:30:12 +02:00
Dennis Mannhart 6e63ddacd2 yaw setpoint: add math::radians 2018-04-05 07:30:12 +02:00
Dennis Mannhart 6adc1755cc FlightTaskManualPosition: most basic implementation 2018-04-05 07:30:12 +02:00
Dennis Mannhart b5c19f6483 FligtTaskManualAltitude: split functionality such that scale_stick values and the update_setpoints can be overwritten 2018-04-05 07:30:12 +02:00
Dennis Mannhart ea61af3164 FlightTaskManualAltitude: added to lib 2018-04-05 07:30:12 +02:00
Dennis Mannhart 4f5fa33e74 FlightTaskManualAltitude: scale stick z to velocity 2018-04-05 07:30:12 +02:00
Dennis Mannhart 4dfd9ce8ed FlightTaskOrbit: replace sticks (which are now linear) with expo 2018-04-05 07:30:12 +02:00
Dennis Mannhart e076825d78 FlightTaskManual: remove everything except of stick mapping 2018-04-05 07:30:12 +02:00
Matthias Grob 2b6e356c91 FlightTaskManual: fix for the sideways oscillations in fast foward flight when using the vehicle yaw estimate 2018-04-05 07:30:12 +02:00
Matthias Grob 089ebcbfa4 FlightTaskManual: fix two very stupid mistakes in the yaw hold logic 2018-04-05 07:30:12 +02:00
Matthias Grob 37e0f91c39 FlightTaskSport: scale maximal stick input to maximal allowed velocity instead of being hardcoded for testing 2018-04-05 07:30:12 +02:00
Matthias Grob 6c0acf8e13 FlightTaskManual: enable non-carrot velocity method also for yaw 2018-04-05 07:30:12 +02:00
Matthias Grob 975ac11635 mc_pos_control: enable yawspeed execution for tasks 2018-04-05 07:30:12 +02:00
Matthias Grob a896332746 FlightTaskManual: fixed stick vector index bug and enabled basic yaw setpoint control 2018-04-05 07:30:12 +02:00
Matthias Grob a00c3e4024 FlightTaskSport: created a simple child class of FlightTaskManual that can scale the velocity to a much higher value 2018-04-05 07:30:12 +02:00
Matthias Grob de872ca047 FlightTaskManual: remove the smoothing from the task to add it later in a child class
also separated the velocity scaling to enable sport mode
2018-04-05 07:30:12 +02:00
Matthias Grob 6070d72308 FlightTasks: Various review refactoring 2018-04-05 07:30:12 +02:00
Matthias Grob 4d0dca5dd5 FlightTask: make applyCommandParameters getting called recursively & pass command by reference 2018-04-05 07:30:12 +02:00
Matthias Grob 4bb3692020 FlightTask: remove unused declaration of old position evaluation method 2018-04-05 07:30:12 +02:00
Matthias Grob fd93e55527 FlightTaks: prevent running a new task with default parameters because they got rejected 2018-04-05 07:30:12 +02:00
Matthias Grob d9c7e6321f FlightTasks: Introduce the empty setpoint to reset the setpoint for every loop iteration and return it in case of no task running 2018-04-05 07:30:12 +02:00
Matthias Grob c500221894 FlightTasks: move methods of the class header into the cpp 2018-04-05 07:30:12 +02:00
Matthias Grob efd240904f FlightTasks: added possibility to apply task parameters from the vehicle command 2018-04-05 07:30:12 +02:00
Matthias Grob b1f24da05e FlightTasks: enable mavlink command handling for switching tasks including acknowledgement 2018-04-05 07:30:12 +02:00
Matthias Grob 6ec9ff64d1 FlightTaskManual/Orbit: make sure we are not required stick input data during orbit 2018-04-05 07:30:12 +02:00
Matthias Grob e5d237088c FlightTasks: refactoring for CamelCase naming convention, small comment and declaration order renicements 2018-04-05 07:30:12 +02:00