Revision 74c0e6394dc5a2a6fb703406de719b47a626cb3b authored by ziqingma on 22 October 2023, 21:33:01 UTC, committed by ziqingma on 23 October 2023, 08:42:43 UTC
CG shift due to tilt issue, add takeoff test flightplan in cyberzoo

Update guidance_indi.c
1 parent 6b317f2
Raw File
paparazzi_version
#!/bin/sh

DEF_VER=v6.2_unstable

# First try git describe (if running on a git repo),
# then use default version from above (for release tarballs).
if test -d .git -o -f .git
then
    # if a commandline argument was given, assume it was a ref that git can interpret
    if [ "$#" -ne 0 ]; then
        GIT_VN=$(git describe --match "v[0-9].[0-9]*" --always --long $*)
    else
        GIT_VN=$(git describe --match "v[0-9].[0-9]*" --dirty --always --long)
    fi
    if echo "$GIT_VN" | grep -Eq "^v[0-9].[0-9]"
    then
        VN="$GIT_VN"
    else
        VN="$DEF_VER"-none-g"$GIT_VN"
    fi
else
    VN="$DEF_VER"
fi

echo $VN
back to top