update test

This commit is contained in:
Atsushi Sakai
2019-03-16 21:09:55 +09:00
parent 36eae0ba84
commit c80583b2f8
2 changed files with 12 additions and 11 deletions

View File

@@ -552,9 +552,9 @@ def main():
dl = 1.0 # course tick
# cx, cy, cyaw, ck = get_straight_course(dl)
# cx, cy, cyaw, ck = get_straight_course2(dl)
cx, cy, cyaw, ck = get_straight_course3(dl)
# cx, cy, cyaw, ck = get_straight_course3(dl)
# cx, cy, cyaw, ck = get_forward_course(dl)
# CX, cy, cyaw, ck = get_switch_back_course(dl)
cx, cy, cyaw, ck = get_switch_back_course(dl)
sp = calc_speed_profile(cx, cy, cyaw, TARGET_SPEED)
@@ -617,5 +617,5 @@ def main2():
if __name__ == '__main__':
# main()
main2()
main()
# main2()

View File

@@ -1,14 +1,15 @@
from unittest import TestCase
import sys
sys.path.append("./AerialNavigation/rocket_powered_landing/")
from AerialNavigation.rocket_powered_landing import rocket_powered_landing as m
print(__file__)
if 'cvxpy' in sys.modules: # pragma: no cover
sys.path.append("./AerialNavigation/rocket_powered_landing/")
from AerialNavigation.rocket_powered_landing import rocket_powered_landing as m
print(__file__)
class Test(TestCase):
class Test(TestCase):
def test1(self):
m.show_animation = False
m.main()
def test1(self):
m.show_animation = False
m.main()