setup¶
After initial setup, configure autopilot: create an autopilot directory and a prefs.json file
Data:
performance: |
Classes:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Functions:
Unfold nested values from the SetupForm. |
|
|
Make a directory if it doesn’t exist and set its permissions to 0777 |
-
DIRECTORY_STRUCTURE
= {'DATADIR': 'data', 'LOGDIR': 'logs', 'PROTOCOLDIR': 'protocols', 'SOUNDDIR': 'sounds', 'VIZDIR': 'viz'}¶ - performance:
disable startup script that changes cpu governor,
change cpu governor to “performance” on boot
increase memlock and realtime priority limits for audio group
- hifiberry:
turn onboard audio off
enable hifiberry stuff in /boot/config.txt
edit alsa config so hifiberry is default sound card
viz:
Todo
Need to find a more elegant way to do this, for now see lines 160-200 in the presetup_pilot.sh legacy script
-
class
Autopilot_Form
(*args, **kwargs)[source]¶ Bases:
npyscreen.fmForm.Form
Methods:
populate_dependencies
(params)populate_form
(params)update_depends
(param_name)
-
class
Hardware_Form
(*args, **kwargs)[source]¶ Bases:
npyscreen.fmFormWithMenus.FormWithMenus
Methods:
create
()Programmers should over-ride this in derived classes, creating widgets here
add_hardware
(module, class_name)
-
class
Agent_Form
(name=None, parentApp=None, framed=None, help=None, color='FORMDEFAULT', widget_list=None, cycle_widgets=False, *args, **keywords)[source]¶ Bases:
npyscreen.fmForm.Form
Methods:
create
()Programmers should over-ride this in derived classes, creating widgets here
-
class
Pilot_Env_Form
(*args, **kwargs)[source]¶ Bases:
autopilot.setup.setup_autopilot.Autopilot_Form
Methods:
create
()Programmers should over-ride this in derived classes, creating widgets here
-
class
Pilot_Config_Form_1
(*args, **kwargs)[source]¶ Bases:
autopilot.setup.setup_autopilot.Autopilot_Form
Methods:
create
()Programmers should over-ride this in derived classes, creating widgets here
-
class
Pilot_Config_Form_2
(*args, **kwargs)[source]¶ Bases:
autopilot.setup.setup_autopilot.Autopilot_Form
Methods:
create
()Programmers should over-ride this in derived classes, creating widgets here
-
class
Terminal_Form
(*args, **kwargs)[source]¶ Bases:
autopilot.setup.setup_autopilot.Autopilot_Form
Methods:
create
()Programmers should over-ride this in derived classes, creating widgets here
-
class
Autopilot_Setup
(prefs)[source]¶ Bases:
npyscreen.apNPSApplicationManaged.NPSAppManaged
Methods:
onStart
()Override this method to perform any initialisation.