hubo / hubo-ach

Low level controller for the Hubo 2 and Hubo 2+ platforms designed by Daniel M. Lofaro. The system is based on the IPC called ACH by Neil Dantam and Mike Stilman.
Other
5 stars 18 forks source link

Should not terminate with hubo_assert() #48

Open ndantam opened 11 years ago

ndantam commented 11 years ago

There are many potential errors which are checked with `hubo_assert(test)', and where, if 0==test, the program will terminate. It would be better actually handle those errors rather than terminating.

For example, when an ach message is received that does not seem valid, i.e., wrong size, bogus data, it would be better to ignore that message and continue operating rather than simply terminating.

For errors encountered during initialization, terminating the program seems reasonable.