mk: Add target for remote companion computer

This commit is contained in:
jaxxzer 2016-02-20 18:42:35 -05:00
parent e5067bfb6d
commit ab6f6b2491
2 changed files with 9 additions and 0 deletions

View File

@ -129,6 +129,14 @@ px4-v2-upload-solo: px4-v2
ssh root@10.1.1.10 PYTHONUNBUFFERED=1 loadPixhawk.py /tmp/ArduCopter-v2.px4
ssh root@10.1.1.10 rm /tmp/ArduCopter-v2.px4;
px4-v2-upload-remote: px4-v2
ifdef TARGETHOST
scp $(SKETCH)-v2.px4 $(TARGETHOST):/tmp/
ssh $(TARGETHOST) python3 px_uploader.py --port /dev/ttyACM* /tmp/$(SKETCH)-v2.px4
else
$(error TARGETHOST not defined)
endif
px4-v1-upload: px4-v1
$(RULEHDR)
$(v) $(PX4_MAKE) px4fmu-v1_APM upload

View File

@ -110,6 +110,7 @@ $(1)-$(2)-debug : $(1)-$(2)
$(1)-$(2)-hilsensors : $(1)-$(2)
$(1)-$(2)-upload : $(1)-$(2)
$(1)-$(2)-upload : $(1)-upload
$(1)-$(2)-upload-remote : $(1)-upload-remote
endef
define board_template