You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the value of csv being referenced is an integer value, the array of the generated file(Stroke2Angle.hh) is incorrect.
For example, this is aero_startup/Stroke2Angle.cc
To fix this problem, we should modify aero\description/scripts/make_stroke_to_angle_header.sh.
# negative stroke value case
if [[ ${#ntable[@]} -gt 0 ]]
then
idx=$((${#ntable[@]} - 1))
e=${ntable[$idx]}
if [[ $e != "" ]]
then
code="${code}{{${e::-1}},{}}, "
array_offset="-$idx"
elif [[ ${#ntable[@]} -gt 1 ]]
then
idx=$(($idx - 1))
array_offset="-$idx"
fi
fi
for (( idx=${#ntable[@]}-2 ; idx>=0 ; idx-- ))
do
e=${ntable[$idx]}
if [[ $e != "" ]]
then
code="${code}{{${e::-1}},"
j=1
if [[ ${ntable[$(($idx + $j))]} == "" ]]
then
j=2
fi
appendix=$(echo -e "${ntable[$(($idx + $j))]}")
if [[ "$appendix" = "" ]]
then
code="${code}{}}, "
else
code="${code}{${appendix::-1}}}, "
fi
elif [[ $idx != 0 ]]
then
echo " detected empty table in -${idx} of ${function_name}"
code="${code}{{{0,0.0f,0.0f}}, {}}, "
fi
done
The text was updated successfully, but these errors were encountered:
If the value of csv being referenced is an integer value, the array of the generated file(Stroke2Angle.hh) is incorrect.
For example, this is aero_startup/Stroke2Angle.cc
Value is incorrect like as " {{{0,0.0f,0.0f}},"
In this time, it refers below csv file.
To fix this problem, we should modify aero\description/scripts/make_stroke_to_angle_header.sh.
The text was updated successfully, but these errors were encountered: