Skip to content

Commit

Permalink
Fixed yawLimit typo
Browse files Browse the repository at this point in the history
  • Loading branch information
alyzenjeraj committed Apr 2, 2024
1 parent 9745bf1 commit 04e593f
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion AttitudeManager/FlightModes/Src/fbwa.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ namespace AM {
// Mapping maintains 0->0 I/O
mappedOutputs.pitch = input.pitch < 0 ? input.pitch * (fbwa_control_limits.pitchLimit.min / AM::AttitudeManager::INPUT_MIN) : input.pitch * (fbwa_control_limits.pitchLimit.max / AM::AttitudeManager::INPUT_MAX);
mappedOutputs.roll = input.roll < 0 ? input.roll * (fbwa_control_limits.rollLimit.min / AM::AttitudeManager::INPUT_MIN) : input.roll * (fbwa_control_limits.rollLimit.max / AM::AttitudeManager::INPUT_MAX);
mappedOutputs.yaw = input.yaw < 0 ? input.yaw * (fbwa_control_limits.yawLimit.min / AM::AttitudeManager::INPUT_MIN) : input.yaw * (fbwa_control_limits.rollLimit.max / AM::AttitudeManager::INPUT_MAX);
mappedOutputs.yaw = input.yaw < 0 ? input.yaw * (fbwa_control_limits.yawLimit.min / AM::AttitudeManager::INPUT_MIN) : input.yaw * (fbwa_control_limits.yawLimit.max / AM::AttitudeManager::INPUT_MAX);

// Throttle maps -100-100 to range 0-100
mappedOutputs.throttle = fbwa_control_limits.throttleLimit.min + (input.throttle - AM::AttitudeManager::INPUT_MIN) * (fbwa_control_limits.throttleLimit.max - fbwa_control_limits.throttleLimit.min) / (AM::AttitudeManager::INPUT_MAX - AM::AttitudeManager::INPUT_MIN);
Expand Down
15 changes: 15 additions & 0 deletions out.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
Building ZeroPilot for firmware.
Building for platform nucleol552zeq and model example_model.
Cleaning old firmware build environment.

Creating Unix Makefiles build system...
-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
-- The ASM compiler identification is unknown
-- Found assembler: arm-none-eabi-gcc
-- Warning: Did not find file Compiler/-ASM
-- Configuring incomplete, errors occurred!
See also "/home/ajeraj/git/efs-zeropilot-3.5/Tools/Firmware/build/CMakeFiles/CMakeOutput.log".
See also "/home/ajeraj/git/efs-zeropilot-3.5/Tools/Firmware/build/CMakeFiles/CMakeError.log".

Error: Failed to create Unix Makefiles build system.

0 comments on commit 04e593f

Please sign in to comment.