Skip to content

Commit

Permalink
pep8 and clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
krichardsson committed Nov 30, 2021
1 parent 50b77ed commit c433cf8
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions examples/parameters/persistent_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@
"""
import logging
import sys
import time
from threading import Event

import cflib.crtp
from cflib.crazyflie import Crazyflie
from cflib.crazyflie.syncCrazyflie import SyncCrazyflie
from cflib.utils import uri_helper
import time

# uri = uri_helper.uri_from_env(default='usb://0')
uri = uri_helper.uri_from_env(default='radio://0/30/2M/E7E7E7E7E7')
Expand Down Expand Up @@ -94,8 +94,6 @@ def get_all_persistent_param_names(cf):

return persistent_params

def all_params_are_fetched():
print("Got all!")

if __name__ == '__main__':
# Initialize the low-level drivers
Expand Down Expand Up @@ -133,15 +131,15 @@ def all_params_are_fetched():
time.sleep(0.1)

print()
print("Store the new value in persistent memory")
print('Store the new value in persistent memory')
persist_parameter(scf.cf, param_name)

print("The new state is:")
print('The new state is:')
get_persistent_state(scf.cf, param_name)

print()
print("Clear the persisted parameter")
print('Clear the persisted parameter')
clear_persistent_parameter(scf.cf, param_name)

print("The new state is:")
print('The new state is:')
get_persistent_state(scf.cf, param_name)

0 comments on commit c433cf8

Please sign in to comment.