Skip to content

Commit

Permalink
Update crazyflie.py
Browse files Browse the repository at this point in the history
  • Loading branch information
knmcguire authored May 27, 2024
1 parent f446b6e commit 6b2b9bb
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions crazyflie_py/crazyflie_py/crazyflie.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,8 @@ def __init__(self, node, cfname, paramTypeDict):
self.status = {}

# Query some settings
self.getParamsService = node.create_client(GetParameters, '/crazyflie_server/get_parameters')
self.getParamsService = node.create_client(
GetParameters, '/crazyflie_server/get_parameters')
self.getParamsService.wait_for_service()
req = GetParameters.Request()
req.names = ['robots.{}.initial_position'.format(cfname), 'robots.{}.uri'.format(cfname)]
Expand Down Expand Up @@ -485,7 +486,8 @@ def notifySetpointsStop(self, remainValidMillisecs=100, groupMask=0):
# return np.array(position)

def getParam(self, name):
"""Returns the current value of the onboard named parameter.
"""
Returns the current value of the onboard named parameter.
Parameters are named values of various primitive C types that control
the firmware's behavior. For more information, see
Expand Down Expand Up @@ -516,7 +518,6 @@ def getParam(self, name):
param_value = future.result().values[0].double_value
return param_value


def setParam(self, name, value):
"""
Change the value of the given parameter.
Expand Down

0 comments on commit 6b2b9bb

Please sign in to comment.