def ardrone2_status(): config_ini = parrot_utils.execute_command(tn,'cat /data/config.ini') print('======================== ARDrone 2 Status ========================') print('Version:\t\t' + parrot_utils.check_version(tn, '/firmware')) print('Host:\t\t\t' + args.host + ' (' + read_from_config('static_ip_address_base', config_ini) + read_from_config('static_ip_address_probe', config_ini) + ' after boot)') print('Currently running:\t' + parrot_utils.check_running(tn)) print('Serial number:\t\t' + read_from_config('drone_serial', config_ini)) print('Network id:\t\t' + read_from_config('ssid_single_player', config_ini)) print('Motor software:\t\t' + read_from_config('motor1_soft', config_ini) + '\t' + read_from_config('motor2_soft', config_ini) + '\t' + read_from_config('motor3_soft', config_ini) + '\t' + read_from_config('motor4_soft', config_ini)) print('Motor hardware:\t\t' + read_from_config('motor1_hard', config_ini) + '\t' + read_from_config('motor2_hard', config_ini) + '\t' + read_from_config('motor3_hard', config_ini) + '\t' + read_from_config('motor4_hard', config_ini)) autorun = {'': 'Native', '0': 'Native', '1': 'Paparazzi RAW', '2': 'Paparazzi SDK'} if check_autoboot(): print('Autorun at start:\tInstalled booting ' + autorun[read_from_config('start_paparazzi', config_ini)]) else: print('Autorun at start:\tNot installed') # Check if the vision framework is installed and running vision_framework = "" if check_vision_installed(): vision_framework += "Installed" if check_vision_running(): vision_framework += " and running" print('Vision framework:\t' + vision_framework) # Request the filesystem status print('\n======================== Filesystem Status ========================') print(parrot_utils.check_filesystem(tn))
def ardrone2_status(): config_ini = parrot_utils.execute_command(tn, 'cat /data/config.ini') print('======================== ARDrone 2 Status ========================') print('Version:\t\t' + parrot_utils.check_version(tn, '/firmware')) print('Host:\t\t\t' + args.host + ' (' + read_from_config('static_ip_address_base', config_ini) + read_from_config('static_ip_address_probe', config_ini) + ' after boot)') print('Currently running:\t' + parrot_utils.check_running(tn)) print('Serial number:\t\t' + read_from_config('drone_serial', config_ini)) print('Network id:\t\t' + read_from_config('ssid_single_player', config_ini)) print('Motor software:\t\t' + read_from_config('motor1_soft', config_ini) + '\t' + read_from_config('motor2_soft', config_ini) + '\t' + read_from_config('motor3_soft', config_ini) + '\t' + read_from_config('motor4_soft', config_ini)) print('Motor hardware:\t\t' + read_from_config('motor1_hard', config_ini) + '\t' + read_from_config('motor2_hard', config_ini) + '\t' + read_from_config('motor3_hard', config_ini) + '\t' + read_from_config('motor4_hard', config_ini)) autorun = { '': 'Native', '0': 'Native', '1': 'Paparazzi RAW', '2': 'Paparazzi SDK' } if check_autoboot(): print('Autorun at start:\tInstalled booting ' + autorun[read_from_config('start_paparazzi', config_ini)]) else: print('Autorun at start:\tNot installed') # Check if the vision framework is installed and running vision_framework = "" if check_vision_installed(): vision_framework += "Installed" if check_vision_running(): vision_framework += " and running" print('Vision framework:\t' + vision_framework) # Request the filesystem status print( '\n======================== Filesystem Status ========================' ) print(parrot_utils.check_filesystem(tn))