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
@hamishwillee If that is actually the case (oh gosh) I would prefer not to add the explicit property; I very much like the 'connection string information is all that is needed to reestablish the connection' approach, much like SQL connection strings, etc.
I can't test "/dev/tty.usbmodem1415 --baudrate 115200" yet though. I'll have to snag an APM from someone.
@tcr3dr Well, I just made the assumption because you told me "connection strings are exactly the same as you would pass to mavproxy". I say lets test. I kind of prefer the explicit way because the API shows you what i can do ... rather than having to guess.
@hamishwillee Oh, gotcha. So I am assuming the --baudrate property was parsed as part of the Python arguments, and ultimately was implemented in the way the connect(baud=...) property does it on HEAD. Which is to say the new mechanism would be the correct way to document it. Good catch.
status_printer is a method of signature def status_printer(txt) which is used to print STATUS_TEXT sent to the vehicle [as well as other diagnostic information—note, not sure if I want to stick with this interpretation, so maybe we just say a STATUS_TEXT printer]. It defaults to lambda text: sys.stderr.write('>>> ' + text + '\n'). Passing None attaches no listener to STATUS_TEXT. You can pass any method you want to do your printing or logging. (Note: maybe this should be a logging method by default?)
vehicle_class defaults to Vehicle. It refers to the class that will be instantiated from the class mechanism. You can change it to any subclass of Vehicle. See #437.
rate is the refresh rate sent to request_data_stream_send ultimately. A (default) value of 4 means 4Hz updates. 10Hz means ten updates per second. etc...
Activity
hamishwillee commentedon Nov 3, 2015
I thought you could just pass the baudrate to the string
connect('com14 --baudrate 15000'). This will require docs - and a fix to the connection string options http://python.dronekit.io/guide/getting_started.html#connecting-to-a-vehicletcr3dr commentedon Nov 3, 2015
@hamishwillee If that is actually the case (oh gosh) I would prefer not to add the explicit property; I very much like the 'connection string information is all that is needed to reestablish the connection' approach, much like SQL connection strings, etc.
I can't test "/dev/tty.usbmodem1415 --baudrate 115200" yet though. I'll have to snag an APM from someone.
hamishwillee commentedon Nov 3, 2015
@tcr3dr Well, I just made the assumption because you told me "connection strings are exactly the same as you would pass to mavproxy". I say lets test. I kind of prefer the explicit way because the API shows you what i can do ... rather than having to guess.
tcr3dr commentedon Nov 3, 2015
@hamishwillee Oh, gotcha. So I am assuming the --baudrate property was parsed as part of the Python arguments, and ultimately was implemented in the way the
connect(baud=...)property does it on HEAD. Which is to say the new mechanism would be the correct way to document it. Good catch.hamishwillee commentedon Nov 3, 2015
@tcr3dr What is are rate, status_printer and vehicle_class parameters to
connect()?Specifically what do they "mean" and what values might you reasonably change them to?
tcr3dr commentedon Nov 9, 2015
@hamishwillee
status_printeris a method of signaturedef status_printer(txt)which is used to print STATUS_TEXT sent to the vehicle [as well as other diagnostic information—note, not sure if I want to stick with this interpretation, so maybe we just say a STATUS_TEXT printer]. It defaults tolambda text: sys.stderr.write('>>> ' + text + '\n'). PassingNoneattaches no listener to STATUS_TEXT. You can pass any method you want to do your printing or logging. (Note: maybe this should be a logging method by default?)vehicle_classdefaults to Vehicle. It refers to the class that will be instantiated from the class mechanism. You can change it to any subclass of Vehicle. See #437.rateis the refresh rate sent torequest_data_stream_sendultimately. A (default) value of 4 means 4Hz updates. 10Hz means ten updates per second. etc...Fixes connect docs as per #395. Makes the docs display
hamishwillee commentedon Nov 10, 2015
The connect docs/additional params are documented as part of #443
Fixes connect docs as per #395. Makes the docs display
tcr3dr commentedon Nov 11, 2015
#443 has been merged.