mk: Add target for remote companion computer
This commit is contained in:
parent
e5067bfb6d
commit
ab6f6b2491
@ -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 PYTHONUNBUFFERED=1 loadPixhawk.py /tmp/ArduCopter-v2.px4
|
||||||
ssh root@10.1.1.10 rm /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
|
px4-v1-upload: px4-v1
|
||||||
$(RULEHDR)
|
$(RULEHDR)
|
||||||
$(v) $(PX4_MAKE) px4fmu-v1_APM upload
|
$(v) $(PX4_MAKE) px4fmu-v1_APM upload
|
||||||
|
@ -110,6 +110,7 @@ $(1)-$(2)-debug : $(1)-$(2)
|
|||||||
$(1)-$(2)-hilsensors : $(1)-$(2)
|
$(1)-$(2)-hilsensors : $(1)-$(2)
|
||||||
$(1)-$(2)-upload : $(1)-$(2)
|
$(1)-$(2)-upload : $(1)-$(2)
|
||||||
$(1)-$(2)-upload : $(1)-upload
|
$(1)-$(2)-upload : $(1)-upload
|
||||||
|
$(1)-$(2)-upload-remote : $(1)-upload-remote
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define board_template
|
define board_template
|
||||||
|
Loading…
Reference in New Issue
Block a user