Reason for using floats as values in a while loop #387
Labels
No Label
OPS TODO
api change
breaking api change
bug
documentation
duplicate
feature
help wanted
invalid
question
wontfix
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: eive/eive-obsw#387
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Is there a specific reason why you are using floats in this loop?
This increments k and l before the user code. Is this a matlab export?
Also index is a uint8_t and k and l are almost 1.0, 2.0, 3.0 but also might be 2.99999. which might result in a wrong index. (I don't think that this is the case here but it looks strange to me)
Not sure why the increments are done before the user code. It's more or less a straight copy from a student thesis.
344ced60d3/src/sus_converter.cpp (L195-L258)
I'm pretty sure, I changed k and l to uint8_t before but reverted that change because I simply was too lazy to change the equations used in the if conditions which would then consist only of ints but require a division.
fixed with #394